2025-01-20 14:05:21 -06:00

104 lines
4.2 KiB
XML

<Window x:Class="Breath_of_the_Wild_Multiplayer.MainWindow"
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:local="clr-namespace:Breath_of_the_Wild_Multiplayer"
xmlns:properties="clr-namespace:Breath_of_the_Wild_Multiplayer.Properties"
xmlns:viewModel="clr-namespace:Breath_of_the_Wild_Multiplayer.MVVM.ViewModel"
mc:Ignorable="d"
Height="668.8"
Width="1188"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
ResizeMode="CanMinimize"
Background="Transparent"
AllowsTransparency="True"
Title="Breath of the Wild Multiplayer">
<Window.DataContext>
<viewModel:MainViewModel/>
</Window.DataContext>
<!--<Window.Background>
<SolidColorBrush Color="#FFB0B0B0" Opacity="0.05"/>
</Window.Background>-->
<Border
BorderBrush="WhiteSmoke">
<Border.Style>
<Style TargetType="{x:Type Border}">
<Setter Property="Background">
<Setter.Value>
<ImageBrush x:Name="BackgroundImageBrush" ImageSource="{Binding Source={x:Static properties:Settings.Default}, Path=actualBackground, NotifyOnTargetUpdated=True}"/>
</Setter.Value>
</Setter>
<Setter Property="CornerRadius" Value="10, 10, 5, 5"/>
<Setter Property="BorderThickness" Value="1"/>
<Style.Triggers>
<DataTrigger Binding="{Binding disableBackground}" Value="True">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="CornerRadius" Value="0"/>
<Setter Property="BorderThickness" Value="0"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Content="{Binding appTitle}"
Grid.Row="2"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
FontFamily="Roboto"
FontStyle="Italic"
FontSize="16"
Foreground="#66C1C1C1"
Panel.ZIndex="1"/>
<Border Background="{Binding barColor}" MouseDown="titleBarDrag" CornerRadius="10, 10, 0, 0" Grid.Row="0">
<Border.Style>
<Style TargetType="{x:Type Border}">
<Style.Triggers>
<DataTrigger Binding="{Binding disableBackground}" Value="True">
<Setter Property="Visibility" Value="Hidden"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="-" Style="{StaticResource OtherButtons}" Click="MinimizeClick"/>
<Button Content="x" Style="{StaticResource CloseButton}" Click="CloseClick"/>
</StackPanel>
</Border>
<ContentControl Grid.Row="1" Content="{Binding currentView}"/>
<Border Grid.Row="1" Background="#CC000000" CornerRadius="0, 0, 5, 5">
<ContentControl Content="{Binding currentTopView}"/>
<Border.Style>
<Style TargetType="Border">
<Setter Property="Visibility" Value="Visible"/>
<Style.Triggers>
<DataTrigger Binding="{Binding isTopView}" Value="false">
<Setter Property="Visibility" Value="Hidden"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
</Border>
</Grid>
</Border>
</Window>