On the right side of my Form I have a grid with two on columns,the right column is "45" in width and the left one named "LeftColumn" is set as "Auto" for width. I would like to use checked and unchecked events of a toggle button named "Togglebtn" to show and hide that "LeftColumn"
<pre><!--// Navigation Panel //--> <Grid x:Name="nav_pnl" HorizontalAlignment="Right" Width="Auto" Background="#00171F" Margin="0,45,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition x:Name="LefttColumn" Width="Auto" /> <ColumnDefinition Width="45" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="300" /> <RowDefinition Height="45" /> <RowDefinition Height="45" /> <RowDefinition Height="45" /> <RowDefinition Height="45" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <!--First navigation item--> <Button x:Name="Home" Height="45" BorderBrush="Transparent" Grid.Column="1" Grid.Row="1"> <Button.Background> <ImageBrush ImageSource="images/Home_2.png" Stretch="Uniform"/> </Button.Background> </Button> <Label x:Name ="HomeText" Grid.Column="0" Grid.Row="1" Width ="185" Height="45" Style="{StaticResource font_nav_style}" Content="الصفحة الرئيسية"/> <!--There are 3 other items--> </Grid>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)