ClassRadOutlookBarItem
Represents an item in a RadOutlookBar that can hold a header and associated content. This class allows customization of visual elements such as icons, titles, and content templates for both active and minimized states. It supports visual states, event handling for position changes, and styling through templates. The RadOutlookBarItem can be positioned in active, minimized, or overflow areas and displays different icons depending on its state. The class also provides various dependency properties to control its appearance and behavior.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[TelerikToolboxCategory("Navigation")]
public class RadOutlookBarItem : RadTabItem, IRadTabItem
Inheritance: objectRadTabItemRadOutlookBarItem
Implements:
Inherited Members
Constructors
RadOutlookBarItem()
Initializes a new instance of the RadOutlookBarItem class.
Declaration
public RadOutlookBarItem()
Fields
IconMarginProperty
Identifies the IconMarginProperty dependency property.
Declaration
public static readonly DependencyProperty IconMarginProperty
Field Value
DependencyProperty
IconProperty
Identifies the Icon dependency property.
Declaration
public static readonly DependencyProperty IconProperty
Field Value
DependencyProperty
MinimizedContentProperty
Identifies the MinimizedContent dependency property.
Declaration
public static readonly DependencyProperty MinimizedContentProperty
Field Value
DependencyProperty
MinimizedContentTemplateProperty
Identifies the MinimizedContentTemplate dependency property.
Declaration
public static readonly DependencyProperty MinimizedContentTemplateProperty
Field Value
DependencyProperty
MinimizedContentTemplateSelectorProperty
Identifies the MinimizedContentTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty MinimizedContentTemplateSelectorProperty
Field Value
DependencyProperty
PositionChangedEvent
This event gets fired every time a RadOutlookBarItem changes its position.
Declaration
public static readonly RoutedEvent PositionChangedEvent
Field Value
RoutedEvent
SmallIconProperty
Identifies the SmallIcon dependency property.
Declaration
public static readonly DependencyProperty SmallIconProperty
Field Value
DependencyProperty
TitleProperty
Identifies the Header property.
Declaration
public static readonly DependencyProperty TitleProperty
Field Value
DependencyProperty
TitleTemplateProperty
Identifies the TitleTemplate dependency property.
Declaration
public static readonly DependencyProperty TitleTemplateProperty
Field Value
DependencyProperty
TitleTemplateSelectorProperty
Identifies the TitleTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty TitleTemplateSelectorProperty
Field Value
DependencyProperty
Properties
Icon
Gets or sets the source of the icon of RadOutlookBarItem.
Declaration
public ImageSource Icon { get; set; }
Property Value
ImageSource
Remarks
The icon is visible when the RadOutlookBarItem is in the ActiveArea.
IconMargin
Gets or sets the margin of the icon of RadOutlookBarItem.
Declaration
public Thickness IconMargin { get; set; }
Property Value
Thickness
MinimizedContent
Gets or sets the content that will represent the RadOutlookBarItem while in MinimizedArea.
MinimizedContentTemplate
Gets or sets the content template that will represent the RadOutlookBarItem while in MinimizedArea.
Declaration
public DataTemplate MinimizedContentTemplate { get; set; }
Property Value
DataTemplate
MinimizedContentTemplateSelector
Gets or sets the content template selector that will select a template to represent the RadOutlookBarItem while in MinimizedArea.
Declaration
public DataTemplateSelector MinimizedContentTemplateSelector { get; set; }
Property Value
DataTemplateSelector
Position
Gets the position of the RadOutlookBarItem. This item can be positioned in: ActiveArea MinimizedArea OverflowArea.
Declaration
public OutlookBarItemPosition Position { get; }
Property Value
SmallIcon
Gets or sets the source of the small icon of RadOutlookBarItem.
Declaration
public ImageSource SmallIcon { get; set; }
Property Value
ImageSource
Remarks
The small icon is visible when the RadOutlookBarItem is in the MinimizedArea.
Title
Gets or sets the title of the parent RadOutlookBar control.
TitleTemplate
Gets or sets the template for the title of the parent RadOutlookBar control.
Declaration
public DataTemplate TitleTemplate { get; set; }
Property Value
DataTemplate
TitleTemplateSelector
Gets or sets the template selector for the title template of the parent RadOutlookBar control.
Declaration
public DataTemplateSelector TitleTemplateSelector { get; set; }
Property Value
DataTemplateSelector
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate().
Declaration
public override void OnApplyTemplate()
Overrides
OnHeaderChanged(object, object)
Allows derived classes to act on header change.
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides
OnIsSelectedChanged(bool, bool)
Called when item is selected.
OnTitleChanged(object, object)
Allows derived classes to act on header change.
Events
PositionChanged
Occurs when a RadOutlookBarItem changes its position, for example, from ActiveArea to MinimizedArea.
Declaration
public event PositionChangedEventHandler PositionChanged
Event Value