Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yzylovepmn/YDock
A completely WPF-based dock that fully in style to visual studio.
https://github.com/yzylovepmn/YDock
dock dockmanager layout-manager viewmanager visual-studio
Last synced: about 2 months ago
JSON representation
A completely WPF-based dock that fully in style to visual studio.
- Host: GitHub
- URL: https://github.com/yzylovepmn/YDock
- Owner: yzylovepmn
- License: mit
- Created: 2017-12-22T14:42:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-01T02:35:10.000Z (about 4 years ago)
- Last Synced: 2024-07-30T20:59:53.027Z (5 months ago)
- Topics: dock, dockmanager, layout-manager, viewmanager, visual-studio
- Language: C#
- Homepage: https://github.com/yzylovepmn/YDock
- Size: 447 KB
- Stars: 47
- Watchers: 5
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YDock
## This is a layout system similar to visual studio.
The lastest version is based on .NET4.5.
if you use .NET4.0, You need to reference the Microsoft.Windows.Shell assembly to replace the WindowChrome class in .NET4.5.The following is an application example of the framework:
![image](https://github.com/yzylovepmn/YDock/raw/master/YDock/Resource/Image/example.PNG)The steps to add a layoutable window are as follows:
1.First instantiate a DockManager:
var dockManager = new DockManager();
2.Create a class A that you want to add to the layout (must be inherited from UIElement);3.Let class A implement the interface IDockSource
4.Register the class with dockManager, for example:
var a = new A();
dockManager.RegisterDock(a);
5.Finally, use the IDockSource interface member to display this class.
a.DockControl.Show();