About 250,000 results
Open links in new tab
  1. c# - What's the difference between CheckBox and ToggleButton

    Oct 7, 2012 · As far I can see, there's only one difference between a CheckBox and ToggleButton - the visual appearance on the ribbon. While the first one will be checked/unchecked, the latter will glow or not.

  2. wpf - What is a toggle button and When can we use it ... - Stack Overflow

    Jun 12, 2012 · It's a button that has an on and off state. You can see from the MSDN docs that it inherits from the same class (ButtonBase) as the regular Button control. And that both CheckBox and RadioButton inherit from it.

  3. WPF CheckBox with "Button" appearance - Stack Overflow

    WPF has a built-in ToggleButton control that serves this purpose. If you need to change the visual appearance of this default control you will need to apply a new Template (ControlTemplate) to it.

  4. Guidelines for toggle switch controls - Windows apps

    Feb 26, 2025 · Choosing between toggle switch and check box. For some actions, either a toggle switch or a check box might work. To decide which control would work better, follow these tips: Use a toggle switch for binary settings when changes become effective immediately after …

  5. ToggleButton Class (System.Windows.Controls.Primitives)

    Base class for controls that can switch states, such as CheckBox. A ToggleButton is a ContentControl, which means that it can contain a single object of any type (such as a string, an image, or a panel). For more information, see the ContentControl class. The IsChecked property specifies the state of the ToggleButton.

  6. WPF Tutorial: Toggle Button in WPF | Toggle Switch | Button

    Nov 11, 2023 · A Toggle Button is a control that can switch states, such as CheckBox and RadioButton. The hierarchical inheritance of ToggleButton class is as follows − Commonly Used Properties in...

  7. The CheckBox control - The complete WPF tutorial

    The CheckBox control allows the end-user to toggle an option on or off, usually reflecting a Boolean value in the Code-behind. Let's jump straight into an example, in case you're not sure how a CheckBox looks:

  8. Mitesh Sureja's Blog: WPF - Toggle Button

    Dec 26, 2011 · Toggle button is similar to checkbox control that holds its state when it clicked. When Toggle button clicked first time it will set IsChecked property to true and on click again it will set IsChecked property to false.

  9. ToggleButton.IsChecked Property …

    Gets or sets whether the ToggleButton is checked. public bool? IsChecked { get; set; } true if the ToggleButton is checked; false if the ToggleButton is unchecked; otherwise null. The default is false. The following example creates a CheckBox set to an indeterminate state. A CheckBox in an indeterminate state. </CheckBox>

  10. Checkbox vs toggle - User Experience Stack Exchange

    Under the hood they're both checkbox elements, but for the device selection I use "on/off" toggles (or a button that changes text/appearance on click for mobile) and for the interval selection I use a standard checkbox.