1. add window demo 2. add scrollviewer demo 3. add radiobutton style 4. fixed some bugs 5. add research project
61 lines
4.5 KiB
XML
61 lines
4.5 KiB
XML
<controls:WindowBorderless x:Class="HandyControlDemo.Window.CustomNonClientAreaWindow"
|
|
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:langs="clr-namespace:HandyControlDemo.Properties.Langs"
|
|
xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl"
|
|
mc:Ignorable="d"
|
|
OtherButtonForeground="{StaticResource PrimaryTextBrush}"
|
|
CloseButtonForeground="{StaticResource PrimaryTextBrush}"
|
|
OtherButtonHoverBrush="{StaticResource PrimaryTextBrush}"
|
|
NonClientAreaBackground="{StaticResource ToolBarBackground}"
|
|
NonClientAreaHeight="69"
|
|
Background="#f0f0f0"
|
|
WindowStartupLocation="CenterScreen"
|
|
Style="{StaticResource CustomWindowStyle}"
|
|
Title="{x:Static langs:Lang.Title}"
|
|
Height="450"
|
|
Width="800">
|
|
<controls:WindowBorderless.NonClientAreaContent>
|
|
<StackPanel Orientation="Horizontal" Height="69">
|
|
<Path Data="{StaticResource LogoGeometry}" Width="40" Height="40" Stretch="Uniform" Fill="#F76B1C" Margin="20,0,0,0"></Path>
|
|
<Button Style="{StaticResource ButtonCustom}" Margin="32,0,0,0">
|
|
<Border Width="30" Height="30" BorderThickness="1" CornerRadius="6" BorderBrush="#B7B5B7" Background="{StaticResource MenuButtonBorderBrush}">
|
|
<Path Margin="5" Fill="#ED41FF" Stretch="Uniform" Data="{StaticResource ErrorGeometry}"></Path>
|
|
</Border>
|
|
</Button>
|
|
<Button Style="{StaticResource ButtonCustom}" Margin="10,0,0,0">
|
|
<Border Width="30" Height="30" BorderThickness="1" CornerRadius="6" BorderBrush="#B7B5B7" Background="{StaticResource MenuButtonBorderBrush}">
|
|
<Path Margin="6" Fill="#ED41FF" Stretch="Uniform" Data="{StaticResource AskGeometry}"></Path>
|
|
</Border>
|
|
</Button>
|
|
<Button Style="{StaticResource ButtonCustom}" Margin="10,0,0,0">
|
|
<Border Width="30" Height="30" BorderThickness="1" CornerRadius="6" BorderBrush="#B7B5B7" Background="{StaticResource MenuButtonBorderBrush}">
|
|
<Path Margin="6" Fill="#ED41FF" Stretch="Uniform" Data="{StaticResource InfoGeometry}"></Path>
|
|
</Border>
|
|
</Button>
|
|
<Button Style="{StaticResource ButtonCustom}" Margin="32,0,0,0">
|
|
<Border Width="30" Height="30" BorderThickness="1" CornerRadius="6" BorderBrush="#B7B5B7" Background="{StaticResource MenuButtonBorderBrush}">
|
|
<Path Margin="5" Fill="#8EC915" Stretch="Uniform" Data="{StaticResource ErrorGeometry}"></Path>
|
|
</Border>
|
|
</Button>
|
|
<Button Style="{StaticResource ButtonCustom}" Margin="10,0,0,0">
|
|
<Border Width="30" Height="30" BorderThickness="1" CornerRadius="6" BorderBrush="#B7B5B7" Background="{StaticResource MenuButtonBorderBrush}">
|
|
<Path Margin="6" Fill="#8EC915" Stretch="Uniform" Data="{StaticResource AskGeometry}"></Path>
|
|
</Border>
|
|
</Button>
|
|
<Button Style="{StaticResource ButtonCustom}" Margin="10,0,0,0">
|
|
<Border Width="30" Height="30" BorderThickness="1" CornerRadius="6" BorderBrush="#B7B5B7" Background="{StaticResource MenuButtonBorderBrush}">
|
|
<Path Margin="6" Fill="#8EC915" Stretch="Uniform" Data="{StaticResource AllGeometry}"></Path>
|
|
</Border>
|
|
</Button>
|
|
<Button Style="{StaticResource ButtonCustom}" Margin="10,0,0,0">
|
|
<Border Width="30" Height="30" BorderThickness="1" CornerRadius="6" BorderBrush="#B7B5B7" Background="{StaticResource MenuButtonBorderBrush}">
|
|
<Path Margin="6" Fill="#8EC915" Stretch="Uniform" Data="{StaticResource InfoGeometry}"></Path>
|
|
</Border>
|
|
</Button>
|
|
</StackPanel>
|
|
</controls:WindowBorderless.NonClientAreaContent>
|
|
<Border Background="{StaticResource MainContentBackground}"/>
|
|
</controls:WindowBorderless> |