Show / Hide Table of Contents

Class RatingAutomationPeer

Exposes Rating types to UI Automation.

Inheritance
System.Object
DependencyObject
AutomationPeer
FrameworkElementAutomationPeer
ItemsControlAutomationPeer
RatingAutomationPeer
Implements
IValueProvider
ISelectionProvider
Inherited Members
ItemsControlAutomationPeer.CreateItemAutomationPeer(Object)
FrameworkElementAutomationPeer.Owner
FrameworkElementAutomationPeer.FromElement(UIElement)
FrameworkElementAutomationPeer.CreatePeerForElement(UIElement)
FrameworkElementAutomationPeer.GetAcceleratorKeyCore()
FrameworkElementAutomationPeer.GetAccessKeyCore()
FrameworkElementAutomationPeer.GetAutomationIdCore()
FrameworkElementAutomationPeer.GetHelpTextCore()
FrameworkElementAutomationPeer.GetItemStatusCore()
FrameworkElementAutomationPeer.GetItemTypeCore()
FrameworkElementAutomationPeer.GetLabeledByCore()
FrameworkElementAutomationPeer.IsRequiredForFormCore()
FrameworkElementAutomationPeer.GetClassNameCore()
FrameworkElementAutomationPeer.GetBoundingRectangleCore()
FrameworkElementAutomationPeer.GetClickablePointCore()
FrameworkElementAutomationPeer.IsContentElementCore()
FrameworkElementAutomationPeer.IsControlElementCore()
FrameworkElementAutomationPeer.IsPasswordCore()
FrameworkElementAutomationPeer.IsEnabledCore()
FrameworkElementAutomationPeer.GetOrientationCore()
FrameworkElementAutomationPeer.HasKeyboardFocusCore()
FrameworkElementAutomationPeer.IsKeyboardFocusableCore()
FrameworkElementAutomationPeer.IsOffscreenCore()
FrameworkElementAutomationPeer.SetFocusCore()
AutomationPeer.EventsSource
AutomationPeer.ListenerExists(AutomationEvents)
AutomationPeer.GetAcceleratorKey()
AutomationPeer.GetAccessKey()
AutomationPeer.GetAutomationControlType()
AutomationPeer.GetAutomationId()
AutomationPeer.GetBoundingRectangle()
AutomationPeer.GetChildren()
AutomationPeer.GetClassName()
AutomationPeer.GetClickablePoint()
AutomationPeer.GetHelpText()
AutomationPeer.GetItemStatus()
AutomationPeer.GetItemType()
AutomationPeer.GetLabeledBy()
AutomationPeer.GetLocalizedControlType()
AutomationPeer.GetName()
AutomationPeer.GetOrientation()
AutomationPeer.HasKeyboardFocus()
AutomationPeer.IsContentElement()
AutomationPeer.IsControlElement()
AutomationPeer.IsEnabled()
AutomationPeer.IsKeyboardFocusable()
AutomationPeer.IsOffscreen()
AutomationPeer.IsPassword()
AutomationPeer.IsRequiredForForm()
AutomationPeer.SetFocus()
AutomationPeer.InvalidatePeer()
AutomationPeer.GetParent()
AutomationPeer.RaiseAutomationEvent(AutomationEvents)
AutomationPeer.RaisePropertyChangedEvent(AutomationProperty, Object, Object)
AutomationPeer.PeerFromProvider(IRawElementProviderSimple)
AutomationPeer.ProviderFromPeer(AutomationPeer)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.Controls.Input.Toolkit.dll
Syntax
public sealed class RatingAutomationPeer : ItemsControlAutomationPeer, IDependencyObject, IValueProvider, ISelectionProvider

Constructors

| Improve this Doc View Source

RatingAutomationPeer(Rating)

Initializes a new instance of the RatingAutomationPeer class.

Declaration
public RatingAutomationPeer(Rating owner)
Parameters
Type Name Description
Rating owner

The Rating that is associated with this RatingAutomationPeer.

Properties

| Improve this Doc View Source

CanSelectMultiple

Gets a value indicating whether the UI Automation provider allows more than one child element to be selected concurrently.

Declaration
public bool CanSelectMultiple { get; }
Property Value
Type Description
System.Boolean

true if multiple selection is allowed; otherwise, false.

Remarks

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

| Improve this Doc View Source

IsReadOnly

Gets a value indicating whether the Rating is read-only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsSelectionRequired

Gets a value indicating whether the UI Automation provider requires at least one child element to be selected.

Declaration
public bool IsSelectionRequired { get; }
Property Value
Type Description
System.Boolean

true if selection is required; otherwise, false.

Remarks

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

| Improve this Doc View Source

Value

Gets the rating value.

Declaration
public string Value { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

GetAutomationControlTypeCore()

Gets the control type for the Rating that is associated with this RatingAutomationPeer. This method is called by GetAutomationControlType.

Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type Description
AutomationControlType

List AutomationControlType.

Overrides
FrameworkElementAutomationPeer.GetAutomationControlTypeCore()
| Improve this Doc View Source

GetChildrenCore()

Gets the collection of child elements of the ItemsControl that is associated with this ItemsControlAutomationPeer.

Declaration
protected override List<AutomationPeer> GetChildrenCore()
Returns
Type Description
System.Collections.Generic.List<AutomationPeer>

A collection of RatingItemAutomationPeer elements, or null if the Rating that is associated with this RatingAutomationPeer is empty.

Overrides
ItemsControlAutomationPeer.GetChildrenCore()
| Improve this Doc View Source

GetLocalizedControlTypeCore()

Returns the localized control type.

Declaration
protected override string GetLocalizedControlTypeCore()
Returns
Type Description
System.String

The localized control type.

Overrides
FrameworkElementAutomationPeer.GetLocalizedControlTypeCore()
| Improve this Doc View Source

GetNameCore()

Returns a name if no name is set.

Declaration
protected override string GetNameCore()
Returns
Type Description
System.String

A name if no name is set.

Overrides
FrameworkElementAutomationPeer.GetNameCore()
| Improve this Doc View Source

GetPattern(PatternInterface)

Gets the control pattern for the Rating that is associated with this RatingAutomationPeer.

Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type Name Description
PatternInterface patternInterface

The desired PatternInterface.

Returns
Type Description
System.Object

The desired AutomationPeer or null.

Overrides
ItemsControlAutomationPeer.GetPattern(PatternInterface)
| Improve this Doc View Source

GetSelection()

Retrieves a UI Automation provider for each child element that is selected.

Declaration
public IRawElementProviderSimple[] GetSelection()
Returns
Type Description
IRawElementProviderSimple[]

An array of UI Automation providers.

Remarks

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

| Improve this Doc View Source

SetValue(String)

Sets a rating value.

Declaration
public void SetValue(string value)
Parameters
Type Name Description
System.String value

The value of the rating.

Implements

IValueProvider
ISelectionProvider

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source