Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

IsLockedProperty

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.

<ToolBarTray Background="White" IsLocked="True">

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft