Version

NavigationPaneCollapsedWidth Property

Returns the value to which the System.Windows.Forms.Control.Width property will be set when the NavigationPaneExpandedState property changes from 'Expanded' to 'Collapsed'.
Syntax
'Declaration
 
Public ReadOnly Property NavigationPaneCollapsedWidth As Integer
public int NavigationPaneCollapsedWidth {get;}
Example
The following code sample demonstrates how to use the NavigationPaneFlyoutDisplaying event to change the default size and location of the navigation pane flyout:

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar

    '   Handles the Form's 'Load' event
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        '	Hook the NavigationPaneFlyoutDisplaying event
        AddHandler Me.ultraExplorerBar1.NavigationPaneFlyoutDisplaying, AddressOf Me.ultraExplorerBar1_NavigationPaneFlyoutDisplaying
    End Sub

    '	Handles the ExplorerBar's 'NavigationPaneFlyoutDisplaying' event.
    Private Sub ultraExplorerBar1_NavigationPaneFlyoutDisplaying(ByVal sender As Object, ByVal e As NavigationPaneFlyoutDisplayingEventArgs)
        Dim explorerBar As UltraExplorerBar = sender
        '	Get the width of the collapsed navigation pane
        Dim collapsedWidth As Integer = explorerBar.NavigationPaneCollapsedWidth

        '	Define the size for the flyout
        Dim flyoutSize As Size = New Size(200, 300)

        '	Define the location of the flyout such that it appears
        '	on the left side of the control rather than the right.
        Dim flyoutLocation As Point = e.PreferredLocation
        flyoutLocation.X -= (flyoutSize.Width + collapsedWidth)

        e.PreferredSize = flyoutSize
        e.PreferredLocation = flyoutLocation
    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;
using System.Diagnostics;

		//	Handles the Form's 'Load' event.
		private void Form1_Load(object sender, System.EventArgs e)
		{
			//	Hook the NavigationPaneFlyoutDisplaying event
			this.ultraExplorerBar1.NavigationPaneFlyoutDisplaying += new NavigationPaneFlyoutDisplayingEventHandler( this.ultraExplorerBar1_NavigationPaneFlyoutDisplaying );
		}

		//	Handles the ExplorerBar's 'NavigationPaneFlyoutDisplaying' event.
		private void ultraExplorerBar1_NavigationPaneFlyoutDisplaying( object sender, NavigationPaneFlyoutDisplayingEventArgs e )
		{
			UltraExplorerBar explorerBar = sender as UltraExplorerBar;

			//	Get the width of the collapsed navigation pane
			int collapsedWidth = explorerBar.NavigationPaneCollapsedWidth;

			//	Define the size for the flyout
			Size flyoutSize = new Size( 200, 300 );

			//	Define the location of the flyout such that it appears
			//	on the left side of the control rather than the right.
			Point flyoutLocation = e.PreferredLocation;
			flyoutLocation.X -= (flyoutSize.Width + collapsedWidth);

			e.PreferredSize = flyoutSize;
			e.PreferredLocation = flyoutLocation;			
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also