You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.8 KiB

<hc:Window x:Class="SparkClient.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:hc="https://handyorg.github.io/handycontrol"
xmlns:baseWindow="clr-namespace:SparkClient.ViewModel.BaseWindow"
mc:Ignorable="d"
Title="{DynamicResource ProcName}"
ShowTitle="False"
WindowStyle="None"
ResizeMode="CanResizeWithGrip"
WindowStartupLocation="CenterScreen"
MinHeight="400"
MinWidth="800"
StateChanged="MainWindow_OnStateChanged"
Loaded="MainWindow_OnLoaded"
WindowState="Maximized"
Background="{DynamicResource SecondaryRegionBrush}">
<!-- 内容区域 -->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- 窗口主体内容 -->
<Border Grid.Row="0" >
<Border.Background>
<!-- <ImageBrush ImageSource="pack://application:,,,/Resource/Images/homebg.png" Stretch="UniformToFill" /> -->
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="#657aa9" Offset="0" />
</LinearGradientBrush>
</Border.Background>
<ContentControl DataContextChanged="FrameworkElement_OnDataContextChanged" ClipToBounds="True" Content="{Binding Content}"/>
</Border>
</Grid>
</hc:Window>