5 references to Switch
aspire-tray (5)
src\Aspire.Tray\Common\TrayPanel.cs (1)
1451AddTarget(targets, key, row, title, enabled, null, PanelAccessibleRole.Switch, on, description);
TrayApplication.NativeSmoke.cs (1)
385NativeSmokeHarness.Require(toggle.Role == PanelAccessibleRole.Switch && toggle.Checked == on && toggle.Enabled == enabled
TrayApplication.PanelAutomation.cs (3)
111if (previous?.Checked != element.Checked && element.Role == PanelAccessibleRole.Switch) 339(NativeMethods.UiaTogglePatternId, PanelAccessibleRole.Switch) => (nint)ComInterfaceMarshaller<IToggleProvider>.ConvertToUnmanaged(this), 356PanelAccessibleRole.Switch => NativeMethods.UiaCheckBoxControlTypeId,