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






Represents a checkbox that user can select and clear.

Object Model

UXCheckBox Class

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Represents a checkbox that user can select and clear.")>
Public Class UXCheckBox 
   Inherits UXToggleButton
   Implements IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus 
Visual Basic (Usage)Copy Code
Dim instance As UXCheckBox
C# 
[DescriptionAttribute("Represents a checkbox that user can select and clear.")]
public class UXCheckBox : UXToggleButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  
Delphi 
public class UXCheckBox = class(UXToggleButton, IControl, IFramework, ILicensing, INavigationSource, INavigationSupport, ICommandSource, IKeyboardFocus)
JScript 
DescriptionAttribute("Represents a checkbox that user can select and clear.")
public class UXCheckBox extends UXToggleButton implements IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus 
Managed Extensions for C++ 
[DescriptionAttribute("Represents a checkbox that user can select and clear.")]
public __gc class UXCheckBox : public UXToggleButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  
C++/CLI 
[DescriptionAttribute("Represents a checkbox that user can select and clear.")]
public ref class UXCheckBox : public UXToggleButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  

Remarks

UXCheckBox derives from UXToggleButton and shares several features in common such as three state selection, selection routed events and more. This means that you can use UXCheckBox to obtain data input which accepts Checked, Unchecked and Indeterminate state. You enable the three state mode by setting the IsThreeState property to true, then get or set the selection state through the CheckedState property. For more information, see UXToggleButton Overview.

The following example shows how to use UXCheckBox to achieve a scenario similar to the options in task bar settings. 

XAML Copy Code
<Intersoft:GroupBox Header="Taskbar Appearance" Margin="20" VerticalAlignment="Bottom">
    <StackPanel VerticalAlignment="Top">
        <Intersoft:UXCheckBox Content="Lock the taskbar" HorizontalAlignment="Left" CheckState="true" />
        <Intersoft:UXCheckBox Content="Auto-hide the taskbar" HorizontalAlignment="Left" />
        <Intersoft:UXCheckBox Content="Use small icons" HorizontalAlignment="Left" />
    </StackPanel>
</Intersoft:GroupBox>

The result looks like the following figure.

UXCheckBox indirectly derives from UXButton, which means it exposes all features and characteristics of 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.

UXCheckBox also supports keyboard focus visual, access key using Enter key and other UX features. For more information, see User Experiences 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.UXRibbon.UXRibbonCheckBox

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.