54 lines
3.3 KiB
XML
54 lines
3.3 KiB
XML
<controls:WindowBorderless x:Class="HandyControlDemo.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:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl"
|
|
mc:Ignorable="d"
|
|
UseLayoutRounding="True"
|
|
BorderThickness="1"
|
|
BorderBrush="#262e2f"
|
|
NoUserAreaBackground="#262e2f"
|
|
OtherButtonHoverBrush="#888580"
|
|
Style="{StaticResource CustomWindowStyle}"
|
|
WindowState="Maximized"
|
|
Title="MainWindow"
|
|
Name="MyWindow"
|
|
DataContext="{Binding Main,Source={StaticResource Locator}}"
|
|
d:DesignHeight="800"
|
|
d:DesignWidth="1400">
|
|
<controls:WindowBorderless.NoUserContent>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Border Margin="10,0,0,0" Width="16" Height="16">
|
|
<Border.Background>
|
|
<ImageBrush ImageSource="Resources/Img/icon-white.png"/>
|
|
</Border.Background>
|
|
</Border>
|
|
<Menu Margin="10,0,0,0" WindowChrome.IsHitTestVisibleInChrome="True" Background="Transparent">
|
|
<MenuItem Foreground="White" Header="File">
|
|
<MenuItem Header="New repository" InputGestureText="Ctrl+N"></MenuItem>
|
|
<Separator></Separator>
|
|
<MenuItem Header="Add local repository"></MenuItem>
|
|
<MenuItem Header="Clone repository"></MenuItem>
|
|
</MenuItem>
|
|
<MenuItem Foreground="White" Header="Edit"></MenuItem>
|
|
<MenuItem Foreground="White" Header="View"></MenuItem>
|
|
<MenuItem Foreground="White" Header="Repository"></MenuItem>
|
|
<MenuItem Foreground="White" Header="Branch"></MenuItem>
|
|
<MenuItem Foreground="White" Header="Help"></MenuItem>
|
|
</Menu>
|
|
</StackPanel>
|
|
</controls:WindowBorderless.NoUserContent>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="200" MinWidth="200" MaxWidth="400"/>
|
|
<ColumnDefinition MinWidth="200"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter Content="{Binding LeftMainContent}"/>
|
|
<ContentPresenter Grid.Column="1" Content="{Binding MainContent}"/>
|
|
<GridSplitter Grid.Column="1" HorizontalAlignment="Left" Width="4" Background="Transparent" BorderThickness="1,0,0,0" BorderBrush="{StaticResource BorderBrush}"></GridSplitter>
|
|
<controls:ScrollViewer Grid.Column="1" VerticalScrollBarVisibility="Hidden" HorizontalAlignment="Right" IsEnableInertia="True" IsPenetrating="True">
|
|
<StackPanel IsHitTestVisible="True" VerticalAlignment="Top" Background="Transparent" Name="PanelMessage" Margin="0,10,10,10"></StackPanel>
|
|
</controls:ScrollViewer>
|
|
</Grid>
|
|
</controls:WindowBorderless> |