In This Article

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 an instance of the class.

public StandardSwitcherItem()

Properties

IsSelected

Indicates whether the item is selected.

public bool IsSelected { get; set; }

Property Value

bool

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnContentChanged(object, object)

Called when the Content property changes.

protected override void OnContentChanged(object oldContent, object newContent)
Parameter Type Description
oldContent object

The old value of the Content property.

newContent object

The new value of the Content property.

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

Fields

IsSelectedProperty

Defines the IsSelected property.

public static readonly DependencyProperty IsSelectedProperty

Extension Methods