Intersoft.Client.Framework Namespace > ISButton Class : GroupName Property |
<CategoryAttribute("Common Properties")> Public Overridable Property GroupName As String
[CategoryAttribute("Common Properties")] public virtual string GroupName {get; set;}
[CategoryAttribute("Common Properties")] public: virtual property String^ GroupName { String^ get(); void set ( String^ 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