|
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace DockingLibrary
{
class OverlayDockablePane : DockablePane
{
public readonly DockablePane ReferencedPane;
public readonly DockableContent ReferencedContent;
public OverlayDockablePane(DockManager dockManager, DockableContent content, Dock initialDock) : base(dockManager, initialDock)
{
btnAutoHide.LayoutTransform = new RotateTransform(90);
ReferencedPane = content.ContainerPane as DockablePane;
ReferencedContent = content;
Add(ReferencedContent);
Show(ReferencedContent);
ReferencedContent.SetContainerPane(ReferencedPane);
_state = PaneState.AutoHide;
}
public override void Show()
{
ChangeState(PaneState.Docked);
}
public override void Close()
{
ChangeState(PaneState.Hidden);
}
public override void Close(DockableContent content)
{
ChangeState(PaneState.Hidden);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I bought my first computer in Nov 1991, 21st and I started programming with QBasic under MSDOS.
Today my main interest is developping applications with .NET and HTML5 stack.