File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public partial class ScanPageViewModel : BaseViewModel
10
10
11
11
12
12
[ ObservableProperty ]
13
- bool isBusy ;
13
+ bool isBusy = false ;
14
14
15
15
16
16
Original file line number Diff line number Diff line change 17
17
<VerticalStackLayout >
18
18
<Grid
19
19
ColumnSpacing =" 10"
20
- IsEnabled =" {Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}" >
20
+ Padding =" 10"
21
+ Margin =" 10" >
21
22
22
23
<Grid .ColumnDefinitions>
23
24
<ColumnDefinition Width =" *" />
24
25
<ColumnDefinition Width =" *" />
25
26
</Grid .ColumnDefinitions>
26
-
27
+ <Grid .RowDefinitions>
28
+ <RowDefinition Height =" *" />
29
+ <RowDefinition Height =" *" />
30
+ </Grid .RowDefinitions>
27
31
<Button
28
32
Text =" Start"
29
33
Style =" {StaticResource MyBtn}"
30
34
Grid.Column=" 0"
31
35
Command =" {Binding GetValidIPsCommand}"
36
+ IsEnabled =" {Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}"
37
+ HeightRequest =" 50"
32
38
/>
33
39
34
40
<Button
35
41
Text =" Options"
36
42
Style =" {StaticResource MyBtn}"
37
43
Grid.Column=" 1"
38
44
Command =" {Binding ShowOptionsForSearchIpCommand}"
45
+ IsEnabled =" {Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}"
39
46
/>
40
47
41
48
</Grid >
48
55
HorizontalOptions =" Center"
49
56
SelectionChangedCommand =" {Binding ShowSelectedIPOptionCommand}"
50
57
SelectionChangedCommandParameter =" {Binding Source={x:Reference validIPCollectionView}, Path=SelectedItem}"
51
- SelectionMode =" None "
58
+ SelectionMode =" Single "
52
59
IsVisible =" {Binding IsBusy, Converter={StaticResource InverseBooleanConverter}}" >
53
60
<CollectionView .ItemTemplate>
54
61
<DataTemplate x : DataType =" model:IPModel" >
You can’t perform that action at this time.
0 commit comments