Intersoft ClientUI 8 > ClientUI Controls > Control Library > Button Controls Overview > UXToggleButton > How-to: Use Toggle Button to Provide a Group Selection |
This example shows how to use UXToggleButton to capture the selection of a group of buttons.
UXToggleButton is a rich, Aero-style button with toggle functionality supporting self and group-toggle feature. The group toggle feature can be enabled by using GroupName property as shown below.
XAML |
Copy Code
|
---|---|
<Intersoft:UXStackPanel Height="45" HorizontalAlignment="Center" Name="uXStackPanel1" VerticalAlignment="Center" Width="332"> <Intersoft:UXToggleButton Content="Visa" Name="uXToggleButton1" Margin="4" Width="75" GroupName="PaymentMethod"/> <Intersoft:UXToggleButton Content="MasterCard" Name="uXToggleButton2" Margin="4" Width="75" GroupName="PaymentMethod"/> <Intersoft:UXToggleButton Content="Amex" Name="uXToggleButton3" Margin="4" Width="75" GroupName="PaymentMethod"/> </Intersoft:UXStackPanel> |