129 lines
6.7 KiB
XML
129 lines
6.7 KiB
XML
<Window x:Class="ClientApp.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:ClientApp"
|
|
xmlns:views="clr-namespace:ClientApp.Views"
|
|
xmlns:images="clrnamespace.Images"
|
|
mc:Ignorable="d"
|
|
WindowStyle="None"
|
|
AllowsTransparency="True"
|
|
x:Name="applicatonWindow"
|
|
WindowStartupLocation="CenterScreen"
|
|
MinHeight="{Binding MinimumHeight}"
|
|
MinWidth="{Binding MinimumWidth}"
|
|
Title="Whaazzzzuuuuuuuup">
|
|
<!--Icon="/Images/Logo/icon1_small.ico"-->
|
|
<!--Icon="pack://application:,,,/Images/Log/icon1_small.ico"-->
|
|
|
|
<Window.Resources>
|
|
<Style TargetType="{x:Type local:MainWindow}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Window}">
|
|
<Border Padding="{Binding OuterMarginThickness, FallbackValue=10}" >
|
|
<Grid>
|
|
|
|
<!-- opacity mask -->
|
|
<Border x:Name="Container"
|
|
Background="{StaticResource BackgroundLightBrush}"
|
|
CornerRadius="{Binding WindowCornerRadius, FallbackValue=10}"/>
|
|
|
|
|
|
<Border CornerRadius="{Binding WindowCornerRadius, FallbackValue=10}"
|
|
Background="{StaticResource BackgroundVeryLightBrush}">
|
|
<Border.Effect>
|
|
<DropShadowEffect ShadowDepth="0" Opacity="0.2"/>
|
|
</Border.Effect>
|
|
</Border>
|
|
|
|
|
|
<Grid>
|
|
|
|
<Grid.OpacityMask>
|
|
<VisualBrush Visual="{Binding ElementName=Container}"/>
|
|
</Grid.OpacityMask>
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="{Binding TitleHeightGridLength, FallbackValue=42}"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Title bar -->
|
|
<Grid Grid.Column="0" Grid.Row="0" Panel.ZIndex="1" Background="{StaticResource BackgroundLightBrush}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- icon -->
|
|
<Button Grid.Column="0" Style="{StaticResource SystemIconButton}" Command="{Binding MenuCommand}">
|
|
<Image Source="/Images/Logo/icon1.ico"/>
|
|
<!--<TextBlock Text="icon"/>-->
|
|
</Button>
|
|
|
|
<!-- Title -->
|
|
<Viewbox Grid.Column="1" Margin="0">
|
|
<TextBlock Style="{StaticResource HeaderText}" Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Title, FallbackValue=failed}"/>
|
|
</Viewbox>
|
|
|
|
<!-- Window buttons -->
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
<Button Style="{StaticResource WindowControlButton}" Content="_" Command="{Binding MinimizeCommand}"/>
|
|
<Button Style="{StaticResource WindowControlButton}" Content="[]" Command="{Binding MaximizeCommand}"/>
|
|
<Button Style="{StaticResource WindowCloseButton}" Content="X" Command="{Binding CloseCommand}"/>
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<!-- Page content -->
|
|
<Border Grid.Row="1" Grid.Column="0">
|
|
<ContentPresenter Content="{TemplateBinding Content}"/>
|
|
</Border>
|
|
|
|
<!-- shadow? -->
|
|
<Border Grid.Row="1" Height="6" BorderThickness="0 0.2 0 0" VerticalAlignment="Top">
|
|
<!--<Border.BorderBrush>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
|
|
<GradientStop Color="{StaticResource BackgroundSemiLight}" Offset="0.0"/>
|
|
<GradientStop Color="{StaticResource BackgroundVeryLight}" Offset="1.0"/>
|
|
</LinearGradientBrush>
|
|
</Border.BorderBrush>-->
|
|
|
|
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
<GradientStop Color="Transparent" Offset="1.0"/>
|
|
<GradientStop Color="#7000" Offset="0.0"/>
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
</Border>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<WindowChrome.WindowChrome>
|
|
<WindowChrome
|
|
ResizeBorderThickness="{Binding ResizeBorderThickness}"
|
|
CaptionHeight="{Binding TitleHeight}"
|
|
CornerRadius="0"
|
|
GlassFrameThickness="0"/>
|
|
</WindowChrome.WindowChrome>
|
|
|
|
<Grid>
|
|
<Frame Content="{Binding SelectedViewModel}" Focusable="False" NavigationUIVisibility="Hidden"/>
|
|
<Label Content="gemaakt door: mensen" DockPanel.Dock="Bottom" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontStyle="Italic" Foreground="Gray"/>
|
|
</Grid>
|
|
</Window>
|