23 references to ButtonType
UIAutomationClientSideProviders (23)
MS\Internal\AutomationProxies\WindowsButton.cs (18)
30internal WindowsButton (IntPtr hwnd, ProxyFragment parent, ButtonType type, int style, Accessible acc) 46if(type == ButtonType.PushButton) 51else if(type == ButtonType.CheckBox) 58else if(type == ButtonType.RadioButton) 65else if (type == ButtonType.GroupBox) 94ButtonType type; 112type = ButtonType.PushButton; 119type = ButtonType.CheckBox; 124type = ButtonType.RadioButton; 128type = ButtonType.GroupBox; 225if (iid == InvokePattern.Pattern && _type == ButtonType.PushButton) 230else if (iid == SelectionPattern.Pattern && _type == ButtonType.GroupBox) 234else if (iid == SelectionItemPattern.Pattern && _type == ButtonType.RadioButton) 238else if (iid == TogglePattern.Pattern && _type == ButtonType.CheckBox) 328new WindowsButton(hwndRadioButton, null, ButtonType.RadioButton, Misc.GetWindowStyle(hwndRadioButton) & NativeMethods.BS_TYPEMASK, accRadioButton) 400return new WindowsButton(hwndParent, null, ButtonType.GroupBox, Misc.GetWindowStyle(hwndParent) & NativeMethods.BS_TYPEMASK, accParent); 498if (_type == ButtonType.PushButton && !IsStartButton()) 741private ButtonType _type;
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (5)
50return new WindowsButton(hwnd, null, WindowsButton.ButtonType.GroupBox, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 84return new WindowsButton(hwnd, null, WindowsButton.ButtonType.CheckBox, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 87return new WindowsButton(hwnd, null, WindowsButton.ButtonType.GroupBox, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 90return new WindowsButton(hwnd, null, WindowsButton.ButtonType.PushButton, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 93return new WindowsButton(hwnd, null, WindowsButton.ButtonType.RadioButton, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc);