バージョン

PreferredLocation プロパティ

画面座標で表されるナビゲーション ペイン フライアウトの場所を取得または設定します。
シンタックス
'宣言
 
Public Property PreferredLocation As Point
public Point PreferredLocation {get; set;}
使用例
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;			
		}
参照