2022-01-27 13:40:04 +00:00
|
|
|
<mah:MetroWindow x:Class="MSFSPopoutPanelManager.WpfApp.OnScreenMessageDialog"
|
2022-06-30 23:53:08 +00:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
|
|
|
|
xmlns:local="clr-namespace:MSFSPopoutPanelManager.WpfApp"
|
2022-07-23 19:23:32 +00:00
|
|
|
xmlns:shared="clr-namespace:MSFSPopoutPanelManager.Shared;assembly=Shared"
|
2022-06-30 23:53:08 +00:00
|
|
|
mc:Ignorable="d"
|
2022-01-27 13:40:04 +00:00
|
|
|
Height="Auto"
|
|
|
|
Width="Auto"
|
|
|
|
SizeToContent="WidthAndHeight"
|
|
|
|
Title="MSFS Pop Out Panel Manager"
|
|
|
|
WindowStartupLocation="CenterOwner"
|
|
|
|
Opacity="0.7"
|
|
|
|
ResizeMode="NoResize"
|
|
|
|
WindowStyle="None">
|
|
|
|
<Grid>
|
|
|
|
<DockPanel>
|
|
|
|
<WrapPanel DockPanel.Dock="Top" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="30,25,30,25" Height="75">
|
|
|
|
<Image Width="40" Height="40" HorizontalAlignment="Left">
|
|
|
|
<Image.Style>
|
|
|
|
<Style TargetType="Image">
|
|
|
|
<Style.Triggers>
|
2022-07-23 19:23:32 +00:00
|
|
|
<DataTrigger Binding="{Binding StatusMessageType, Mode=OneWay}" Value="{x:Static shared:StatusMessageType.Error}">
|
2022-01-27 13:40:04 +00:00
|
|
|
<Setter Property="Source" Value="Resources/cross.png"/>
|
|
|
|
</DataTrigger>
|
2022-07-23 19:23:32 +00:00
|
|
|
<DataTrigger Binding="{Binding StatusMessageType, Mode=OneWay}" Value="{x:Static shared:StatusMessageType.Info}">
|
2022-01-27 13:40:04 +00:00
|
|
|
<Setter Property="Source" Value="Resources/info.png"/>
|
|
|
|
</DataTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</Image.Style>
|
|
|
|
</Image>
|
|
|
|
<Grid Height="75" VerticalAlignment="Center" Margin="10, 0, 0, 0" Width="Auto">
|
|
|
|
<TextBlock Name="txtMessage" Width="Auto" Text="Message" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap"/>
|
|
|
|
</Grid>
|
|
|
|
</WrapPanel>
|
|
|
|
</DockPanel>
|
|
|
|
</Grid>
|
|
|
|
</mah:MetroWindow>
|