src/FingersDance.Control.Menu/UserControlMenu.xaml
changeset 201 16287a7d1f1a
parent 81 6b991b7e8046
child 210 574041f3b2c9
--- a/src/FingersDance.Control.Menu/UserControlMenu.xaml	Fri Nov 13 23:26:50 2009 +0100
+++ b/src/FingersDance.Control.Menu/UserControlMenu.xaml	Sat Nov 14 19:07:51 2009 +0100
@@ -468,5 +468,11 @@
         </Style>
     </UserControl.Resources>
 
-    <StackPanel x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="{x:Null}"/>
+    <StackPanel x:Name="MainLayoutRoot" Width="{Binding Path=Width, ElementName=UserControl, Mode=Default}" Height="{Binding Path=Height, ElementName=UserControl, Mode=Default}" Background="{x:Null}">
+        <Custom:SurfaceScrollViewer Height="{Binding Path=Height, ElementName=UserControl, Mode=Default}" x:Name="SscrollViewer" Width="{Binding Path=Width, ElementName=MainLayoutRoot, Mode=Default}">
+            <StackPanel x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="{x:Null}">
+            </StackPanel>
+        </Custom:SurfaceScrollViewer>
+
+    </StackPanel>
 </UserControl>
\ No newline at end of file