Skip to content

Commit e44c8c4

Browse files
committed
change btn styles
1 parent 5157084 commit e44c8c4

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

fast cf ip scanner/ViewModels/ScanPageViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public partial class ScanPageViewModel : BaseViewModel
1010

1111

1212
[ObservableProperty]
13-
bool isBusy;
13+
bool isBusy = false;
1414

1515

1616

fast cf ip scanner/Views/ScanPage.xaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,32 @@
1717
<VerticalStackLayout>
1818
<Grid
1919
ColumnSpacing="10"
20-
IsEnabled="{Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}">
20+
Padding="10"
21+
Margin="10">
2122

2223
<Grid.ColumnDefinitions>
2324
<ColumnDefinition Width="*" />
2425
<ColumnDefinition Width="*" />
2526
</Grid.ColumnDefinitions>
26-
27+
<Grid.RowDefinitions>
28+
<RowDefinition Height="*"/>
29+
<RowDefinition Height="*"/>
30+
</Grid.RowDefinitions>
2731
<Button
2832
Text="Start"
2933
Style="{StaticResource MyBtn}"
3034
Grid.Column="0"
3135
Command="{Binding GetValidIPsCommand}"
36+
IsEnabled="{Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}"
37+
HeightRequest="50"
3238
/>
3339

3440
<Button
3541
Text="Options"
3642
Style="{StaticResource MyBtn}"
3743
Grid.Column="1"
3844
Command="{Binding ShowOptionsForSearchIpCommand}"
45+
IsEnabled="{Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}"
3946
/>
4047

4148
</Grid>
@@ -48,7 +55,7 @@
4855
HorizontalOptions="Center"
4956
SelectionChangedCommand="{Binding ShowSelectedIPOptionCommand}"
5057
SelectionChangedCommandParameter="{Binding Source={x:Reference validIPCollectionView}, Path=SelectedItem}"
51-
SelectionMode="None"
58+
SelectionMode="Single"
5259
IsVisible="{Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}">
5360
<CollectionView.ItemTemplate>
5461
<DataTemplate x:DataType="model:IPModel">

0 commit comments

Comments
 (0)