NavigationViewItemAutomationPeer
C# API / Fluence.Wpf.Automation
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Automation
public sealed class NavigationViewItemAutomationPeer : FrameworkElementAutomationPeer, ISelectionItemProvider, IInvokeProvider
Exposes NavigationViewItem to UI Automation as a selectable list item.
Remarks: Initializes a new instance.
Parameter owner: The NavigationViewItem control represented by this automation peer.
Base type: FrameworkElementAutomationPeer (including inherited WPF and .NET members)
Constructors
NavigationViewItemAutomationPeer
public NavigationViewItemAutomationPeer(NavigationViewItem owner)
Exposes NavigationViewItem to UI Automation as a selectable list item.
Remarks: Initializes a new instance.
Parameter owner: The NavigationViewItem control represented by this automation peer.
Properties
IsSelected
public bool IsSelected { get; }
Documentation inherited from the FrameworkElementAutomationPeer API.
SelectionContainer
public IRawElementProviderSimple? SelectionContainer { get; }
Documentation inherited from the FrameworkElementAutomationPeer API.
Methods
AddToSelection
public void AddToSelection()
Documentation inherited from the FrameworkElementAutomationPeer API.
Exception System.Windows.Automation.ElementNotEnabledException: The item is disabled.
GetAutomationControlTypeCore
protected override AutomationControlType GetAutomationControlTypeCore()
Documentation inherited from the FrameworkElementAutomationPeer API.
GetClassNameCore
protected override string GetClassNameCore()
Documentation inherited from the FrameworkElementAutomationPeer API.
GetPattern
public override object GetPattern(PatternInterface patternInterface)
Documentation inherited from the FrameworkElementAutomationPeer API.
Invoke
public void Invoke()
Documentation inherited from the FrameworkElementAutomationPeer API.
Exception System.Windows.Automation.ElementNotEnabledException: The item is disabled.
RemoveFromSelection
public void RemoveFromSelection()
Documentation inherited from the FrameworkElementAutomationPeer API.
Exception System.Windows.Automation.ElementNotEnabledException: The item is disabled.
SelectItem
public void SelectItem()
Selects the associated navigation view item.
Exception System.Windows.Automation.ElementNotEnabledException: The item is disabled.