--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.Menu/UserControlMenu.xaml.cs Wed Jul 29 00:55:57 2009 +0200
@@ -0,0 +1,78 @@
+using System;
+using System.IO;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Navigation;
+
+namespace FingersDance.Control.Menu
+{
+ public partial class UserControlMenu
+ {
+ public UserControlMenu()
+ {
+ this.InitializeComponent();
+ initChildSize();
+
+ // Insert code required on object creation below this point.
+ }
+
+ //Premet de deplacer les sous menus vers la droite pour avoir un effect tree view
+ private void initChildSize()
+ {
+ PanelAnnotation.Width -= 0.20*this.Width;
+ PanelRecherche.Width -= 0.20 * this.Width;
+ }
+
+ private void ButtonAnnotation_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
+ {
+ if (PanelAnnotation.Visibility == Visibility.Collapsed)
+ {
+ PanelAnnotation.Visibility = Visibility.Visible;
+ }
+ else
+ {
+ PanelAnnotation.Visibility = Visibility.Collapsed;
+ }
+ }
+
+ private void ButtonRecherche_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
+ {
+ if (PanelRecherche.Visibility == Visibility.Collapsed)
+ {
+ PanelRecherche.Visibility = Visibility.Visible;
+ }
+ else
+ {
+ PanelRecherche.Visibility = Visibility.Collapsed;
+ }
+ }
+
+ private void ButtonAnnotation_Click(object sender, RoutedEventArgs e)
+ {
+ if (PanelAnnotation.Visibility == Visibility.Collapsed)
+ {
+ PanelAnnotation.Visibility = Visibility.Visible;
+ }
+ else
+ {
+ PanelAnnotation.Visibility = Visibility.Collapsed;
+ }
+ }
+
+ private void ButtonRecherche_Click(object sender, RoutedEventArgs e)
+ {
+ if (PanelRecherche.Visibility == Visibility.Collapsed)
+ {
+ PanelRecherche.Visibility = Visibility.Visible;
+ }
+ else
+ {
+ PanelRecherche.Visibility = Visibility.Collapsed;
+ }
+ }
+ }
+}
\ No newline at end of file