|
15 | 15 | <ScrollView>
|
16 | 16 | <VerticalStackLayout Padding="10" Spacing="20">
|
17 | 17 |
|
18 |
| - <Grid RowDefinitions="1*,1*,100*" ColumnDefinitions=".2*,.1*,.3*" Margin="10"> |
| 18 | + <Grid RowDefinitions="1*,1*,100*" ColumnDefinitions=".33*,.33*,.33*" Margin="10"> |
19 | 19 | <Button Text="Start"
|
20 | 20 | IsEnabled="{Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}"
|
21 | 21 | Grid.Column="0"
|
|
24 | 24 | Command="{Binding GetValidIPsCommand}"
|
25 | 25 | HorizontalOptions="FillAndExpand"
|
26 | 26 | VerticalOptions="FillAndExpand" />
|
27 |
| - <Label Text="Max ping:" |
| 27 | + <!--<Button Text="Stop" |
| 28 | + IsEnabled="{Binding IsBusy}" |
| 29 | + IsVisible="{Binding IsBusy}" |
| 30 | + Grid.Column="0" |
| 31 | + Grid.Row="0" |
| 32 | + Grid.RowSpan="2" |
| 33 | + Command="{Binding GetValidIPsCommand}" |
| 34 | + HorizontalOptions="FillAndExpand" |
| 35 | + VerticalOptions="FillAndExpand" />--> |
| 36 | + <Label Text="Max ping: " |
28 | 37 | HorizontalOptions="End"
|
29 |
| - VerticalOptions="Center" |
30 | 38 | Grid.Row="0"
|
31 | 39 | Grid.Column="1"
|
32 | 40 | TextColor="White" />
|
33 | 41 | <Label Grid.Column="2"
|
34 | 42 | Grid.Row="0"
|
35 |
| - Margin="10,0" |
36 | 43 | Text="{Binding Source={x:Reference numericStepper}, Path=Value}"
|
37 | 44 | TextColor="White" />
|
38 | 45 | <Stepper Increment="100"
|
39 | 46 | Value="{Binding MaxPingOfIP}"
|
40 | 47 | Maximum="10000"
|
41 |
| - Grid.Column="2" |
| 48 | + Grid.Column="3" |
42 | 49 | Grid.Row="1"
|
43 | 50 | x:Name="numericStepper" />
|
44 | 51 | </Grid>
|
|
52 | 59 | IsVisible="{Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}">
|
53 | 60 | <CollectionView.ItemTemplate>
|
54 | 61 | <DataTemplate x:DataType="model:IPModel">
|
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> |
| 62 | + <Grid Padding="15"> |
| 63 | + <Grid.ColumnDefinitions> |
| 64 | + <ColumnDefinition Width="Auto" /> |
| 65 | + <ColumnDefinition Width="*" /> |
| 66 | + </Grid.ColumnDefinitions> |
| 67 | + <Grid.RowDefinitions> |
| 68 | + <RowDefinition Height="Auto" /> |
| 69 | + <RowDefinition Height="Auto" /> |
| 70 | + <RowDefinition Height="Auto" /> |
| 71 | + </Grid.RowDefinitions> |
| 72 | + |
| 73 | + <Label Grid.Row="0" Grid.Column="0" Text="ip :" TextColor="White" /> |
| 74 | + <Label Grid.Row="0" Grid.Column="1" Text="{Binding IP}" TextColor="White" /> |
| 75 | + |
| 76 | + <Label Grid.Row="1" Grid.Column="0" Text="ping :" TextColor="White" /> |
| 77 | + <Label Grid.Row="1" Grid.Column="1" Text="{Binding Ping}" TextColor="White" /> |
| 78 | + |
| 79 | + <Label Grid.Row="2" Grid.Column="0" Text="ports :" TextColor="White" /> |
| 80 | + <Label Grid.Row="2" Grid.Column="1" Text="{Binding Ports}" TextColor="White" /> |
| 81 | + </Grid> |
66 | 82 | </DataTemplate>
|
67 | 83 | </CollectionView.ItemTemplate>
|
| 84 | + |
68 | 85 | </CollectionView>
|
69 | 86 |
|
70 | 87 | <ActivityIndicator IsRunning="{Binding IsBusy}" IsVisible="{Binding IsBusy}" />
|
|
0 commit comments