8
8
xmlns : model =" clr-namespace:fast_cf_ip_scanner.Model"
9
9
BackgroundColor =" Black" >
10
10
11
-
12
-
13
11
<ContentPage .Resources>
14
12
<services : InverseBooleanConverter x : Key =" InverseBooleanConverter" />
15
13
</ContentPage .Resources>
16
14
17
15
<ScrollView >
18
- <VerticalStackLayout
19
- Padding =" 10" >
20
-
21
- <Grid
22
- RowDefinitions =" 1*,1*,100*"
23
- ColumnDefinitions =" .2*,.1*,.1*,.1*"
24
- Margin =" 10" >
16
+ <VerticalStackLayout Padding =" 10" Spacing =" 20" >
25
17
26
- <Button Text =" start"
27
- IsEnabled =" {Binding IsBusy,Converter={StaticResource InverseBooleanConverter}}"
18
+ <Grid RowDefinitions =" 1*,1*,100*" ColumnDefinitions =" .2*,.1*,.3*" Margin =" 10" >
19
+ <Button Text =" Start"
20
+ IsEnabled =" {Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}"
28
21
Grid.Column=" 0"
29
22
Grid.Row=" 0"
30
23
Grid.RowSpan=" 2"
31
24
Command =" {Binding GetValidIPsCommand}"
32
25
HorizontalOptions =" FillAndExpand"
33
- VerticalOptions =" FillAndExpand" >
34
- </Button >
35
- <Label
36
- Text =" Max ping :"
37
- HorizontalOptions =" End"
38
- Grid.Row=" 0"
39
- Grid.Column=" 1"
40
- TextColor =" White" />
41
-
42
- <Label
43
- Grid.Column=" 2"
44
- Grid.Row=" 0"
45
- Margin =" 10,0"
46
- Text =" {Binding Source={x:Reference numericStepper}, Path=Value}"
47
- TextColor =" White" />
48
-
49
- <Stepper
50
- Increment =" 100"
51
- Value =" {Binding MaxPingOfIP}"
52
- Maximum =" 10000"
53
- Grid.Column=" 2"
54
- Grid.Row=" 1"
55
- x : Name =" numericStepper"
56
- />
26
+ VerticalOptions =" FillAndExpand" />
27
+ <Label Text =" Max ping:"
28
+ HorizontalOptions =" End"
29
+ VerticalOptions =" Center"
30
+ Grid.Row=" 0"
31
+ Grid.Column=" 1"
32
+ TextColor =" White" />
33
+ <Label Grid.Column=" 2"
34
+ Grid.Row=" 0"
35
+ Margin =" 10,0"
36
+ Text =" {Binding Source={x:Reference numericStepper}, Path=Value}"
37
+ TextColor =" White" />
38
+ <Stepper Increment =" 100"
39
+ Value =" {Binding MaxPingOfIP}"
40
+ Maximum =" 10000"
41
+ Grid.Column=" 2"
42
+ Grid.Row=" 1"
43
+ x : Name =" numericStepper" />
57
44
</Grid >
58
45
59
- <CollectionView ItemsSource =" {Binding ValidIPs}"
60
- x : Name =" validIPCollectionView"
46
+ <CollectionView ItemsSource =" {Binding ValidIPs}"
47
+ x : Name =" validIPCollectionView"
61
48
HorizontalOptions =" Center"
62
- SelectionChangedCommand =" {Binding ShowSelectedIPOptionCommand}"
49
+ SelectionChangedCommand =" {Binding ShowSelectedIPOptionCommand}"
63
50
SelectionChangedCommandParameter =" {Binding Source={x:Reference validIPCollectionView}, Path=SelectedItem}"
64
51
SelectionMode =" Single"
65
- IsVisible =" {Binding IsBusy,Converter={StaticResource InverseBooleanConverter}}" >
52
+ IsVisible =" {Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}" >
66
53
<CollectionView .ItemTemplate>
67
54
<DataTemplate x : DataType =" model:IPModel" >
68
- <HorizontalStackLayout
69
- Padding =" 15" >
70
-
71
- <Label Text =" {Binding IP}"
72
- TextColor =" White" ></Label >
73
- <Label Text =" ping : "
74
- TextColor =" White" ></Label >
75
- <Label Text =" {Binding Ping}"
76
- TextColor =" White" ></Label >
77
- <Label Text =" ping : "
78
- TextColor =" White" ></Label >
79
- <Label Text =" {Binding Ports}"
80
- TextColor =" White" ></Label >
81
- </HorizontalStackLayout >
55
+ <StackLayout Padding =" 15"
56
+ Orientation =" Horizontal"
57
+ Spacing =" 10" >
58
+ <Label Text =" ip : " TextColor =" White" />
59
+ <Label Text =" {Binding IP}" TextColor =" White" />
60
+ <Label Text =" ping : " TextColor =" White" />
61
+ <Label Text =" {Binding Ping}" TextColor =" White" />
62
+ <Label Text =" ports : " TextColor =" White" />
63
+ <Label Text =" {Binding Ports}" TextColor =" White" />
64
+
65
+ </StackLayout >
82
66
</DataTemplate >
83
67
</CollectionView .ItemTemplate>
84
68
</CollectionView >
85
69
86
70
<ActivityIndicator IsRunning =" {Binding IsBusy}" IsVisible =" {Binding IsBusy}" />
87
71
</VerticalStackLayout >
88
72
</ScrollView >
73
+
89
74
</ContentPage >
0 commit comments