-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMultiPickerPopupPage.xaml
More file actions
43 lines (35 loc) · 1.79 KB
/
Copy pathMultiPickerPopupPage.xaml
File metadata and controls
43 lines (35 loc) · 1.79 KB
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
37
38
39
40
41
42
43
<?xml version="1.0" encoding="utf-8"?>
<base:ContentPageBase
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:base="clr-namespace:CraftUI.Demo.Presentation.Common"
xmlns:page="clr-namespace:CraftUI.Demo.Presentation.Pages.Controls.Pickers"
xmlns:controls="clr-namespace:CraftUI.Library.Maui.Controls;assembly=CraftUI.Library.Maui"
Title="Picker Demo"
x:DataType="page:PickerPageViewModel"
x:Class="CraftUI.Demo.Presentation.Pages.Controls.Pickers.MultiPickerPopupPage">
<Grid RowDefinitions="*,Auto" >
<ScrollView>
<VerticalStackLayout
Margin="16, 32"
Spacing="25">
<controls:CfMultiPickerPopup
Label="Country"
SelectedItems="{Binding SelectedCountries, Mode=TwoWay}"
SelectionChangedCommand="{Binding CountriesChangedCommand}"
ItemsSource="{Binding CountriesLoader.Result}"
ItemDisplay="{x:Static page:PickerPageViewModel.CountryDisplayProperty}"
IsLoading="{Binding CountriesLoader.ShowLoader}"
/>
</VerticalStackLayout>
</ScrollView>
<VerticalStackLayout Grid.Row="1" Style="{StaticResource BottomElementVerticalStackLayout}">
<Button Command="{Binding ResetCommand}"
Style="{StaticResource FilledPrimaryButton}"
Text="Reset" />
<Button Command="{Binding ShowSelectedItemsCommand}"
Style="{StaticResource FilledPrimaryButton}"
Text="Show Selected Items" />
</VerticalStackLayout>
</Grid>
</base:ContentPageBase>