/
FileSaverPage.xaml
36 lines (26 loc) · 1.45 KB
/
FileSaverPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="utf-8" ?>
<pages:BasePage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pages="clr-namespace:CommunityToolkit.Maui.Sample.Pages"
x:Class="CommunityToolkit.Maui.Sample.Pages.Essentials.FileSaverPage"
xmlns:vm="clr-namespace:CommunityToolkit.Maui.Sample.ViewModels.Essentials"
x:TypeArguments="vm:FileSaverViewModel"
x:DataType="vm:FileSaverViewModel"
Title="FileSaver">
<VerticalStackLayout Spacing="12">
<Label Text="FileSaver allows selecting target folder and saving files to the file system"
LineBreakMode = "WordWrap"
HorizontalOptions="Center"
HorizontalTextAlignment="Center"/>
<Button Command="{Binding SaveFileCommand}"
Text="Save using FileSaver from DI Container"
HorizontalOptions="Center"/>
<Button Command="{Binding SaveFileStaticCommand}"
Text="Save using static FileSaver"
HorizontalOptions="Center"/>
<Button Command="{Binding SaveFileInstanceCommand}"
Text="Save using new instance of FileSaver"
HorizontalOptions="Center"/>
<ProgressBar Progress="{Binding Progress}" />
</VerticalStackLayout>
</pages:BasePage>