Skip to content

Commit 352218c

Browse files
authored
Proof
1 parent 68bdf47 commit 352218c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/csharp/extensibility-api-howtos

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/csharp/extensibility-api-howtos/create-dockable-pane.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Before you start this how-to, it is recommended to [Create a Menu Extension Usin
1818
## Creating a Dockable Pane Extension Class
1919

2020
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:
2323

2424
```csharp
2525
using System.ComponentModel.Composition;
@@ -41,7 +41,7 @@ Before you start this how-to, it is recommended to [Create a Menu Extension Usin
4141

4242
The dockable pane has content, which is provided through a view model. The view model is an implementation of `WebViewDockablePaneViewModel`.
4343

44-
Override the `InitWebView` method, where you can set up the content of your web view inside the dockable pane. In this example, it contains the`http://mendix.com` home page.
44+
Override the `InitWebView` method, where you can set up the content of your web view inside the dockable pane. In this example, it contains the `http://mendix.com` home page.
4545
4646
Below is a code example of the view model:
4747

@@ -89,15 +89,15 @@ public class MyMenuExtension(IDockingWindowService dockingWindowService, IMessag
8989
The code above introduces the following concepts:
9090

9191
* 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
9393

9494
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.
9595

9696
## Showing a Dockable Pane Without a Custom Menu
9797

9898
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.
9999

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.
101101

102102
```csharp
103103
public override string? ViewMenuCaption => "My pane without custom menu";

0 commit comments

Comments
 (0)