multiline when too long
MODIFY
WalletWasabi.Gui/Controls/BusyIndicator.xaml
WalletWasabi.Gui/Controls/BusyIndicator.xaml
<TextBlock Text="{TemplateBinding Text}" VerticalAlignment="Center" />
</StackPanel>
<Border Name="PART_Border" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{DynamicResource ThemeBorderLowBrush}">
- <ContentPresenter Name="PART_ContentPresenter" Background="{TemplateBinding Background}" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" />
+ <ContentPresenter
+ Name="PART_ContentPresenter"
+ Background="{TemplateBinding Background}"
+ ContentTemplate="{TemplateBinding ContentTemplate}"
+ Content="{TemplateBinding Content}"
+ Padding="{TemplateBinding Padding}"
+ VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
+ HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" />
</Border>
</Grid>
</ControlTemplate>

MODIFY
WalletWasabi.Gui/Controls/EditableTextBlock.xaml
WalletWasabi.Gui/Controls/EditableTextBlock.xaml
<ControlTemplate>
<Grid>
<TextBlock Text="{TemplateBinding Text}" IsVisible="{TemplateBinding ReadMode}" VerticalAlignment="Center" Name="PART_TextBlock" Margin="1 0 0 0" />
- <TextBox Text="{TemplateBinding EditText, Mode=TwoWay}" IsVisible="{TemplateBinding InEditMode}" Name="PART_TextBox" Background="{DynamicResource ThemeControlBackgroundBrush}" Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center" BorderThickness="{TemplateBinding BorderThickness}" Padding="1 0 4 0" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden" />
+ <TextBox
+ Text="{TemplateBinding EditText, Mode=TwoWay}"
+ IsVisible="{TemplateBinding InEditMode}"
+ Name="PART_TextBox"
+ Background="{DynamicResource ThemeControlBackgroundBrush}"
+ Foreground="{TemplateBinding Foreground}"
+ VerticalAlignment="Center"
+ BorderThickness="{TemplateBinding BorderThickness}"
+ Padding="1 0 4 0"
+ ScrollViewer.VerticalScrollBarVisibility="Hidden"
+ ScrollViewer.HorizontalScrollBarVisibility="Hidden" />
</Grid>
</ControlTemplate>
</Setter>

MODIFY
WalletWasabi.Gui/Controls/GroupBox.xaml
WalletWasabi.Gui/Controls/GroupBox.xaml
<Setter Property="Template">
<ControlTemplate>
<DockPanel LastChildFill="True">
- <ContentPresenter Name="PART_TitlePresenter" DockPanel.Dock="Top" Background="{TemplateBinding Background}" Content="{TemplateBinding Title}" HorizontalAlignment="Left" ZIndex="1" Padding="10 0 10 0" />
+ <ContentPresenter
+ Name="PART_TitlePresenter"
+ DockPanel.Dock="Top"
+ Background="{TemplateBinding Background}"
+ Content="{TemplateBinding Title}"
+ HorizontalAlignment="Left"
+ ZIndex="1"
+ Padding="10 0 10 0" />
<Border Name="PART_Border" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{DynamicResource ThemeBorderLowBrush}">
- <ContentPresenter Name="PART_ContentPresenter" Background="{TemplateBinding Background}" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" />
+ <ContentPresenter
+ Name="PART_ContentPresenter"
+ Background="{TemplateBinding Background}"
+ ContentTemplate="{TemplateBinding ContentTemplate}"
+ Content="{TemplateBinding Content}"
+ Padding="{TemplateBinding Padding}"
+ VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
+ HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" />
</Border>
</DockPanel>
</ControlTemplate>

