diff --git a/ISET2018_WPF/Fen1.xaml b/ISET2018_WPF/Fen1.xaml
new file mode 100644
index 0000000..8897477
--- /dev/null
+++ b/ISET2018_WPF/Fen1.xaml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ISET2018_WPF/Fen1.xaml.cs b/ISET2018_WPF/Fen1.xaml.cs
new file mode 100644
index 0000000..b96dcdf
--- /dev/null
+++ b/ISET2018_WPF/Fen1.xaml.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace ISET2018_WPF
+{
+ ///
+ /// Logique d'interaction pour Fen1.xaml
+ ///
+ public partial class Fen1 : Window
+ {
+ public Fen1()
+ {
+ InitializeComponent();
+ DataContext = this;
+ }
+ }
+}
diff --git a/ISET2018_WPF/Fen2.xaml b/ISET2018_WPF/Fen2.xaml
new file mode 100644
index 0000000..b074378
--- /dev/null
+++ b/ISET2018_WPF/Fen2.xaml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ISET2018_WPF/Fen2.xaml.cs b/ISET2018_WPF/Fen2.xaml.cs
new file mode 100644
index 0000000..f4acc1d
--- /dev/null
+++ b/ISET2018_WPF/Fen2.xaml.cs
@@ -0,0 +1,47 @@
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace ISET2018_WPF
+{
+ ///
+ /// Logique d'interaction pour Fen2.xaml
+ ///
+ public partial class Fen2 : Window
+ {
+ public Fen2()
+ {
+ InitializeComponent();
+ }
+ }
+ public class Degre2Radian : IValueConverter
+ {
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return (double)value * Math.PI / 180;
+ return false;
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ double angle = 0;
+ if(double.TryParse(value.ToString(), out angle))
+ {
+ if (angle < 0) angle = 0;
+ else if (angle > 2 * Math.PI) angle = 2 * Math.PI;
+ }
+ return angle*180/Math.PI;
+ }
+ }
+}
diff --git a/ISET2018_WPF/Fen3.xaml b/ISET2018_WPF/Fen3.xaml
new file mode 100644
index 0000000..5273f63
--- /dev/null
+++ b/ISET2018_WPF/Fen3.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/ISET2018_WPF/Fen3.xaml.cs b/ISET2018_WPF/Fen3.xaml.cs
new file mode 100644
index 0000000..d2579d1
--- /dev/null
+++ b/ISET2018_WPF/Fen3.xaml.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace ISET2018_WPF
+{
+ ///
+ /// Logique d'interaction pour Fen3.xaml
+ ///
+ public partial class Fen3 : Window
+ {
+ public Fen3()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/ISET2018_WPF/ISET2018_WPF.csproj b/ISET2018_WPF/ISET2018_WPF.csproj
index 42ef613..bc62e1b 100644
--- a/ISET2018_WPF/ISET2018_WPF.csproj
+++ b/ISET2018_WPF/ISET2018_WPF.csproj
@@ -55,6 +55,18 @@
MSBuild:Compile
Designer
+
+ Designer
+ MSBuild:Compile
+
+
+ Designer
+ MSBuild:Compile
+
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer
@@ -63,6 +75,15 @@
App.xaml
Code
+
+ Fen1.xaml
+
+
+ Fen2.xaml
+
+
+ Fen3.xaml
+
MainWindow.xaml
Code
@@ -95,7 +116,14 @@
-
+
+ PreserveNewest
+
+
+
+
+ PreserveNewest
+
\ No newline at end of file
diff --git a/ISET2018_WPF/MainWindow.xaml b/ISET2018_WPF/MainWindow.xaml
index cf9e19e..769d515 100644
--- a/ISET2018_WPF/MainWindow.xaml
+++ b/ISET2018_WPF/MainWindow.xaml
@@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ISET2018_WPF"
mc:Ignorable="d"
- Title="MainWindow" Height="350" Width="525">
+ Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
@@ -25,8 +25,37 @@
-
-
+
+
+
+
+
+
+
+
+
+
+ Mademoiselle
+ Madame
+ Mondamoiseau
+ Monsieur
+ Indéfini
+
+
+
+
+
+
+
diff --git a/ISET2018_WPF/MainWindow.xaml.cs b/ISET2018_WPF/MainWindow.xaml.cs
index 6e6e537..4910973 100644
--- a/ISET2018_WPF/MainWindow.xaml.cs
+++ b/ISET2018_WPF/MainWindow.xaml.cs
@@ -33,5 +33,45 @@ namespace ISET2018_WPF
btnClic.BeginAnimation(Button.OpacityProperty, da);
MessageBox.Show("!!HELLO WORLD!!");
}
+
+ private void Window_Loaded(object sender, RoutedEventArgs e)
+ {
+ DoubleAnimation da = new DoubleAnimation(0, -360, new Duration(TimeSpan.FromSeconds(3)));
+ da.RepeatBehavior = RepeatBehavior.Forever;
+ ImgYeti.RenderTransform.BeginAnimation(RotateTransform.AngleProperty, da);
+ }
+
+ private void btnSsBouton_Click(object sender, RoutedEventArgs e)
+ {
+ MessageBox.Show("Click sur " + ((Button)sender).Name);
+ }
+
+ private void lbQualite_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ ListBoxItem lb = (ListBoxItem)((ListBox)sender).SelectedItem;
+ MessageBox.Show(lb.Content.ToString());
+ }
+
+ private void btnFen_Click(object sender, RoutedEventArgs e)
+ {
+ Button btn = (Button)sender;
+ Window w = new Window();
+ w.Name = "fake";
+ w.Close();
+ switch(btn.Name)
+ {
+ case "btnFen1":
+ w = new Fen1();
+ break;
+ case "btnFen2":
+ w = new Fen2();
+ break;
+ case "btnFen3":
+ w = new Fen3();
+ break;
+ }
+ w.ShowDialog();
+
+ }
}
}
diff --git a/ISET2018_WPF/Properties/Resources.Designer.cs b/ISET2018_WPF/Properties/Resources.Designer.cs
index ed2937e..734e1c5 100644
--- a/ISET2018_WPF/Properties/Resources.Designer.cs
+++ b/ISET2018_WPF/Properties/Resources.Designer.cs
@@ -69,5 +69,15 @@ namespace ISET2018_WPF.Properties {
return ((System.Drawing.Bitmap)(obj));
}
}
+
+ ///
+ /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap IMG_20180804_132307_561 {
+ get {
+ object obj = ResourceManager.GetObject("IMG_20180804_132307_561", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
}
}
diff --git a/ISET2018_WPF/Properties/Resources.resx b/ISET2018_WPF/Properties/Resources.resx
index a012174..158c401 100644
--- a/ISET2018_WPF/Properties/Resources.resx
+++ b/ISET2018_WPF/Properties/Resources.resx
@@ -121,4 +121,7 @@
..\Resources\IMG_20180804_110221_146.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\IMG_20180804_132307_561.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/ISET2018_WPF/Resources/IMG_20180804_132307_561.jpg b/ISET2018_WPF/Resources/IMG_20180804_132307_561.jpg
new file mode 100644
index 0000000..4d2e2e4
Binary files /dev/null and b/ISET2018_WPF/Resources/IMG_20180804_132307_561.jpg differ