Skip to content

Commit

Permalink
change: support scrollable for message box
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Sep 10, 2024
1 parent 715ad5d commit 1d2c4c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Wpf.Ui.Violeta/Controls/MessageBox/MessageBoxDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<!-- UserIconBox is not supported nowaday -->
<!-- UserIconBox is not supported nowadays -->
<ContentControl
x:Name="UserIconBox"
Margin="0,0,16,0"
Expand All @@ -154,7 +154,9 @@
<Grid Grid.Column="1" VerticalAlignment="Center">
<Grid.Resources>
<DataTemplate x:Key="StringTemplate">
<TextBlock Text="{Binding}" TextWrapping="Wrap" />
<ScrollViewer Padding="0,0,12,0">
<TextBlock Text="{Binding}" TextWrapping="Wrap" />
</ScrollViewer>
</DataTemplate>
<DataTemplate x:Key="DefaultTemplate">
<ContentPresenter Content="{Binding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
Expand Down

0 comments on commit 1d2c4c1

Please sign in to comment.