141 lines
6.0 KiB
Plaintext
141 lines
6.0 KiB
Plaintext
|
<Controls:MetroWindow x:Class="Plane.Windows.Messages.AlertWindow"
|
||
|
x:ClassModifier="internal"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
|
||
|
WindowStartupLocation="CenterScreen"
|
||
|
ShowCloseButton="False"
|
||
|
MinWidth="700"
|
||
|
MinHeight="200"
|
||
|
ShowInTaskbar="False"
|
||
|
Topmost="True"
|
||
|
ResizeMode="NoResize"
|
||
|
SizeToContent="WidthAndHeight"
|
||
|
TextOptions.TextFormattingMode="Display"
|
||
|
TextOptions.TextRenderingMode="ClearType"
|
||
|
UseLayoutRounding="True">
|
||
|
|
||
|
<Window.Resources>
|
||
|
<ResourceDictionary>
|
||
|
<ResourceDictionary.MergedDictionaries>
|
||
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
|
||
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
|
||
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
|
||
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
|
||
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
|
||
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/VS/Colors.xaml" />
|
||
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/VS/Styles.xaml" />
|
||
|
<ResourceDictionary Source="Styles.xaml" />
|
||
|
</ResourceDictionary.MergedDictionaries>
|
||
|
</ResourceDictionary>
|
||
|
</Window.Resources>
|
||
|
|
||
|
<Window.Style>
|
||
|
<StaticResource ResourceKey="AlertWindowStyle" />
|
||
|
</Window.Style>
|
||
|
|
||
|
<!-- todo: The TextOptions properties above fix a minor blurry image issue, but are only compatible with >= .NET 4.0 -->
|
||
|
<Grid MaxWidth="600">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="*" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid Grid.Row="0"
|
||
|
MinHeight="69">
|
||
|
<DockPanel>
|
||
|
<Image Name="Image_MessageBox"
|
||
|
Width="32"
|
||
|
Height="32"
|
||
|
HorizontalAlignment="Left"
|
||
|
DockPanel.Dock="Left"
|
||
|
Margin="30,0,0,0"
|
||
|
Visibility="Collapsed" />
|
||
|
<TextBlock Name="TextBlock_Message"
|
||
|
TextWrapping="Wrap"
|
||
|
MaxWidth="500"
|
||
|
Width="Auto"
|
||
|
VerticalAlignment="Center"
|
||
|
Margin="12,20,41,15"
|
||
|
FontSize="16" />
|
||
|
</DockPanel>
|
||
|
</Grid>
|
||
|
<Grid Grid.Row="1">
|
||
|
<Controls:MetroProgressBar Name="progressBar"
|
||
|
IsIndeterminate="True"
|
||
|
Visibility="Hidden"
|
||
|
Foreground="{DynamicResource ProgressBarFillBrush}" />
|
||
|
</Grid>
|
||
|
<Grid Grid.Row="2"
|
||
|
MinHeight="49"
|
||
|
Margin="0,0,0,30">
|
||
|
<DockPanel Margin="5,0">
|
||
|
|
||
|
<!-- Cancel Button -->
|
||
|
<Button Name="Button_Cancel"
|
||
|
MinWidth="88"
|
||
|
MaxWidth="160"
|
||
|
Height="26"
|
||
|
Margin="5,0"
|
||
|
HorizontalAlignment="Right"
|
||
|
Visibility="Collapsed"
|
||
|
IsCancel="True"
|
||
|
DockPanel.Dock="Right"
|
||
|
Click="Button_Cancel_Click">
|
||
|
<Label Name="Label_Cancel"
|
||
|
Padding="0"
|
||
|
Margin="10,0">_Cancel</Label>
|
||
|
</Button>
|
||
|
<!-- End Cancel Button -->
|
||
|
|
||
|
<!-- No Button -->
|
||
|
<Button Name="Button_No"
|
||
|
MinWidth="88"
|
||
|
MaxWidth="160"
|
||
|
Height="26"
|
||
|
Margin="5,0"
|
||
|
HorizontalAlignment="Right"
|
||
|
Visibility="Collapsed"
|
||
|
DockPanel.Dock="Right"
|
||
|
Click="Button_No_Click">
|
||
|
<Label Name="Label_No"
|
||
|
Padding="0"
|
||
|
Margin="10,0">_No</Label>
|
||
|
</Button>
|
||
|
<!-- End No Button -->
|
||
|
|
||
|
<!-- Yes Button -->
|
||
|
<Button Name="Button_Yes"
|
||
|
MinWidth="88"
|
||
|
MaxWidth="160"
|
||
|
Height="26"
|
||
|
Margin="35,0,5,0"
|
||
|
HorizontalAlignment="Right"
|
||
|
Visibility="Collapsed"
|
||
|
DockPanel.Dock="Right"
|
||
|
Click="Button_Yes_Click">
|
||
|
<Label Name="Label_Yes"
|
||
|
Padding="0"
|
||
|
Margin="10,0">_Yes</Label>
|
||
|
</Button>
|
||
|
<!-- End Yes Button -->
|
||
|
|
||
|
<!-- OK Button -->
|
||
|
<Button Name="Button_OK"
|
||
|
MinWidth="88"
|
||
|
MaxWidth="160"
|
||
|
Margin="35,0,5,0"
|
||
|
HorizontalAlignment="Right"
|
||
|
Height="26"
|
||
|
Click="Button_OK_Click">
|
||
|
<Label Name="Label_Ok"
|
||
|
Padding="0"
|
||
|
Margin="10,0">_OK</Label>
|
||
|
</Button>
|
||
|
<!-- End OK Button -->
|
||
|
|
||
|
</DockPanel>
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
</Controls:MetroWindow>
|