sicpaconnexions / SICPA_Connexions / View / AnimalView.xaml.cs @ 35f65dee
Historique | Voir | Annoter | Télécharger (633 octets)
1 | 87e7d061 | ajournaux | using SICPA_Connexions.ViewModel; |
---|---|---|---|
2 | |||
3 | namespace SICPA_Connexions.View |
||
4 | { |
||
5 | [XamlCompilation(XamlCompilationOptions.Skip)] |
||
6 | public partial class AnimalView : ContentPage |
||
7 | { |
||
8 | public AnimalView() |
||
9 | { |
||
10 | InitializeComponent(); |
||
11 | this.BindingContext = new AnimalViewModel(); |
||
12 | } |
||
13 | 03682d21 | ajournaux | |
14 | protected override void OnAppearing() |
||
15 | { |
||
16 | base.OnAppearing(); |
||
17 | AnimalViewModel viewModel = this.BindingContext as AnimalViewModel; |
||
18 | if (viewModel != null) |
||
19 | { |
||
20 | viewModel.ActualisePage(); |
||
21 | } |
||
22 | } |
||
23 | |||
24 | 87e7d061 | ajournaux | } |
25 | } |