root / GES_PAC / View / ExportDataView.xaml @ 957bebf1
Historique | Voir | Annoter | Télécharger (2,612 ko)
1 | 957bebf1 | lbihannic | <?xml version="1.0" encoding="utf-8" ?>
|
---|---|---|---|
2 | <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
||
3 | xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
||
4 | xmlns:vm="clr-namespace:GES_PAC.ViewModel" |
||
5 | xmlns:tools="clr-namespace:GES_PAC.View.Tools" |
||
6 | x:Class="GES_PAC.View.ExportDataView" |
||
7 | x:DataType="vm:ExportDataViewModel"> |
||
8 | |||
9 | <Grid>
|
||
10 | <StackLayout BackgroundColor="White" Spacing="50"> |
||
11 | |||
12 | <tools:ConnectionIndicatorView /> |
||
13 | <ScrollView>
|
||
14 | <StackLayout Spacing="100"> |
||
15 | |||
16 | <Label Text="Exporter les données" |
||
17 | FontSize="22" |
||
18 | FontAttributes="Bold" |
||
19 | HorizontalOptions="Center"/> |
||
20 | |||
21 | <Label Text="{Binding DataFoundText}" |
||
22 | FontSize="18" |
||
23 | HorizontalOptions="Center"/> |
||
24 | |||
25 | </StackLayout>
|
||
26 | </ScrollView>
|
||
27 | <StackLayout HorizontalOptions="Center" VerticalOptions="EndAndExpand" Spacing="75" Margin="0, 0, 0, 50"> |
||
28 | |||
29 | <Button
|
||
30 | Text="Exporter en JSON" |
||
31 | Command="{Binding ExportJSONCommand}" |
||
32 | Style="{StaticResource btnNormal}" |
||
33 | VerticalOptions="End" |
||
34 | HorizontalOptions="Center" |
||
35 | IsVisible="{Binding HasData}"/> |
||
36 | |||
37 | <Button
|
||
38 | Text="Exporter en CSV" |
||
39 | Command="{Binding ExportCSVCommand}" |
||
40 | Style="{StaticResource btnNormal}" |
||
41 | VerticalOptions="End" |
||
42 | HorizontalOptions="Center" |
||
43 | IsVisible="{Binding HasData}"/> |
||
44 | |||
45 | </StackLayout>
|
||
46 | |||
47 | </StackLayout>
|
||
48 | <Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
||
49 | <Border StrokeThickness="0" |
||
50 | Background="Black" |
||
51 | Opacity="0.5" |
||
52 | Padding="20" |
||
53 | WidthRequest="160" |
||
54 | HeightRequest="160" |
||
55 | HorizontalOptions="Center" |
||
56 | VerticalOptions="Center" |
||
57 | StrokeShape="RoundRectangle 20"> |
||
58 | |||
59 | <VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
||
60 | <ActivityIndicator IsRunning="True" Color="White" /> |
||
61 | <Label Text="Chargement..." |
||
62 | FontSize="14" |
||
63 | TextColor="white" |
||
64 | HorizontalOptions="Center"/> |
||
65 | </VerticalStackLayout>
|
||
66 | </Border>
|
||
67 | </Grid>
|
||
68 | |||
69 | </Grid>
|
||
70 | </ContentPage> |