-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
FilePickerPage.xaml
31 lines (26 loc) · 1.52 KB
/
FilePickerPage.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
<views:BasePage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:Samples.View"
xmlns:viewmodels="clr-namespace:Samples.ViewModel"
x:Class="Samples.View.FilePickerPage"
Title="File Picker">
<views:BasePage.BindingContext>
<viewmodels:FilePickerViewModel />
</views:BasePage.BindingContext>
<Grid RowDefinitions="Auto,*">
<Label Text="Pick files from storage." FontAttributes="Bold" Margin="12" />
<ScrollView Grid.Row="1">
<StackLayout Padding="12,0,12,12" Spacing="6">
<Button Text="Pick file" Command="{Binding PickFileCommand}" />
<Button Text="Pick image" Command="{Binding PickImageCommand}" />
<Button Text="Pick pdf" Command="{Binding PickPdfCommand}" />
<Button Text="Pick custom type" Command="{Binding PickCustomTypeCommand}" />
<Button Text="Pick image and send email" Command="{Binding PickAndSendCommand}" />
<Button Text="Pick multiple files" Command="{Binding PickMultipleFilesCommand}" />
<Label Text="{Binding Text}" HorizontalOptions="FillAndExpand" />
<Image Source="{Binding Image}" IsVisible="{Binding IsImageVisible}"
HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" />
</StackLayout>
</ScrollView>
</Grid>
</views:BasePage>