Intersoft ClientUI Documentation
UXToggleButton Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Aqua Namespace : UXToggleButton Class






Represents a toggle button with three-state check behavior.

Object Model

UXToggleButton Class

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Represents a toggle button with three-state check behavior.")>
Public Class UXToggleButton 
   Inherits UXButton
   Implements IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus 
Visual Basic (Usage)Copy Code
Dim instance As UXToggleButton
C# 
[DescriptionAttribute("Represents a toggle button with three-state check behavior.")]
public class UXToggleButton : UXButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  
Delphi 
public class UXToggleButton = class(UXButton, IControl, IFramework, ILicensing, INavigationSource, INavigationSupport, ICommandSource, IKeyboardFocus)
JScript 
DescriptionAttribute("Represents a toggle button with three-state check behavior.")
public class UXToggleButton extends UXButton implements IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus 
Managed Extensions for C++ 
[DescriptionAttribute("Represents a toggle button with three-state check behavior.")]
public __gc class UXToggleButton : public UXButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  
C++/CLI 
[DescriptionAttribute("Represents a toggle button with three-state check behavior.")]
public ref class UXToggleButton : public UXButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  

Remarks

UXToggleButton derives from UXButton, which means it exposes many of the features available in UXButton, such as ImageContent presentation model, default and cancel button, dialog result, commanding, navigation, and more. To learn about the common features of button, see UXButton Overview.

Unlike command button, UXToggleButton supports three state toggle mode: Checked, Unchecked and Indeterminate, which can be enabled through IsThreeState property. Consequently, you use the CheckedState property which implement nullable boolean type to get or set the checked state of the toggle button.

The following example shows how to setup the UXToggleButton to use three state checked mode, and set the initial state to Indeterminate by setting the CheckedState property to {x:Null}.

XAML Copy Code
<Intersoft:UXToggleButton Content="Always ship on the same day"
                          IsThreeState="true"
                          CheckedState="{x:Null}" />

For more information about UXToggleButton, see UXToggleButton Overview.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                  System.Windows.Controls.Primitives.ButtonBase
                     System.Windows.Controls.Button
                        Intersoft.Client.Framework.ISButton
                           Intersoft.Client.UI.Aqua.UXButton
                              Intersoft.Client.UI.Aqua.UXToggleButton
                                 Intersoft.Client.UI.Aqua.UXCheckBox
                                 Intersoft.Client.UI.Aqua.UXFlatToggleButton
                                 Intersoft.Client.UI.Aqua.UXRadioButton
                                 Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonToggleButton
                                 Intersoft.Client.UI.Data.UXGridViewExpanderButton

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.