-
Notifications
You must be signed in to change notification settings - Fork 523
/
Copy pathCreateMobileGeodatabase.xaml
77 lines (77 loc) · 3.81 KB
/
CreateMobileGeodatabase.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<ContentPage x:Class="ArcGIS.Samples.CreateMobileGeodatabase.CreateMobileGeodatabase"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui">
<Grid Style="{DynamicResource EsriSampleContainer}">
<esriUI:MapView x:Name="MyMapView" Style="{DynamicResource EsriSampleGeoView}" />
<Border Style="{DynamicResource EsriSampleControlPanel}">
<StackLayout Spacing="5">
<Label x:Name="FeaturesLabel"
Grid.Row="0"
Margin="5,0"
Text="Number of features added: " />
<Button Clicked="ViewTable" Text="View table" />
<Button x:Name="CreateGdbButton"
Clicked="CreateGdbButton_Click"
IsEnabled="False"
Text="Create GDB" />
<Button x:Name="CloseGdbButton"
Clicked="CloseGeodatabaseClick"
Text="Close and share" />
</StackLayout>
</Border>
<Border x:Name="TableFrame"
Grid.Row="{OnIdiom Default=0,
Desktop=1}"
Grid.RowSpan="2"
Grid.ColumnSpan="2"
Padding="5"
BackgroundColor="{AppThemeBinding Light=#dfdfdf,
Dark=#303030}"
HeightRequest="{OnIdiom Default=-1,
Desktop=300}"
HorizontalOptions="Center"
IsVisible="False"
WidthRequest="{OnIdiom Default=-1,
Desktop=450}">
<Grid RowDefinitions="*,auto">
<ListView x:Name="FeatureListView" Grid.Row="0">
<ListView.Header>
<Grid ColumnDefinitions="*,*">
<Label Grid.Column="0"
FontAttributes="Bold"
HorizontalOptions="Center"
HorizontalTextAlignment="Center"
Text="OID" />
<Label Grid.Column="1"
FontAttributes="Bold"
HorizontalOptions="Center"
HorizontalTextAlignment="Center"
Text="Collection Timestamp" />
</Grid>
</ListView.Header>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid ColumnDefinitions="*,*">
<Label Grid.Column="0"
HorizontalOptions="Fill"
HorizontalTextAlignment="Center"
Text="{Binding Path=Attributes[oid]}" />
<Label Grid.Column="1"
HorizontalOptions="Fill"
HorizontalTextAlignment="Center"
Text="{Binding Path=Attributes[collection_timestamp]}" />
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Button Grid.Row="1"
Margin="5"
Clicked="CloseTable"
Text="Close" />
</Grid>
</Border>
</Grid>
</ContentPage>