Dela via


Ribbon.IsHostedInRibbonWindow Property

Gets a value that indicates whether the Ribbon is currently hosted in a RibbonWindow.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property IsHostedInRibbonWindow As Boolean
public bool IsHostedInRibbonWindow { get; private set; }
public:
property bool IsHostedInRibbonWindow {
    bool get ();
    private: void set (bool value);
}
member IsHostedInRibbonWindow : bool with get, private set
function get IsHostedInRibbonWindow () : boolean
private function set IsHostedInRibbonWindow (value : boolean)

Property Value

Type: System.Boolean
true if the Ribbon is hosted in a RibbonWindow; otherwise, false. The registered default is false. For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

IsHostedInRibbonWindowProperty

Metadata properties set to true

None

.NET Framework Security

See Also

Reference

Ribbon Class

Microsoft.Windows.Controls.Ribbon Namespace