1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <toolkit : Popup xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3+ xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4+ x : Class =" ReadDoc.DevicesPage"
5+ xmlns : toolkit =" http://schemas.microsoft.com/dotnet/2022/maui/toolkit" CanBeDismissedByTappingOutsideOfPopup =" False" >
6+ <VerticalStackLayout WidthRequest =" 300" >
7+ <Label Text =" Select a device and click Open" FontAttributes =" Bold" FontSize =" 14" Margin =" 0,10,0,0" />
8+ <Border Stroke =" Gray" StrokeShape =" RoundRectangle 5,5,5,5" Padding =" 8" Margin =" 3" >
9+ <Grid x : Name =" Devices" >
10+ <Grid .RowDefinitions>
11+ <RowDefinition Height =" 40" />
12+ <RowDefinition Height =" 100" />
13+ <RowDefinition Height =" 50" />
14+ </Grid .RowDefinitions>
15+ <Grid .ColumnDefinitions>
16+ <ColumnDefinition Width =" *" />
17+ <ColumnDefinition Width =" *" />
18+ </Grid .ColumnDefinitions>
19+ <Label Grid.Row=" 0" Grid.Column=" 0" Grid.ColumnSpan=" 2" Text =" Available Devices" VerticalOptions =" Center" HorizontalTextAlignment =" Center" BackgroundColor =" #BC9C6A" TextColor =" White" />
20+ <CollectionView Grid.Row=" 1" Grid.Column=" 0" Grid.ColumnSpan=" 2" x : Name =" DevicesListBox" SelectionMode =" Single" >
21+ <CollectionView .ItemTemplate>
22+ <DataTemplate x : DataType =" x:String" >
23+ <Grid >
24+ <Label Text =" {Binding .}" VerticalOptions =" Center" TextColor =" Black" Padding =" 10,0,0,0" />
25+ </Grid >
26+ </DataTemplate >
27+ </CollectionView .ItemTemplate>
28+ </CollectionView >
29+ <Button Grid.Row=" 2" Grid.Column=" 0" x : Name =" cmdOpen" Text =" Open" HeightRequest =" 40" Clicked =" cmdOpen_Clicked" />
30+ <Button Grid.Row=" 2" Grid.Column=" 1" x : Name =" cmdCancel" Text =" Cancel" HeightRequest =" 40" Clicked =" cmdCancel_Clicked" />
31+ </Grid >
32+ </Border >
33+ </VerticalStackLayout >
34+ </toolkit : Popup >
0 commit comments