23 references to ButtonType
UIAutomationClientSideProviders (23)
MS\Internal\AutomationProxies\WindowsButton.cs (18)
31internal WindowsButton (IntPtr hwnd, ProxyFragment parent, ButtonType type, int style, Accessible acc) 47if(type == ButtonType.PushButton) 52else if(type == ButtonType.CheckBox) 59else if(type == ButtonType.RadioButton) 66else if (type == ButtonType.GroupBox) 95ButtonType type; 113type = ButtonType.PushButton; 120type = ButtonType.CheckBox; 125type = ButtonType.RadioButton; 129type = ButtonType.GroupBox; 226if (iid == InvokePattern.Pattern && _type == ButtonType.PushButton) 231else if (iid == SelectionPattern.Pattern && _type == ButtonType.GroupBox) 235else if (iid == SelectionItemPattern.Pattern && _type == ButtonType.RadioButton) 239else if (iid == TogglePattern.Pattern && _type == ButtonType.CheckBox) 332new WindowsButton(hwndRadioButton, null, ButtonType.RadioButton, Misc.GetWindowStyle(hwndRadioButton) & NativeMethods.BS_TYPEMASK, accRadioButton) 404return new WindowsButton(hwndParent, null, ButtonType.GroupBox, Misc.GetWindowStyle(hwndParent) & NativeMethods.BS_TYPEMASK, accParent); 502if (_type == ButtonType.PushButton && !IsStartButton()) 745private ButtonType _type;
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (5)
51return new WindowsButton(hwnd, null, WindowsButton.ButtonType.GroupBox, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 85return new WindowsButton(hwnd, null, WindowsButton.ButtonType.CheckBox, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 88return new WindowsButton(hwnd, null, WindowsButton.ButtonType.GroupBox, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 91return new WindowsButton(hwnd, null, WindowsButton.ButtonType.PushButton, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 94return new WindowsButton(hwnd, null, WindowsButton.ButtonType.RadioButton, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc);