1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 15:20:10 +00:00
msfs-popout-panel-manager/WpfApp/OnScreenMessageDialog.xaml
2022-07-23 15:23:32 -04:00

41 lines
2.3 KiB
XML

<mah:MetroWindow x:Class="MSFSPopoutPanelManager.WpfApp.OnScreenMessageDialog"
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"
xmlns:shared="clr-namespace:MSFSPopoutPanelManager.Shared;assembly=Shared"
mc:Ignorable="d"
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>
<DataTrigger Binding="{Binding StatusMessageType, Mode=OneWay}" Value="{x:Static shared:StatusMessageType.Error}">
<Setter Property="Source" Value="Resources/cross.png"/>
</DataTrigger>
<DataTrigger Binding="{Binding StatusMessageType, Mode=OneWay}" Value="{x:Static shared:StatusMessageType.Info}">
<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>