Skip to content

Commit 3f97180

Browse files
committed
change CollectionView of valid ip style
1 parent 2f38a34 commit 3f97180

File tree

1 file changed

+38
-53
lines changed

1 file changed

+38
-53
lines changed

fast cf ip scanner/Views/ScanPage.xaml

Lines changed: 38 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -8,82 +8,67 @@
88
xmlns:model="clr-namespace:fast_cf_ip_scanner.Model"
99
BackgroundColor="Black">
1010

11-
12-
1311
<ContentPage.Resources>
1412
<services:InverseBooleanConverter x:Key="InverseBooleanConverter" />
1513
</ContentPage.Resources>
1614

1715
<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">
2517

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}}"
2821
Grid.Column="0"
2922
Grid.Row="0"
3023
Grid.RowSpan="2"
3124
Command="{Binding GetValidIPsCommand}"
3225
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" />
5744
</Grid>
5845

59-
<CollectionView ItemsSource="{Binding ValidIPs}"
60-
x:Name="validIPCollectionView"
46+
<CollectionView ItemsSource="{Binding ValidIPs}"
47+
x:Name="validIPCollectionView"
6148
HorizontalOptions="Center"
62-
SelectionChangedCommand ="{Binding ShowSelectedIPOptionCommand}"
49+
SelectionChangedCommand="{Binding ShowSelectedIPOptionCommand}"
6350
SelectionChangedCommandParameter="{Binding Source={x:Reference validIPCollectionView}, Path=SelectedItem}"
6451
SelectionMode="Single"
65-
IsVisible="{Binding IsBusy,Converter={StaticResource InverseBooleanConverter}}">
52+
IsVisible="{Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}">
6653
<CollectionView.ItemTemplate>
6754
<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>
8266
</DataTemplate>
8367
</CollectionView.ItemTemplate>
8468
</CollectionView>
8569

8670
<ActivityIndicator IsRunning="{Binding IsBusy}" IsVisible="{Binding IsBusy}" />
8771
</VerticalStackLayout>
8872
</ScrollView>
73+
8974
</ContentPage>

0 commit comments

Comments
 (0)