-
Notifications
You must be signed in to change notification settings - Fork 809
Expand file tree
/
Copy pathOKMessageChildWindow.xaml
More file actions
47 lines (47 loc) · 2.81 KB
/
OKMessageChildWindow.xaml
File metadata and controls
47 lines (47 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<simpleChildWindow:ChildWindow x:Class="NETworkManager.Views.OKMessageChildWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:viewModels="clr-namespace:NETworkManager.ViewModels"
xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"
Loaded="ChildWindow_OnLoaded"
Style="{StaticResource DefaultChildWindow}"
mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:OKMessageViewModel}">
<simpleChildWindow:ChildWindow.Resources>
<converters:ChildWindowIconToRectangleStyleConverter x:Key="ChildWindowIconToRectangleStyleConverter" />
</simpleChildWindow:ChildWindow.Resources>
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="20" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ScrollViewer Grid.Column="0" Grid.Row="0"
VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Disabled">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="10" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Rectangle Grid.Column="0" Grid.Row="0"
Width="32" Height="32"
Style="{Binding Icon, Converter={StaticResource ChildWindowIconToRectangleStyleConverter}}" />
<TextBlock Grid.Column="2" Grid.Row="0"
VerticalAlignment="Center"
Text="{Binding Message}"
Style="{StaticResource ResourceKey=WrapTextBlock}"/>
</Grid>
</ScrollViewer>
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="ButtonOK"
Content="{Binding OKButtonText}" Command="{Binding Path=OKCommand}" IsDefault="True"
Style="{StaticResource ResourceKey=HighlightedButton}" />
</StackPanel>
</Grid>
</simpleChildWindow:ChildWindow>