sicpaconnexions / SICPA_Connexions / View / AnimalView.xaml.cs @ 35f65dee
Historique | Voir | Annoter | Télécharger (633 octets)
1 |
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 |
|
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 |
} |
25 |
} |