Version

ShowMenuButtonResolved Property

Gets the resolved value of whether the "menu" button should be shown on the captions of panes or not. If you explicitly set ShowMenuButton then this property will return the value you chose, otherwise it will return a value based on the WindowStyle currently in use by the UltraDockManager.
Syntax
'Declaration
 
Public ReadOnly Property ShowMenuButtonResolved As Boolean
public bool ShowMenuButtonResolved {get;}
Example
The following code shows how to use the ShowMenuButton and ShowMenuButtonResolved properties of the UltraDockManager. If you explicitly set the ShowMenuButton property to something other than Default then ShowMenuButtonResolved will return the value which you set it to. If ShowMenuButton has the value Default, then ShowMenuButtonResolved determines its return value based on the WindowStyle currently being used by the UltraDockManager.

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." );
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