13 references to PanelAccessibleRole
aspire-tray (13)
src\Aspire.Tray\Common\TrayPanel.cs (4)
1451
AddTarget(targets, key, row, title, enabled, null,
PanelAccessibleRole
.Switch, on, description);
1513
PanelAccessibleRole
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)
194
PanelAccessibleRole
Role =
PanelAccessibleRole
.Button,
219
PanelAccessibleRole
Role,
TrayApplication.NativeSmoke.cs (1)
385
NativeSmokeHarness.Require(toggle.Role ==
PanelAccessibleRole
.Switch && toggle.Checked == on && toggle.Enabled == enabled
TrayApplication.PanelAutomation.cs (5)
111
if (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),
356
PanelAccessibleRole
.Switch => NativeMethods.UiaCheckBoxControlTypeId,
357
PanelAccessibleRole
.Text => NativeMethods.UiaTextControlTypeId,