|
@@ -0,0 +1,40 @@
|
|
|
+<Window x:Class="PixiEditor.Views.Dialogs.NoticePopup"
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:system="clr-namespace:System;assembly=System.Runtime" xmlns:behaviours="clr-namespace:PixiEditor.Helpers.Behaviours" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
|
+ mc:Ignorable="d"
|
|
|
+ Title="NoticePopup" Height="200" Width="500"
|
|
|
+ x:Name="popup">
|
|
|
+
|
|
|
+ <WindowChrome.WindowChrome>
|
|
|
+ <WindowChrome CaptionHeight="32"
|
|
|
+ ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
|
|
|
+ </WindowChrome.WindowChrome>
|
|
|
+
|
|
|
+ <Grid Background="{StaticResource AccentColor}" Focusable="True">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="35" />
|
|
|
+ <RowDefinition Height="34*" />
|
|
|
+ <RowDefinition Height="21*" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <i:Interaction.Behaviors>
|
|
|
+ <behaviours:ClearFocusOnClickBehavior/>
|
|
|
+ </i:Interaction.Behaviors>
|
|
|
+ <TextBlock Grid.Row="1" Text="{Binding Body, ElementName=popup}" HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center" FontSize="18" Foreground="White" />
|
|
|
+ <DockPanel Grid.Row="0" Background="{StaticResource MainColor}">
|
|
|
+ <Button DockPanel.Dock="Right" HorizontalAlignment="Right" Style="{StaticResource CloseButtonStyle}"
|
|
|
+ WindowChrome.IsHitTestVisibleInChrome="True" ToolTip="Close"
|
|
|
+ Command="{Binding DataContext.CancelCommand, ElementName=popup}" />
|
|
|
+ </DockPanel>
|
|
|
+ <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Center"
|
|
|
+ Margin="0,0,10,10">
|
|
|
+ <Button Height="30" Width="60"
|
|
|
+ Click="Close"
|
|
|
+ Style="{StaticResource DarkRoundButton}" Content="Ok">
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+</Window>
|