Skip to content

Latest commit

 

History

History
61 lines (53 loc) · 1.94 KB

README.md

File metadata and controls

61 lines (53 loc) · 1.94 KB
DockWindow

Dock Window

Nuget Downloads

Dock window implementation of WPF base off Using Application Desktop Toolbars

Features

  • Docking to any edge and monitor
  • Supporting automatic hiding
  • Cooperating with other desktop toolbars

Usage

Install the NuGet package. Then create a WPF window and select the DockWindow class instead of the Window class. Needs to done both in XAML and code

  • XAML
<dw:DockWindow 
    x:Class="DockWindowDemo.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:dw="clr-namespace:DockWindow.Windows;assembly=DockWindow"
    mc:Ignorable="d"
    Title="MainWindow" 
    Background="Transparent"
    BorderBrush="Transparent"
    BorderThickness="0"
    AllowsTransparency="True"
    DockWidthOrHeight="150"
    AnimationBackground="White">
    <Grid>
    </Grid>
</dw:DockWindow>
  • Code
namespace DockWindowDemo
{
    public partial class MainWindow : DockWindow.Windows.DockWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }
    }
}

You can see DockWindowDemo for an example project