Intersoft ClientUI Documentation
IsToggleButton Property
See Also  Send Feedback
Intersoft.Client.Framework Namespace > ISButton Class : IsToggleButton Property






Gets or sets a value that indicate whether the button should use toggle button behavior.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Overridable Property IsToggleButton As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ISButton
Dim value As Boolean
 
instance.IsToggleButton = value
 
value = instance.IsToggleButton
C# 
[CategoryAttribute("Common Properties")]
public virtual bool IsToggleButton {get; set;}
Delphi 
public read-write property IsToggleButton: Boolean; virtual; 
JScript 
CategoryAttribute("Common Properties")
public function get,set IsToggleButton : boolean
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property virtual bool get_IsToggleButton();
public: __property virtual void set_IsToggleButton( 
   bool value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
virtual property bool IsToggleButton {
   bool get();
   void set (    bool value);
}

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>

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.

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.