--- 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
--- a/src/FingersDance.Control.Menu/UserControlMenu.xaml.cs Fri Nov 13 23:26:50 2009 +0100
+++ b/src/FingersDance.Control.Menu/UserControlMenu.xaml.cs Sat Nov 14 19:07:51 2009 +0100
@@ -43,6 +43,7 @@
foreach (Item elt in temp.Items)
try
{
+ //SscrollViewer.Co
LayoutRoot.Children.Add(CreateMenuItem(elt));
}
catch (Exception) { }