-
Notifications
You must be signed in to change notification settings - Fork 520
/
CreateLoadReport.xaml
61 lines (61 loc) · 3.08 KB
/
CreateLoadReport.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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="ArcGIS.Samples.CreateLoadReport.CreateLoadReport"
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"
xmlns:toolkit="using:Esri.ArcGISRuntime.Toolkit.Maui">
<Border Style="{DynamicResource EsriSampleControlPanel}">
<VerticalStackLayout Spacing="5">
<Label Text="Add phases from the dropdown list, then run report." />
<HorizontalStackLayout Spacing="5">
<Picker x:Name="PhasesList"
ItemDisplayBinding="{Binding Name}"
WidthRequest="150" />
<Button Clicked="OnAddPhase" Text="Add" />
</HorizontalStackLayout>
<Label x:Name="Phases"
BackgroundColor="{AppThemeBinding Dark=Gray}"
HorizontalTextAlignment="Center" />
<HorizontalStackLayout Spacing="5">
<Button Clicked="RunReportButton_Clicked" Text="Run Report" />
<Button Clicked="OnReset" Text="Reset" />
</HorizontalStackLayout>
<CollectionView x:Name="ReportView"
Margin="0,5,0,0"
BackgroundColor="{AppThemeBinding Dark=Gray}"
HeightRequest="150"
VerticalScrollBarVisibility="Default">
<CollectionView.Header>
<Grid ColumnDefinitions="Auto, Auto, Auto"
ColumnSpacing="25"
HorizontalOptions="Center">
<Label Grid.Column="0"
FontAttributes="Bold"
Text="Phase" />
<Label Grid.Column="1"
FontAttributes="Bold"
Text="Total Customers" />
<Label Grid.Column="2"
FontAttributes="Bold"
Text="Total Load" />
</Grid>
</CollectionView.Header>
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid Margin="5"
ColumnDefinitions="100, 50, 175"
HorizontalOptions="Center">
<Label Text="{Binding Phase}" />
<Label Grid.Column="1"
HorizontalOptions="Center"
Text="{Binding TotalCustomers}" />
<Label Grid.Column="2"
HorizontalOptions="Center"
Text="{Binding TotalLoad}" />
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</VerticalStackLayout>
</Border>
</ContentPage>