23 references to ButtonType
UIAutomationClientsideProviders (23)
MS\Internal\AutomationProxies\WindowsButton.cs (18)
43internal WindowsButton (IntPtr hwnd, ProxyFragment parent, ButtonType type, int style, Accessible acc) 59if(type == ButtonType.PushButton) 64else if(type == ButtonType.CheckBox) 71else if(type == ButtonType.RadioButton) 78else if (type == ButtonType.GroupBox) 111ButtonType type; 129type = ButtonType.PushButton; 136type = ButtonType.CheckBox; 141type = ButtonType.RadioButton; 145type = ButtonType.GroupBox; 242if (iid == InvokePattern.Pattern && _type == ButtonType.PushButton) 247else if (iid == SelectionPattern.Pattern && _type == ButtonType.GroupBox) 251else if (iid == SelectionItemPattern.Pattern && _type == ButtonType.RadioButton) 255else if (iid == TogglePattern.Pattern && _type == ButtonType.CheckBox) 348new WindowsButton(hwndRadioButton, null, ButtonType.RadioButton, Misc.GetWindowStyle(hwndRadioButton) & NativeMethods.BS_TYPEMASK, accRadioButton) 420return new WindowsButton(hwndParent, null, ButtonType.GroupBox, Misc.GetWindowStyle(hwndParent) & NativeMethods.BS_TYPEMASK, accParent); 518if (_type == ButtonType.PushButton && !IsStartButton()) 761private ButtonType _type;
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (5)
61return new WindowsButton(hwnd, null, WindowsButton.ButtonType.GroupBox, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 95return new WindowsButton(hwnd, null, WindowsButton.ButtonType.CheckBox, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 98return new WindowsButton(hwnd, null, WindowsButton.ButtonType.GroupBox, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 101return new WindowsButton(hwnd, null, WindowsButton.ButtonType.PushButton, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc); 104return new WindowsButton(hwnd, null, WindowsButton.ButtonType.RadioButton, Misc.GetWindowStyle(hwnd) & NativeMethods.BS_TYPEMASK, acc);