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






Gets or sets a value that determines the group where this toggle button belongs to.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Overridable Property GroupName As String
Visual Basic (Usage)Copy Code
Dim instance As ISButton
Dim value As String
 
instance.GroupName = value
 
value = instance.GroupName
C# 
[CategoryAttribute("Common Properties")]
public virtual string GroupName {get; set;}
Delphi 
public read-write property GroupName: String; virtual; 
JScript 
CategoryAttribute("Common Properties")
public function get,set GroupName : String
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property virtual string* get_GroupName();
public: __property virtual void set_GroupName( 
   string* value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
virtual property String^ GroupName {
   String^ get();
   void set (    String^ 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.