Simplify grid col/row defs
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabView.xaml
<converters:TimeSpanVisibilityConverter x:Key="TimeSpanVisibilityConverter" />
</UserControl.Resources>
<DockPanel LastChildFill="True" Margin="10">
- <Grid DockPanel.Dock="Bottom">
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
+ <Grid DockPanel.Dock="Bottom" RowDefinitions="*" >
<Grid.ColumnDefinitions>
+ <ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="150" />
<ColumnDefinition Width="*" MinWidth="460" />
+ </ColumnDefinitions>
</Grid.ColumnDefinitions>
<controls:GroupBox Grid.Row="0" Grid.Column="2" Title="Status" Padding="5" Margin="5 5 0 0">
<ScrollViewer>
</ScrollViewer>
</controls:GroupBox>
<controls:GroupBox Grid.Row="0" Grid.Column="0" Title="CoinJoin" Padding="5" Margin="0 5 5 0">
- <Grid Grid.Row="0" Grid.Column="0" Classes="content">
- <Grid.RowDefinitions>
- <RowDefinition Height="150" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
+ <Grid Grid.Row="0" Grid.Column="0" Classes="content" RowDefinitions="150" ColumnDefinitions="*,Auto">
<StackPanel Grid.Column="0" Spacing="10">
<controls:TogglePasswordBox Text="{Binding Password}" Margin="0 20 0 0" MinWidth="200">
<i:Interaction.Behaviors>
</controls:GroupBox>
<controls:GroupBox Grid.Column="1" Title="Target" Padding="5" Margin="5 0">
<Button Command="{Binding TargetButtonCommand}">
- <Grid Background="Transparent" DataContext="{Binding CoinJoinUntilAnonymitySet, Converter={StaticResource PrivacyLevelValueConverter}}">
- <Grid.RowDefinitions>
- <RowDefinition Height="2*"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- </Grid.RowDefinitions>
+ <Grid RowDefinitions="2*,*" Background="Transparent" DataContext="{Binding CoinJoinUntilAnonymitySet, Converter={StaticResource PrivacyLevelValueConverter}}">
<DrawingPresenter Grid.Row="0" Drawing="{Binding Icon}" VerticalAlignment="Top" Height="100" Width="75" />
<TextBlock Margin="0 5 0 0" Grid.Row="1" Text="{Binding ToolTip}" TextAlignment="Center" TextWrapping="Wrap" />
</Grid>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
</ContextMenu>
</Grid.ContextMenu>
<Grid.ColumnDefinitions>
+ <ColumnDefinitions>
<ColumnDefinition Width="24" />
<ColumnDefinition Width="30" />
<ColumnDefinition SharedSizeGroup="A" />
<ColumnDefinition Width="150" />
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
+ </ColumnDefinitions>
</Grid.ColumnDefinitions>
<Border>
<CheckBox HorizontalAlignment="Center" IsChecked="{Binding IsSelected}" Background="{DynamicResource ThemeBackgroundBrush}" />

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/PinPadView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/PinPadView.xaml
<StackPanel DockPanel.Dock="Bottom">
<Button Margin="4 20" Content="Send PIN to Device" Command="{Binding SendPinCommand}" />
</StackPanel>
- <Grid>
+ <Grid RowDefinitions="*,*,*" ColumnDefinitions="*,*,*">
<Grid.Styles>
<Style Selector="Button">
<Setter Property="Margin" Value="4" />
</Style>
</Grid.Styles>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
<Button Grid.Row="0" Grid.Column="0" Content="." Command="{Binding KeyPadCommand}" CommandParameter="7" />
<Button Grid.Row="0" Grid.Column="1" Content="." Command="{Binding KeyPadCommand}" CommandParameter="8" />
<Button Grid.Row="0" Grid.Column="2" Content="." Command="{Binding KeyPadCommand}" CommandParameter="9" />

MODIFY
WalletWasabi.Gui/Dialogs/CannotCloseDialogView.xaml
WalletWasabi.Gui/Dialogs/CannotCloseDialogView.xaml
<Button Width="100" Content="Ok" Command="{Binding OKCommand}" IsVisible="{Binding !IsBusy}" />
<Button Width="100" Content="Cancel" Command="{Binding CancelCommand}" IsVisible="{Binding IsBusy}" />
</StackPanel>
- <Grid Classes="content">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
+ <Grid Classes="content" RowDefinitions="*,*">
<Panel Grid.Row="0" Margin="10">
<TextBlock FontSize="15" Text="You have coins registered for CoinJoin. Wasabi is dequeing them. If a coin is currently being coinjoined Wasabi will wait for the mix to finish, so you do not disrupt the mixing round. This could take a few minutes, please be patient." TextWrapping="Wrap" />
</Panel>

MODIFY
WalletWasabi.Gui/Dialogs/TextInputDialogView.xaml
WalletWasabi.Gui/Dialogs/TextInputDialogView.xaml
<Button Width="100" Content="Ok" Command="{Binding OKCommand}" IsVisible="{Binding !IsBusy}" />
<Button Width="100" Content="Cancel" Command="{Binding CancelCommand}" IsVisible="{Binding IsBusy}" />
</StackPanel>
- <Grid Classes="content">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
+ <Grid Classes="content" RowDefinitions="*,*">
<Panel Grid.Row="0" Margin="10">
<TextBlock FontSize="15" Text="{Binding Instructions}" TextWrapping="Wrap" />
</Panel>

Simplify grid col/row defs