IsLocked Property

ToolBarTray.IsLocked Property


Gets or sets a value that indicates whether a ToolBar can be moved inside a ToolBarTray.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool IsLocked { get; set; }

Property Value

Type: System.Boolean

true if the toolbar cannot be moved inside the toolbar tray; otherwise, false. The default is false.

This dependency property also has an attached property usage.

<object IsLocked="bool"/>
- or -
<object ToolBarTray.IsLocked="bool"/>

Identifier field


Metadata properties set to true

AffectsMeasure, Inherits

The following example shows how to create a ToolBarTray that does not allow a ToolBar to move inside it.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft