Skip to content

Commit d0059f8

Browse files
authored
Proof
1 parent 12ad8c2 commit d0059f8

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/csharp/extensibility-api-howtos/build-todo-example-extension.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ This document covers the following topics:
2121

2222
## Prerequisites
2323

24-
Ensure the following tools are installed on local development environment before starting:
24+
Ensure the following tools are installed on your local development environment before starting:
2525

26-
* Microsoft Visual Studio 2022 (or equivalent, such as Visual Studio Code or JetBrains Rider). This example assumes you are using Microsoft Visual Studio 2022.
26+
* Microsoft Visual Studio 2022 (or equivalent, such as Visual Studio Code or JetBrains Rider); this example assumes you are using Microsoft Visual Studio 2022
2727
* Studio Pro version 10.6 or above
2828

2929
## Creating the Project and Configuring the Extension Project
@@ -38,11 +38,11 @@ Create a new project to ensure your extension is loaded correctly in Studio Pro.
3838
{{< figure src="/attachments/apidocs-mxsdk/apidocs/extensibility-api/extensibility-api-howtos/build-todo-example-extension/step-one.png" >}}
3939

4040
3. Name the project *Mendix.ToDoExtension*.
41-
4. Choose a location to store your extension, and click **Next**.
41+
4. Choose a location to store your extension, then click **Next**.
4242

4343
{{< figure src="/attachments/apidocs-mxsdk/apidocs/extensibility-api/extensibility-api-howtos/build-todo-example-extension/step-two.png" >}}
4444

45-
5. Set the **Framework** to *.NET 8.0 (Long Term Support).
45+
5. Set the **Framework** to *.NET 8.0 (Long Term Support)*.
4646

4747
{{< figure src="/attachments/apidocs-mxsdk/apidocs/extensibility-api/extensibility-api-howtos/build-todo-example-extension/step-three.png" max-width=80% >}}
4848

@@ -134,7 +134,7 @@ There are a few notable features in the code above:
134134
[Export(typeof(DockablePaneExtension))]
135135
```
136136

137-
Studio Pro uses this attribute to identify which extension type to inject this class into. If you do not specify this attribute, Studio Pro will not load your extension type. The extension descends from `DockablePaneExtension`. Studio Pro uses abstract classes to enforce behavior for your extensions.
137+
Studio Pro uses this attribute to identify which extension type to inject this class into. If you do not specify this attribute, Studio Pro will not load your extension type. The extension descends from `DockablePaneExtension`. Studio Pro uses abstract classes to enforce behavior for your extensions.
138138

139139
```csharp
140140
public class ToDoListDockablePaneExtension : DockablePaneExtension
@@ -175,8 +175,8 @@ There are a few notable features in the code above:
175175

176176
* Override the `Id` property
177177
* This property provides Studio Pro a way to uniquely identify your dockable pane extension
178-
* Override the `Open` method.
179-
* Within this method you need to return a valid implementation of `DockablePaneViewModelBase` which studio Pro will use to render your pane's contents
178+
* Override the `Open` method
179+
* Within this method, you need to return a valid implementation of `DockablePaneViewModelBase`, which Studio Pro will use to render your pane's contents
180180

181181
## Creating a View Model to Host Your View Data
182182

@@ -423,7 +423,7 @@ To store to-do data on disk, create model classes that represent individual item
423423

424424
### Create the To-do Item Model
425425

426-
1. Add a new class file named `ToDoModel.cs`.
426+
1. Add a new class file named *ToDoModel.cs*.
427427
2. Replace the contents of the file with the following code:
428428

429429
```csharp
@@ -454,7 +454,7 @@ To store to-do data on disk, create model classes that represent individual item
454454

455455
### Create the To-do List Model
456456

457-
1. Add another class file nameed`ToDoListModel.cs`.
457+
1. Add another class file named *ToDoListModel.cs*.
458458
2. Replace the contents of this file with the following code:
459459

460460
```csharp
@@ -480,7 +480,7 @@ With the models in place, create a storage handler that will manage reading and
480480

481481
### Add the Storage Handler Class
482482

483-
1. Add a new class file named `ToDoStorage.cs`.
483+
1. Add a new class file named *ToDoStorage.cs*.
484484
2. Replace the contents of the file with the following code:
485485

486486
```csharp
@@ -616,10 +616,10 @@ Now that the logic is in place, add a user interface that Studio Pro can render
616616

617617
{{< figure src="/attachments/apidocs-mxsdk/apidocs/extensibility-api/extensibility-api-howtos/build-todo-example-extension/add-web-items.png" width="300" >}}
618618

619-
1. Add a new folder to the solution named `wwwroot`.
619+
1. Add a new folder to the solution named *wwwroot*.
620620
2. In the folder, add:
621621

622-
* `index.html` – ab HTML page that contains the layout of the user interface
622+
* `index.html` – an HTML page that contains the layout of the user interface
623623
* `main.js` – A JavaScript file that contains the client-side logic
624624

625625
3. Open `index.html`.
@@ -669,7 +669,7 @@ Now that the logic is in place, add a user interface that Studio Pro can render
669669
</html>
670670
```
671671

672-
5. Open `main.js`
672+
5. Open `main.js`.
673673
6. Add the JavaScript logic by replacing the contents of the file with the following code:
674674

675675
```js
@@ -782,7 +782,7 @@ Set `index.html` and `main.js` to **Copy always** or **Copy if newer** in their
782782

783783
Link the extension C# logic with the JavaScript UI by adding a utility class for handling web responses.
784784

785-
1. Add a new filed named `HttpListenerResponseUtils.cs`.
785+
1. Add a new filed named *HttpListenerResponseUtils.cs*.
786786
1. Replace the contents of the file with the following:
787787

788788
```csharp
@@ -850,7 +850,7 @@ Your web-based user interface is hosted inside Studio Pro in an isolated web con
850850

851851
This extension type allows you to serve web content easily within Studio Pro.
852852

853-
1. Add a new file named `ToDoListWebServerExtension.cs`.
853+
1. Add a new file named *ToDoListWebServerExtension.cs*.
854854
2. Replace the contents of the file with the following code:
855855

856856
```csharp
@@ -931,8 +931,8 @@ With everything in place, follow the steps below to build and deploy your extens
931931

932932
1. In Visual Studio, select **Build** > **Build Solution**.
933933
2. Navigate to the Mendix app where your extension will be hosted.
934-
3. Create a new folder named `extensions`.
935-
4. Inside it, add a sub-folder named `TodoExtension`. Your path should look like this: `[Mendix App]/extensions/MyTodoExtension/`.
934+
3. Create a new folder named *extensions*.
935+
4. Inside it, add a sub-folder named *TodoExtension*. Your path should look like this: `[Mendix App]/extensions/MyTodoExtension/`.
936936
5. Copy the content from your Visual Studio project's `bin/debug` sub-folder into your app extension folder.
937937
6. Run Studio Pro.
938938

0 commit comments

Comments
 (0)