2
|
1 |
using System; |
|
2 |
using System.IO; |
|
3 |
using System.Net; |
|
4 |
using System.Windows; |
|
5 |
using System.Windows.Controls; |
|
6 |
using System.Windows.Data; |
|
7 |
using System.Windows.Media; |
|
8 |
using System.Windows.Media.Animation; |
|
9 |
using System.Windows.Navigation; |
|
10 |
|
|
11 |
namespace FingersDance.Control.Menu |
|
12 |
{ |
|
13 |
public partial class UserControlMenu |
|
14 |
{ |
|
15 |
public UserControlMenu() |
|
16 |
{ |
|
17 |
this.InitializeComponent(); |
|
18 |
initChildSize(); |
|
19 |
|
|
20 |
// Insert code required on object creation below this point. |
|
21 |
} |
|
22 |
|
|
23 |
//Premet de deplacer les sous menus vers la droite pour avoir un effect tree view |
|
24 |
private void initChildSize() |
|
25 |
{ |
|
26 |
PanelAnnotation.Width -= 0.20*this.Width; |
|
27 |
PanelRecherche.Width -= 0.20 * this.Width; |
|
28 |
} |
|
29 |
|
|
30 |
private void ButtonAnnotation_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
|
31 |
{ |
|
32 |
if (PanelAnnotation.Visibility == Visibility.Collapsed) |
|
33 |
{ |
|
34 |
PanelAnnotation.Visibility = Visibility.Visible; |
|
35 |
} |
|
36 |
else |
|
37 |
{ |
|
38 |
PanelAnnotation.Visibility = Visibility.Collapsed; |
|
39 |
} |
|
40 |
} |
|
41 |
|
|
42 |
private void ButtonRecherche_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
|
43 |
{ |
|
44 |
if (PanelRecherche.Visibility == Visibility.Collapsed) |
|
45 |
{ |
|
46 |
PanelRecherche.Visibility = Visibility.Visible; |
|
47 |
} |
|
48 |
else |
|
49 |
{ |
|
50 |
PanelRecherche.Visibility = Visibility.Collapsed; |
|
51 |
} |
|
52 |
} |
|
53 |
|
|
54 |
private void ButtonAnnotation_Click(object sender, RoutedEventArgs e) |
|
55 |
{ |
|
56 |
if (PanelAnnotation.Visibility == Visibility.Collapsed) |
|
57 |
{ |
|
58 |
PanelAnnotation.Visibility = Visibility.Visible; |
|
59 |
} |
|
60 |
else |
|
61 |
{ |
|
62 |
PanelAnnotation.Visibility = Visibility.Collapsed; |
|
63 |
} |
|
64 |
} |
|
65 |
|
|
66 |
private void ButtonRecherche_Click(object sender, RoutedEventArgs e) |
|
67 |
{ |
|
68 |
if (PanelRecherche.Visibility == Visibility.Collapsed) |
|
69 |
{ |
|
70 |
PanelRecherche.Visibility = Visibility.Visible; |
|
71 |
} |
|
72 |
else |
|
73 |
{ |
|
74 |
PanelRecherche.Visibility = Visibility.Collapsed; |
|
75 |
} |
|
76 |
} |
|
77 |
} |
|
78 |
} |