| 1234567891011121314151617181920212223242526 | <Window x:Class="MECF.Framework.UI.Core.Control.SwitchValueDialog2"             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"             Height="330" Width="560"  MaxHeight="350" MinHeight="260" MaxWidth="500"  MinWidth="300" WindowStyle="ToolWindow"            WindowStartupLocation="CenterOwner">    <Grid Margin="0,0,0,0">        <Grid.RowDefinitions>            <RowDefinition Height="50"/>            <RowDefinition Height="180"/>            <RowDefinition Height="70"/>        </Grid.RowDefinitions>        <TextBlock x:Name="TxtDeviceName" FontSize="20" HorizontalAlignment="Center" Margin="-30,5,0,0"/>        <GroupBox Grid.Row="1" Height="150" Width="300" Margin="20,0,63,26" >            <GroupBox.Header>                <TextBlock Text="Switch" FontSize="20"></TextBlock>            </GroupBox.Header>            <Canvas>                <RadioButton Grid.Row="0" x:Name="opencheck" Grid.Column="0" Content="Enable Device" Width="160" Margin="65,10,0,0" VerticalContentAlignment="Center" Height="45" Click="RadioButton_Click"  GroupName="Switch"></RadioButton>                <RadioButton Grid.Row="1" x:Name="closecheck" Grid.Column="0" Content="Disable Device" Width="160" Margin="65,70,0,0" VerticalContentAlignment="Center" Height="45" Click="RadioButton_Click_1" GroupName="Switch"></RadioButton>            </Canvas>        </GroupBox>        <Button Grid.Row="2" Grid.Column="1" Content="EXEC"  Margin="-10,-10,0,0" Width="130" Height="45" Click="Button_Click_1"></Button>        <Button Grid.Row="2" Grid.Column="1" Content="Cancel"  Margin="270,-10,0,0" Width="130" Height="45" Click="Button_Click"></Button>    </Grid></Window>
 |