title: Scrollviewer not visible inside Usercontrol WPF
body: <p>WPF Scrollviewer not visible inside Usercontrol.</p>
  
  <p>I am using PRISM architecture. </p>
  
  <p>I have a scrollviewer inside usercontrol and the scrollviewer contains a stackpanel.</p>
  
  <pre><code>&lt;UserControl x:Class="SomeView"  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"         
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"         
        mc:Ignorable="d" &gt;
  
       &lt;UserControl.Resources&gt;        
       &lt;BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/&gt;        
       &lt;/UserControl.Resources&gt;
  
       &lt;ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"&gt;  
       &lt;StackPanel&gt;     
  &lt;TextBlock Text="Initialize" HorizontalAlignment="Center" VerticalAlignment="Center"/&gt;
  
   &lt;StackPanel Orientation="Horizontal"&gt;     
   &lt;Label Content="Left"/&gt;     
  
   &lt;ComboBox ItemsSource="{Binding LeftComboItems}"  SelectedItem="{Binding LeftSelectedItem}" /&gt;　
   &lt;Label Content="Right"/&gt;     
  &lt;ComboBox ItemsSource="{Binding RightComboItems}" SelectedItem="{Binding RightSelectedItem}"/&gt;     
   &lt;Label/&gt;    
  
  &lt;Button Content="Save" Command="{Binding SaveCommand}"/&gt;     
   &lt;/StackPanel&gt;     
   &lt;StackPanel Visibility="{Binding IsVisible,Converter={StaticResource BooleanToVisibilityConverter}}"&gt;   
  
   &lt;Grid&gt;   
  </code></pre>
  
  <p>Skipping column definitions</p>
  
  <pre><code>&lt;StackPanel Grid.Column="1" Grid.ColumnSpan="2"&gt;     
   &lt;Label Content="Left"  /&gt;     
   &lt;DataGrid ItemsSource="{Binding LeftDataGrid}" AutoGenerateColumns="False" ColumnWidth="*" Grid.Column="2" &gt;     
   &lt;DataGrid.Columns&gt;     
   &lt;DataGridTextColumn Header="ID" Binding="{Binding ID}" /&gt;     
   &lt;DataGridTextColumn Header="Name" Binding="{Binding Name}" /&gt;     
   &lt;/DataGrid.Columns&gt;     
   &lt;/DataGrid&gt;     
   &lt;/StackPanel&gt;  
  
   &lt;StackPanel Grid.Column="4" Grid.ColumnSpan="2"&gt;   
   &lt;Label Content="Left Grid" /&gt;     
   &lt;DataGrid ItemsSource="{Binding RightDataGrid, Mode=OneWay}" AutoGenerateColumns="False" ColumnWidth="*" CanUserAddRows="False" CanUserDeleteRows="False" &gt;
  
  
   &lt;DataGridTextColumn Header="ID" Binding="{Binding id}" /&gt;     
   &lt;DataGridTextColumn Header="Name" Binding="{Binding Name}"/&gt;     
  
   &lt;/DataGrid&gt;
   &lt;/StackPanel&gt;
  
      &lt;/StackPanel&gt; 
   &lt;/Grid&gt;    
       &lt;/StackPanel&gt;        
       &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p></p>
  
  <p>LeftComboItems, RightComboItems are Observable Collections of type string.</p>