Projet Menu avec profondeur complete.
Projet Player sans design play pause basique
Les deux projets ont un Surface[name]Test.xaml & .cs pour montrer les fonctionalites.
(pour tester il faut "set up as start up project")
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="FingersDance.Control.Menu.UserControlMenu"
x:Name="UserControl"
Width="245" Height="Auto" xmlns:Custom="http://schemas.microsoft.com/surface/2008">
<StackPanel x:Name="LayoutRoot" Width="Auto" Height="Auto">
<StackPanel.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF000000" Offset="0"/>
<GradientStop Color="#FF444444" Offset="0.991"/>
<GradientStop Color="#FF757575" Offset="0.906"/>
<GradientStop Color="#FF414141" Offset="0.772"/>
</LinearGradientBrush>
</StackPanel.Background>
<Custom:SurfaceButton FontSize="18" FontWeight="Normal" Foreground="#FFAEAEAE" HorizontalAlignment="Stretch" x:Name="ButtonAnnotation" Width="Auto" Height="45" Content="Annotation" ContactDown="ButtonAnnotation_ContactDown" Click="ButtonAnnotation_Click"/>
<StackPanel RenderTransformOrigin="0.5,0.5" Visibility="Collapsed" HorizontalAlignment="Right" x:Name="PanelAnnotation" Width="208" Height="Auto">
<StackPanel.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="1" ScaleY="1"/>
<SkewTransform AngleX="0" AngleY="0"/>
<RotateTransform Angle="0"/>
<TranslateTransform X="0" Y="0"/>
</TransformGroup>
</StackPanel.RenderTransform>
<Custom:SurfaceButton FontSize="14" FontWeight="Normal" Foreground="#FFAEAEAE" Width="Auto" Height="25" Content="Cinématographique" Visibility="Visible" Background="#72FFFFFF" x:Name="ButtonChildCine" ContactDown="ButtonChildCine_ContactDown" Click="ButtonChildCine_Click"/>
<StackPanel x:Name="PanelChildCine" Width="Auto" Height="Auto" Visibility="Collapsed" HorizontalAlignment="Right" Background="{x:Null}">
<Custom:SurfaceButton Height="25" Content="Mouvement de Caméra" x:Name="ButtonChild1MouvCam" Click="ButtonChild1MouvCam_Click" ContactDown="ButtonChild1MouvCam_ContactDown"/>
<StackPanel x:Name="PanelChild1MouvCam" Height="Auto" Visibility="Collapsed" HorizontalAlignment="Right">
<Custom:SurfaceButton Content="MouvCam1" x:Name="buttonMouvCam1"/>
<Custom:SurfaceButton Content="MouvCam2" x:Name="bouttonMouvCam2"/>
</StackPanel>
<Custom:SurfaceButton Height="25" Content="Axe de Caméra" x:Name="buttonChild1AxeCam" Click="buttonChild1AxeCam_Click" ContactDown="buttonChild1AxeCam_ContactDown"/>
<StackPanel x:Name="PanelChild1AxeCam" Height="Auto" Visibility="Collapsed" HorizontalAlignment="Right">
<Custom:SurfaceButton Content="Axe camèra1" x:Name="buttonAxeCam1"/>
<Custom:SurfaceButton Content="Axe camèra2" x:Name="buttonAxeCam2"/>
<Custom:SurfaceButton Content="Axe camèra3" x:Name="buttonAxeCam3"/>
<Custom:SurfaceButton Content="Axe camèra4" x:Name="buttonAxeCam4"/>
</StackPanel>
</StackPanel>
<Custom:SurfaceButton FontSize="14" FontWeight="Normal" Foreground="#FFAEAEAE" Width="Auto" Height="26" Content="Chorégraphique" Background="#72FFFFFF" Visibility="Visible" x:Name="ButtonChildChore" Click="ButtonChildChore_Click" ContactDown="ButtonChildChore_ContactDown"/>
<StackPanel x:Name="PanelChildChore" Width="Auto" Height="Auto" Visibility="Collapsed" HorizontalAlignment="Right" Background="#FFA6A6A6">
<Custom:SurfaceButton Content="ChildChore1" x:Name="button1"/>
<Custom:SurfaceButton Content="ChildChore2" x:Name="button2"/>
</StackPanel>
</StackPanel>
<Custom:SurfaceButton FontSize="18" FontWeight="Normal" Foreground="#FFAEAEAE" x:Name="ButtonRecherche" Width="Auto" Height="45" Content="Recherche" ContactDown="ButtonRecherche_ContactDown" Click="ButtonRecherche_Click"/>
<StackPanel Visibility="Collapsed" HorizontalAlignment="Right" x:Name="PanelRecherche" Width="262" Height="45"/>
</StackPanel>
</UserControl>