Intersoft.Client.UI.Aqua.UXRibbon Namespace : UXRibbonCheckBox Class |
<TemplateVisualStateAttribute(Name="KeyboardUnfocused", GroupName="KeyboardFocusStates")> <TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")> <TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")> <TemplateVisualStateAttribute(GroupName="CheckedStates", Name="Indeterminate")> <TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")> <TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)> <TemplatePartAttribute(Name="OuterBorder", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)> <DescriptionAttribute("Represents a checkbox that user can select and clear.")> <TemplatePartAttribute(Name="Glass", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="CheckIcon", Type=System.Windows.Shapes.Path)> <TemplatePartAttribute(Name="StylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)> <TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)> <TemplateVisualStateAttribute(GroupName="CheckedStates", Name="Unchecked")> <TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="IndeterminateElement", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="AnimationElement", Type=System.Windows.Controls.Border)> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Pressed")> <TemplateVisualStateAttribute(GroupName="CheckedStates", Name="Checked")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")> <TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)> Public Class UXRibbonCheckBox Inherits Intersoft.Client.UI.Aqua.UXCheckBox Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.Input.IKeyboardFocus, IRibbonControl, IRibbonKeyTipAction
Dim instance As UXRibbonCheckBox
[TemplateVisualStateAttribute(Name="KeyboardUnfocused", GroupName="KeyboardFocusStates")] [TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")] [TemplateVisualStateAttribute(GroupName="CheckedStates", Name="Indeterminate")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="OuterBorder", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)] [DescriptionAttribute("Represents a checkbox that user can select and clear.")] [TemplatePartAttribute(Name="Glass", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="CheckIcon", Type=System.Windows.Shapes.Path)] [TemplatePartAttribute(Name="StylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)] [TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)] [TemplateVisualStateAttribute(GroupName="CheckedStates", Name="Unchecked")] [TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="IndeterminateElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="AnimationElement", Type=System.Windows.Controls.Border)] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Pressed")] [TemplateVisualStateAttribute(GroupName="CheckedStates", Name="Checked")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")] [TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)] public class UXRibbonCheckBox : Intersoft.Client.UI.Aqua.UXCheckBox, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.Input.IKeyboardFocus, IRibbonControl, IRibbonKeyTipAction
[TemplateVisualStateAttribute(Name="KeyboardUnfocused", GroupName="KeyboardFocusStates")] [TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")] [TemplateVisualStateAttribute(GroupName="CheckedStates", Name="Indeterminate")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="OuterBorder", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)] [DescriptionAttribute("Represents a checkbox that user can select and clear.")] [TemplatePartAttribute(Name="Glass", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="CheckIcon", Type=System.Windows.Shapes.Path)] [TemplatePartAttribute(Name="StylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)] [TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)] [TemplateVisualStateAttribute(GroupName="CheckedStates", Name="Unchecked")] [TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="IndeterminateElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="AnimationElement", Type=System.Windows.Controls.Border)] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Pressed")] [TemplateVisualStateAttribute(GroupName="CheckedStates", Name="Checked")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")] [TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)] public ref class UXRibbonCheckBox : public Intersoft.Client.UI.Aqua.UXCheckBox, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.Input.IKeyboardFocus, IRibbonControl, IRibbonKeyTipAction
Derived from UXCheckBox, UXRibbonCheckBox shares several features in common such as three state selection, selection routed events and more. This means that you can use UXRibbonCheckBox 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 UXCheckBox Overview.
XAML |
Copy Code
|
---|---|
<Intersoft:UXRibbonCheckBox Content="Delete" Icon="/assets/icons/delete.png" /> |
The result looks like the following figure.
To learn more about ribbon controls, see Working with Ribbon Controls.
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
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2