New to Telerik UI for WPFStart a free 30-day trial

A tray where RadToolBar controls are positioned.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
public class RadToolBarTray : ItemsControl

Inheritance: objectRadToolBarTray

Constructors

Initializes a new instance of the RadToolBarTray class.

C#
public RadToolBarTray()

Fields

IsLockedProperty

DependencyProperty

Identifies the property.

C#
public static readonly DependencyProperty IsLockedProperty

OrientationProperty

DependencyProperty

Identifies the property.

C#
public static readonly DependencyProperty OrientationProperty

Properties

Specifies whether RadToolBars can be moved inside the RadToolBarTray. This is an attached property.

C#
public bool IsLocked { get; set; }

Orientation

Orientation

Gets or sets a value indicating whether the control is vertical or horizontal. This is a dependency property.

C#
public Orientation Orientation { get; set; }
Remarks:

The default value is Orientation.Horizontal.

Methods

C#
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObjectitemobject
C#
protected override DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

Reads the value of the IsLocked property from the specified element.

C#
public static bool GetIsLocked(DependencyObject element)
Parameters:elementDependencyObject

The item to check.

Returns:

bool

C#
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobjectReturns:

bool

Invoked when the template is applied to the RadToolBarTray. This method is primarily responsible for initializing the visual elements of the control after the control's template has been applied.

C#
public override void OnApplyTemplate()
C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

C#
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

Prepares the specified element to display the specified item.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element used to display the specified item.

itemobject

Specified item.

Resets the theme.

C#
public void ResetTheme()

Writes the value of the IsLocked property from the specified element.

C#
public static void SetIsLocked(DependencyObject element, bool value)
Parameters:elementDependencyObject

The item to be initialized.

valuebool

The supplied value.