OUT-580: Show "Leave device group" button only when grouped sync
authorThomas
Thu, 18 Jul 2019 16:00:32 +0200
branchsync
changeset 26853f254ed0e797
parent 2684 eb3b0020681f
child 2686 f2e370d69120
OUT-580: Show "Leave device group" button only when grouped
UI/FormControlOptions.xaml
     1.1 --- a/UI/FormControlOptions.xaml	Thu Jul 18 15:30:59 2019 +0200
     1.2 +++ b/UI/FormControlOptions.xaml	Thu Jul 18 16:00:32 2019 +0200
     1.3 @@ -479,12 +479,11 @@
     1.4                              </ComboBox>
     1.5                          </StackPanel>
     1.6                          <Button Grid.Row="7"
     1.7 -                                Margin="2"
     1.8 -                                Padding="10,5"
     1.9 +                                Style="{StaticResource StyleWrongButton}"
    1.10                                  HorizontalAlignment="Left"
    1.11                                  Content="{x:Static p:Resources.Options_LeaveDeviceGroupText}"
    1.12                                  Click="ButtonLeaveDeviceGroup_Click"
    1.13 -                                IsEnabled="{Binding IsGrouped}" />
    1.14 +                                Visibility="{Binding IsGrouped, Converter={StaticResource BoolToVisibility}}" />
    1.15                      </Grid>
    1.16  
    1.17                  </Grid>