バージョン

ShowMenuButtonResolved プロパティ

メニュー ボタンがペインのキャプションに表示されるかどうかを示す解決された値を取得します。ShowMenuButton を明示的に設定した場合、このプロパティは設定した値を返します。それ以外の場合は、UltraDockManager で現在使用されている WindowStyle に基づいて値を返します。
シンタックス
'宣言
 
Public ReadOnly Property ShowMenuButtonResolved As Boolean
public bool ShowMenuButtonResolved {get;}
使用例
Imports Infragistics.Win.UltraWinDock

...

' Here we explicitly tell the DockManager to use the default values for ShowMenuButton.
' The default values are based on the WindowStyle of the DockManager.
' You do not normally need to set this to Default because that is the value it will use automatically.
Me.UltraDockManager1.ShowMenuButton = Infragistics.Win.DefaultableBoolean.Default

' Get the names of all the WindowStyle values.
Dim windowStyleNames As String() = System.Enum.GetNames(GetType(WindowStyle))

' Create the message that will be shown in the message box.
Dim message As String = "The menu button will be shown by default when the WindowStyle is: "

' Test the default value of ShowMenuButton for each WindowStyle
Dim name As String
For Each name In windowStyleNames
    Dim style As WindowStyle = CType(System.Enum.Parse(GetType(WindowStyle), name), WindowStyle)
    Me.UltraDockManager1.WindowStyle = style
    If Me.UltraDockManager1.ShowMenuButtonResolved = True Then
        MessageBox.Show(message + style.ToString())
    End If
Next name

' Explicitly tell the DockManager to show the Menu button on pane captions.
Me.UltraDockManager1.ShowMenuButton = Infragistics.Win.DefaultableBoolean.True
If Me.UltraDockManager1.ShowMenuButtonResolved = True Then
    MessageBox.Show("This message box will always show.")
End If
using Infragistics.Win.UltraWinDock;

...

// Here we explicitly tell the DockManager to use the default values for ShowMenuButton.
// The default values are based on the WindowStyle of the DockManager.
// You do not normally need to set this to Default because that is the value it will use automatically.
this.ultraDockManager1.ShowMenuButton = Infragistics.Win.DefaultableBoolean.Default;

// Get the names of all the WindowStyle values.
string[] windowStyleNames = Enum.GetNames( typeof( WindowStyle ) );

// Create the message that will be shown in the message box.
string message = "The menu button will be shown by default when the WindowStyle is: ";

// Test the default value of ShowMenuButton for each WindowStyle
foreach( string name in windowStyleNames )
{
	WindowStyle style = (WindowStyle)Enum.Parse( typeof( WindowStyle ), name );
	this.ultraDockManager1.WindowStyle = style;
	if( this.ultraDockManager1.ShowMenuButtonResolved == true )
		MessageBox.Show( message + style.ToString() );
}

// Explicitly tell the DockManager to show the Menu button on pane captions.
this.ultraDockManager1.ShowMenuButton = Infragistics.Win.DefaultableBoolean.True;
if( this.ultraDockManager1.ShowMenuButtonResolved == true )
	MessageBox.Show( "This message box will always show." );
参照