1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <Application x:Class="coffe.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:coffe"
- StartupUri="MainWindow.xaml">
- <Application.Resources>
- <FontFamily x:Key="hitterlove">pack://appliction;,,,FolderFont/Hitterlove.otf#Hitterlove</FontFamily>
- <FontFamily x:Key="vpch2">pack://appliction;,,,FolderFont/VPCH2.otf#VPCH2</FontFamily>
-
- <Style x:Key="CustomWindowChrome" TargetType="{x:Type Window}">
- <Setter Property="AllowsTransparency" Value="True"></Setter>
- <Setter Property="WindowStyle" Value="None"></Setter>
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Window">
- <Border Name="newBorder" CornerRadius="100" Background="#e07a5f" BorderBrush="#9A381D" BorderThickness="1 1 10 15">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <!--Заголовок-->
- <!--Основное содержание-->
- <Border Grid.Row="1">
- <AdornerDecorator>
- <ContentPresenter />
- </AdornerDecorator>
- </Border>
- <!--Элемент захвата и изменения размера - работает только для прямоугольных окон-->
- <ResizeGrip Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" Visibility="Collapsed" IsTabStop="False" />
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Application.Resources>
- </Application>
|