Intersoft.Client.Framework Namespace > ISButton Class : IsToggleButton Property |
<CategoryAttribute("Common Properties")> Public Overridable Property IsToggleButton As Boolean
Dim instance As ISButton Dim value As Boolean instance.IsToggleButton = value value = instance.IsToggleButton
[CategoryAttribute("Common Properties")] public virtual bool IsToggleButton {get; set;}
[CategoryAttribute("Common Properties")] public: virtual property bool IsToggleButton { bool get(); void set ( bool value); }
To configure a button as toggle button you need to set the IsToggleButton property to True and specify the GroupName that group the buttons together.
The following example shows how to configure GlassButton as toggle button.
XAML |
Copy Code
|
---|---|
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal"> <Intersoft:GlassButton Content="ON" Width="50" GroupName="ToggleGroup" IsToggleButton="True" IsChecked="True"/> <Intersoft:GlassButton Content="OFF" Width="50" GroupName="ToggleGroup" IsToggleButton="True"/> </StackPanel> |
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