|
6 | 6 | xmlns:viewModels="clr-namespace:NETworkManager.ViewModels" |
7 | 7 | xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization" |
8 | 8 | xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" |
| 9 | + xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" |
| 10 | + ChildWindowWidth="450" |
| 11 | + ChildWindowMaxHeight="500" |
9 | 12 | ShowTitleBar="True" |
10 | 13 | TitleBarBackground="Transparent" |
11 | 14 | TitleBarNonActiveBackground="Transparent" |
|
22 | 25 | <RowDefinition Height="10" /> |
23 | 26 | <RowDefinition Height="Auto" /> |
24 | 27 | </Grid.RowDefinitions> |
25 | | - <StackPanel Grid.Row="0"> |
26 | | - <TextBlock Text="{Binding Path=Message}" Style="{StaticResource ResourceKey=WrapTextBlock}" /> |
27 | | - </StackPanel> |
| 28 | + <ScrollViewer Grid.Column="0" Grid.Row="0" |
| 29 | + VerticalScrollBarVisibility="Auto" |
| 30 | + HorizontalScrollBarVisibility="Disabled"> |
| 31 | + <Grid> |
| 32 | + <Grid.ColumnDefinitions> |
| 33 | + <ColumnDefinition Width="Auto" /> |
| 34 | + <ColumnDefinition Width="10" /> |
| 35 | + <ColumnDefinition Width="*" /> |
| 36 | + </Grid.ColumnDefinitions> |
| 37 | + <Rectangle Grid.Column="0" Grid.Row="0" |
| 38 | + Width="32" Height="32" |
| 39 | + Style="{StaticResource InfoImageRectangle}" /> |
| 40 | + <TextBlock Grid.Column="2" Grid.Row="0" |
| 41 | + VerticalAlignment="Center" |
| 42 | + Text="{Binding Message}" |
| 43 | + Style="{StaticResource ResourceKey=WrapTextBlock}" |
| 44 | + Foreground="{DynamicResource MahApps.Brushes.Gray3}"/> |
| 45 | + </Grid> |
| 46 | + </ScrollViewer> |
28 | 47 | <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right"> |
29 | 48 | <Button Content="{x:Static Member=localization:Strings.Delete}" Command="{Binding Path=DeleteCommand}" IsDefault="True" |
30 | 49 | Style="{StaticResource ResourceKey=HighlightedButton}" Margin="0,0,10,0" /> |
|
0 commit comments