How do I Show/Hide a Grid Row and Grid Splitter based on a Toggle Button? <p>Currently I have a toggle button that is bound to a boolean property (DualLayout) in my code behind. When the boolean is set to True, then I want my second row in my grid (and grid splitter) to hide and have the first row take up the entire space of the grid. Once the boolean is set to False, I want the grid splitter and bottom row to appear.</p> <p>Here is a snippet of my xaml</p> <pre><code>&lt;ToggleButton Name="toggleLayout" Margin="66,1,0,1" Width="25" HorizontalAlignment="Left" IsChecked="{Binding DualLayout}" Checked="toggleLayout_Clicked" Unchecked="toggleLayout_Clicked"&gt; &lt;ToggleButton.Style&gt; &lt;Style TargetType="{x:Type ToggleButton}"&gt; &lt;Style.Triggers&gt; &lt;Trigger Property="IsChecked" Value="true"&gt; &lt;Setter Property="ContentTemplate"&gt; &lt;Setter.Value&gt; &lt;DataTemplate DataType="{x:Type ToggleButton}"&gt; &lt;Image Source="Images/PlayHS.png"/&gt; &lt;/DataTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;Setter Property="ToolTip" Value="Receive and Transmit Windows Split."/&gt; &lt;/Trigger&gt; &lt;Trigger Property="IsChecked" Value="false"&gt; &lt;Setter Property="ContentTemplate"&gt; &lt;Setter.Value&gt; &lt;DataTemplate DataType="{x:Type ToggleButton}"&gt; &lt;Image Source="Images/PauseHS.png"/&gt; &lt;/DataTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;Setter Property="ToolTip" Value="Receive and Transmit Windows Combined."/&gt; &lt;/Trigger&gt; &lt;/Style.Triggers&gt; &lt;/Style&gt; &lt;/ToggleButton.Style&gt; &lt;/ToggleButton&gt; &lt;Grid x:Name="transmissionsGrid" Margin="0,28,0,0"&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="Auto"/&gt; &lt;RowDefinition Height="*" MinHeight="100" /&gt; &lt;/Grid.RowDefinitions&gt; &lt;transmission:TransmissionsControl x:Name="transmissionsReceive" TransmissionType="Receive" Margin="0,0,0,5" /&gt; &lt;GridSplitter Name="gridSplitter1" Grid.Row="0" Background="White" Cursor="SizeNS" Height="4" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Foreground="Firebrick" /&gt; &lt;transmission:TransmissionsControl x:Name="transmissionsTransmit" TransmissionType="Transmit" Grid.Row="1" /&gt; &lt;/Grid&gt; </code></pre>