13 references to PanelAccessibleRole
aspire-tray (13)
src\Aspire.Tray\Common\TrayPanel.cs (4)
1451AddTarget(targets, key, row, title, enabled, null, PanelAccessibleRole.Switch, on, description); 1513PanelAccessibleRole role = PanelAccessibleRole.Button, bool? isChecked = null, string? description = null, string? tooltip = null) 1531_accessible.Add(new(PanelAccessibleKey.For(label), PanelAccessibleRole.Text, text, bounds, chrome ? bounds : bounds.Intersect(_viewport)));
src\Aspire.Tray\Common\TrayPanelScene.cs (3)
194PanelAccessibleRole Role = PanelAccessibleRole.Button, 219PanelAccessibleRole Role,
TrayApplication.NativeSmoke.cs (1)
385NativeSmokeHarness.Require(toggle.Role == PanelAccessibleRole.Switch && toggle.Checked == on && toggle.Enabled == enabled
TrayApplication.PanelAutomation.cs (5)
111if (previous?.Checked != element.Checked && element.Role == PanelAccessibleRole.Switch) 338(NativeMethods.UiaInvokePatternId, PanelAccessibleRole.Button) => (nint)ComInterfaceMarshaller<IInvokeProvider>.ConvertToUnmanaged(this), 339(NativeMethods.UiaTogglePatternId, PanelAccessibleRole.Switch) => (nint)ComInterfaceMarshaller<IToggleProvider>.ConvertToUnmanaged(this), 356PanelAccessibleRole.Switch => NativeMethods.UiaCheckBoxControlTypeId, 357PanelAccessibleRole.Text => NativeMethods.UiaTextControlTypeId,