StandardSwitcherItem Class
Represents an item in a StandardSwitcher.
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Selected", GroupName = "CommonStates")]
public class StandardSwitcherItem : ContentControl
- Inheritance:
- object Visual UIElement FrameworkElement Control ContentControl object
Constructors
StandardSwitcherItem()
Initializes a new instance of the StandardSwitcherItem class.
public StandardSwitcherItem()
Properties
IsSelected
Gets or sets whether the item is selected.
public bool IsSelected { get; set; }
Property Value
- bool:
true
if the item is selected; otherwise,false
.
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate
.
public override void OnApplyTemplate()
OnContentChanged(object, object)
Occurs when the content is changed.
protected override void OnContentChanged(object oldContent, object newContent)
Parameter | Type | Description |
---|---|---|
oldContent | object | The old content. |
newContent | object | The new content. |
OnCreateAutomationPeer()
Returns an AutomationPeer object for this control instance.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
An AutomationPeer instance.
Fields
IsSelectedProperty
Identifies the IsSelected dependency property. This field is read-only.
public static readonly DependencyProperty IsSelectedProperty