Skip to content

Commit 71f3114

Browse files
993580-Updated the README.md file.
1 parent e5958f5 commit 71f3114

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

README.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# Working with WPF DockingManager and MVVM
22

3-
This repository contains a sample that shows the WPF DockingManager in MVVM application to create MVVM adapter.
3+
This sample demonstrates how to use **Syncfusion DockingManager** in a WPF application following the **MVVM pattern**. It shows how to create an MVVM adapter for DockingManager to manage docking windows without breaking the MVVM principles.
4+
5+
## Features in This Sample
6+
- **MVVM Integration**: Implements DockingManager in a WPF application using MVVM.
7+
- **Adapter Pattern**: Provides an adapter to handle DockingManager operations in a ViewModel-friendly way.
8+
- **Dynamic Docking Windows**: Allows adding and managing docking windows programmatically.
9+
- **Document Container Support**: Enables tabbed document interface using `UseDocumentContainer` property.
10+
11+
## Key Concepts
12+
- **DockingManager**: A layout control that allows docking, floating, and tabbed windows.
13+
- **MVVM Adapter**: Bridges the gap between DockingManager and ViewModel by exposing commands and properties.
14+
15+
## XAML Overview
16+
```xml
17+
<UserControl x:Class="DockingAdapterMVVM.DockingAdapter"
18+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
19+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
20+
xmlns:syncfusion="http://schemas.syncfusion.com/wpf">
21+
<Grid>
22+
<syncfusion:DockingManager x:Name="PART_DockingManager"
23+
UseDocumentContainer="True"
24+
ActiveWindowChanged="PART_DockingManager_ActiveWindowChanged_1" />
25+
</Grid>
26+
</UserControl>
27+
```
28+
29+
## How It Works
30+
1. The `DockingManager` is placed inside a `UserControl`.
31+
2. An MVVM adapter is implemented to handle docking operations via commands and bindings.
32+
3. The `UseDocumentContainer` property enables tabbed document interface for child windows.
33+
34+
## Benefits of MVVM with DockingManager
35+
- Decouples UI logic from business logic.
36+
- Improves testability and maintainability.
37+
- Allows dynamic layout management through ViewModel.
38+
39+
## Documentation
40+
For more details, refer to the official Syncfusion documentation:
41+
[DockingManager MVVM Pattern](https://help.syncfusion.com/wpf/docking/pattern-and-practices#mvvm)
442

5-
https://help.syncfusion.com/wpf/docking/pattern-and-practices#mvvm

0 commit comments

Comments
 (0)