You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/csharp/extensibility-api-howtos/create-dockable-pane.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,8 @@ Before you start this how-to, it is recommended to [Create a Menu Extension Usin
18
18
## Creating a Dockable Pane Extension Class
19
19
20
20
1. Open the project you previously created by following [Create a Menu Extension Using C#](/apidocs-mxsdk/apidocs/csharp-extensibility-api-11/create-menu-extension/).
21
-
2. Add a new class to the project named `MyDockablePaneExtension.cs`.
22
-
3. Replace the code in the file with the following code:
21
+
2. Add a new class to the project named *MyDockablePaneExtension.cs*.
22
+
3. Replace the code in the file with the following:
23
23
24
24
```csharp
25
25
usingSystem.ComponentModel.Composition;
@@ -41,7 +41,7 @@ Before you start this how-to, it is recommended to [Create a Menu Extension Usin
Overridethe `InitWebView` method, whereyoucansetupthecontentofyourwebviewinsidethedockablepane. Inthisexample, itcontainsthe`http://mendix.com` home page.
44
+
Overridethe `InitWebView` method, whereyoucansetupthecontentofyourwebviewinsidethedockablepane. Inthisexample, itcontainsthe`http://mendix.com` home page.
45
45
46
46
Belowisacodeexampleoftheviewmodel:
47
47
@@ -89,15 +89,15 @@ public class MyMenuExtension(IDockingWindowService dockingWindowService, IMessag
89
89
The code above introduces the following concepts:
90
90
91
91
* The `IDockingWindowService` is injected to allow opening the dockable pane
92
-
* A new menu item named **Open My Dockable Pane** is added to trigger the pane using the `IDockingWindow` service
92
+
* A new menu item named *Open My Dockable Pane* is added to trigger the pane using the `IDockingWindow` service
93
93
94
94
Once you have made these changes, build your project. If you have opted to not automatically copy the output to the destination folder, manually copy the bin output from your project to your extension folder you created when you followed the [Create a Menu Extension Using C#](/apidocs-mxsdk/apidocs/csharp-extensibility-api-11/create-menu-extension/) process.
95
95
96
96
## Showing a Dockable Pane Without a Custom Menu
97
97
98
98
If you prefer to not add a separate menu item to open the docking pane, you can override the `ViewMenuCaption` property in the `DockablePaneExtension` implementation.
99
99
100
-
This places the menu under the `View` top-level menu in Studio Pro and using the caption provided. In this case, you do not need a separate `MenuExtension` class.
100
+
This places the menu under the `View` top-level menu in Studio Pro using the caption provided. In this case, you do not need a separate `MenuExtension` class.
101
101
102
102
```csharp
103
103
publicoverridestring?ViewMenuCaption=>"My pane without custom menu";
0 commit comments