-
Notifications
You must be signed in to change notification settings - Fork 521
/
ConfigureSubnetworkTrace.xaml
110 lines (110 loc) · 5.64 KB
/
ConfigureSubnetworkTrace.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<ContentPage x:Class="ArcGIS.Samples.ConfigureSubnetworkTrace.ConfigureSubnetworkTrace"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Grid VerticalOptions="FillAndExpand">
<ScrollView>
<StackLayout>
<Border Padding="10"
StrokeThickness="0">
<Grid ColumnSpacing="5" RowSpacing="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Label Grid.Row="0"
Grid.Column="0"
FontSize="Medium"
Text="Trace options" />
<Label Grid.Row="1"
Grid.Column="0"
Text="Include barriers"
VerticalTextAlignment="Center" />
<Switch x:Name="IncludeBarriers"
Grid.Row="1"
Grid.Column="1"
IsToggled="True"
Toggled="IncludeBarriersChanged" />
<Label Grid.Row="2"
Grid.Column="0"
Text="Include containers"
VerticalTextAlignment="Center" />
<Switch x:Name="IncludeContainers"
Grid.Row="2"
Grid.Column="1"
IsToggled="True"
Toggled="IncludeContainersChanged" />
</Grid>
</Border>
<Border Padding="10"
StrokeThickness="0"
BackgroundColor="{AppThemeBinding Light=#dedede,
Dark=Black}">
<StackLayout Spacing="5">
<Label FontSize="Medium" Text="Define new condition" />
<Label FontAttributes="Italic" Text="(Example barrier condition for this data: 'Transformer Load' Equal '15')" />
<Grid ColumnSpacing="10">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Picker x:Name="Attributes"
Grid.Row="0"
HorizontalOptions="Start"
ItemDisplayBinding="{Binding Name}"
MinimumWidthRequest="100"
SelectedIndexChanged="OnAttributeChanged" />
<Picker x:Name="Operators"
Grid.Row="1"
HorizontalOptions="Start"
MinimumWidthRequest="100" />
<Picker x:Name="ValueSelection"
Grid.Row="2"
HorizontalOptions="Start"
ItemDisplayBinding="{Binding Name}"
MinimumWidthRequest="100" />
<Entry x:Name="ValueEntry"
Grid.Row="2"
Margin="3"
HorizontalOptions="Start"
HorizontalTextAlignment="Center"
IsVisible="False"
BackgroundColor="{AppThemeBinding Light=White,
Dark=#3c3c3c}"/>
</Grid>
<Button Clicked="OnAddCondition" Text="Add condition" />
</StackLayout>
</Border>
<ScrollView Padding="10"
HeightRequest="150">
<StackLayout Spacing="10">
<Label FontSize="Medium" Text="Barrier conditions" />
<Label x:Name="ConditionBarrierExpression" Text="" />
</StackLayout>
</ScrollView>
<Border Padding="10"
StrokeThickness="0"
BackgroundColor="{AppThemeBinding Light=#dedede,
Dark=Black}">
<Grid RowSpacing="5">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Button Grid.Row="0"
Clicked="OnTrace"
Text="Trace" />
<Button Grid.Row="1"
Clicked="OnReset"
Text="Reset" />
</Grid>
</Border>
</StackLayout>
</ScrollView>
</Grid>
</ContentPage>