Files
BeWoPlaner/BeWo/View/Windows/AnimatedBeWoWindow.xaml
2026-06-05 15:46:56 +02:00

64 lines
2.5 KiB
XML

<Window
x:Class="BeWo.View.Windows.AnimatedBeWoWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:core="clr-namespace:BeWo.View.Core"
xmlns:view="clr-namespace:BeWo.ViewModel.View"
Title="BeWoPlaner"
MinWidth="300"
MinHeight="300"
AllowsTransparency="True"
Background="Transparent"
Closed="Window_Closed"
Closing="Window_Closing"
Loaded="Window_Loaded"
ResizeMode="CanResizeWithGrip"
SnapsToDevicePixels="True"
TextOptions.TextFormattingMode="Display"
WindowStartupLocation="CenterOwner"
WindowStyle="None">
<Window.InputBindings>
<KeyBinding Key="Esc" Command="ApplicationCommands.Close" />
</Window.InputBindings>
<Window.DataContext>
<view:WindowViewModel />
</Window.DataContext>
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="..\..\Styles\ModernOrangeBlack.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Window.Triggers>
<EventTrigger RoutedEvent="Loaded">
<BeginStoryboard Storyboard="{StaticResource WindowLoadedAnimation}" />
</EventTrigger>
</Window.Triggers>
<Grid x:Name="rootGrid">
<GroupBox
x:Name="rootGroupBox"
x:FieldModifier="public"
MouseDoubleClick="RootGroupBox_OnMouseDoubleClick"
MouseLeftButtonDown="RootGroupBox_OnMouseLeftButtonDown"
Style="{DynamicResource PopUpWindowStyle}">
<GroupBox.CommandBindings>
<CommandBinding Command="ApplicationCommands.Close" Executed="CommandBinding_Close_Executed" />
<CommandBinding Command="ApplicationCommands.Save" Executed="CommandBinding_Save_Executed" />
</GroupBox.CommandBindings>
</GroupBox>
<Grid
x:Name="_WaitingLayer"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Panel.ZIndex="1000"
Background="#40FFFFFF"
Focusable="True"
IsHitTestVisible="True"
KeyboardNavigation.IsTabStop="True"
Visibility="{Binding IsWaiting, Converter={StaticResource BoolVisibilityConverter}}">
<core:WaitLayer3 HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid>
</Grid>
</Window>