MODIFY
WalletWasabi.Gui/Controls/MultiTextBox.xaml
WalletWasabi.Gui/Controls/MultiTextBox.xaml
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="Text" Converter="{x:Static StringConverters.IsNotNullOrEmpty}" />
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="ClipboardNotificationVisible" />
</MultiBinding>
- </TextBlock.IsVisible></TextBlock>
+ </TextBlock.IsVisible>
+ </TextBlock>
<DataValidationErrors>
- <ScrollViewer HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}" VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}" IsVisible="{TemplateBinding TextVisible}">
+ <ScrollViewer
+ HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}"
+ VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}"
+ IsVisible="{TemplateBinding TextVisible}">
<Panel>
<TextBlock Name="watermark" Opacity="0.5" Text="{TemplateBinding Watermark}" IsVisible="{TemplateBinding Text, Converter={x:Static StringConverters.IsNullOrEmpty}}" />
- <TextPresenter Name="PART_TextPresenter" Text="{TemplateBinding Text, Mode=TwoWay}" CaretIndex="{TemplateBinding CaretIndex}" SelectionStart="{TemplateBinding SelectionStart}" SelectionEnd="{TemplateBinding SelectionEnd}" TextAlignment="{TemplateBinding TextAlignment}" TextWrapping="{TemplateBinding TextWrapping}" PasswordChar="{TemplateBinding PasswordChar}" />
+ <TextPresenter
+ Name="PART_TextPresenter"
+ Text="{TemplateBinding Text, Mode=TwoWay}"
+ CaretIndex="{TemplateBinding CaretIndex}"
+ SelectionStart="{TemplateBinding SelectionStart}"
+ SelectionEnd="{TemplateBinding SelectionEnd}"
+ TextAlignment="{TemplateBinding TextAlignment}"
+ TextWrapping="{TemplateBinding TextWrapping}"
+ PasswordChar="{TemplateBinding PasswordChar}" />
</Panel>
</ScrollViewer>
</DataValidationErrors>

MODIFY
WalletWasabi.Gui/Controls/NoparaPasswordBox.xaml
WalletWasabi.Gui/Controls/NoparaPasswordBox.xaml
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="UseFloatingWatermark" />
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="Text" Converter="{x:Static StringConverters.IsNotNullOrEmpty}" />
</MultiBinding>
- </TextBlock.IsVisible></TextBlock>
+ </TextBlock.IsVisible>
+ </TextBlock>
<Button Name="PART_MaskedButton" Focusable="False" DockPanel.Dock="Right" Padding="5 0 5 0" Margin="0" Background="Transparent" BorderThickness="0" ToolTip.Tip="Show password.">
<Grid Height="15" Width="15">
<DrawingPresenter VerticalAlignment="Center" HorizontalAlignment="Center">
</Button.IsVisible>
</Button>
<DataValidationErrors>
- <ScrollViewer HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}" VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}">
+ <ScrollViewer
+ HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}"
+ VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}">
<Panel>
<TextBlock Name="watermark" Opacity="0.5" Text="{TemplateBinding Watermark}">
<TextBlock.IsVisible>
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="WarningMessage" Converter="{x:Static StringConverters.IsNullOrEmpty}" />
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="Text" Converter="{x:Static StringConverters.IsNullOrEmpty}" />
</MultiBinding>
- </TextBlock.IsVisible></TextBlock>
- <TextPresenter Name="PART_TextPresenter" Text="{TemplateBinding Text, Mode=TwoWay}" CaretIndex="{TemplateBinding CaretIndex}" SelectionStart="{TemplateBinding SelectionStart}" SelectionEnd="{TemplateBinding SelectionEnd}" TextAlignment="{TemplateBinding TextAlignment}" TextWrapping="{TemplateBinding TextWrapping}" PasswordChar="{TemplateBinding PasswordChar}" IsVisible="{TemplateBinding WarningMessage, Converter={x:Static StringConverters.IsNullOrEmpty}}" />
- <TextBlock Name="warningMessage" Classes="warningMessage" Text="{TemplateBinding WarningMessage}" IsVisible="{TemplateBinding WarningMessage, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" />
+ </TextBlock.IsVisible>
+ </TextBlock>
+ <TextPresenter
+ Name="PART_TextPresenter"
+ Text="{TemplateBinding Text, Mode=TwoWay}"
+ CaretIndex="{TemplateBinding CaretIndex}"
+ SelectionStart="{TemplateBinding SelectionStart}"
+ SelectionEnd="{TemplateBinding SelectionEnd}"
+ TextAlignment="{TemplateBinding TextAlignment}"
+ TextWrapping="{TemplateBinding TextWrapping}"
+ PasswordChar="{TemplateBinding PasswordChar}"
+ IsVisible="{TemplateBinding WarningMessage, Converter={x:Static StringConverters.IsNullOrEmpty}}" />
+ <TextBlock
+ Name="warningMessage"
+ Classes="warningMessage"
+ Text="{TemplateBinding WarningMessage}"
+ IsVisible="{TemplateBinding WarningMessage, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" />
</Panel>
</ScrollViewer>
</DataValidationErrors>

multiline when too long