Intersoft ClientUI Documentation
IsToggleButton Property



Gets or sets a value that indicate whether the button should use toggle button behavior.
Syntax
<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);
}
Remarks

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.

Example

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>
Requirements

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

See Also

Reference

ISButton Class
ISButton Members

Send Feedback