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: blazor/image-editor/getting-started-with-web-app.md
+26-27Lines changed: 26 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
---
2
2
layout: post
3
3
title: Getting Started with Syncfusion Blazor ImageEditor Component in WebApp
4
-
description: Checkout and learn about the documentation for getting started with Blazor Image Editor Component in Blazor Web App.
4
+
description: Learn how to add and configure the Syncfusion Blazor Image Editor component in a Blazor Web App using Visual Studio or Visual Studio Code.
5
5
platform: Blazor
6
6
component: Image Editor
7
7
documentation: ug
8
8
---
9
9
10
10
# Getting Started with Blazor Image Editor Component in Web App
11
11
12
-
This section briefly explains about how to include [Blazor Image Editor](https://www.syncfusion.com/blazor-components/blazor-image-editor) component in your Blazor Web App using [Visual Studio](https://visualstudio.microsoft.com/vs/)and Visual Studio Code.
12
+
This section explains how to include the [Blazor Image Editor](https://www.syncfusion.com/blazor-components/blazor-image-editor) component in a Blazor Web App using [Visual Studio](https://visualstudio.microsoft.com/vs/)or Visual Studio Code.
13
13
14
-
To get start quickly with the Blazor Image Editor component, you can check on this video or [GitHub](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/imageEditor) sample:
14
+
To get started quickly with the Blazor Image Editor component, refer to this video or the[GitHub](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/imageEditor) sample:
@@ -25,17 +25,17 @@ To get start quickly with the Blazor Image Editor component, you can check on th
25
25
26
26
## Create a new Blazor Web App in Visual Studio
27
27
28
-
You can create a **Blazor Web App** using Visual Studio 2022 via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vs) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio).
28
+
Create a **Blazor Web App** using Visual Studio 2022 via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vs) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio).
29
29
30
-
You need to configure the corresponding [Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vs) while creating a Blazor Web Application.
30
+
Configure the corresponding [Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vs) while creating the Blazor Web App.
31
31
32
32
## Install Syncfusion<supstyle="font-size:70%">®</sup> Blazor ImageEditor and Themes NuGet in the Blazor Web App
33
33
34
-
To add **Blazor Image Editor** component in the app, open the NuGet package manager in Visual Studio (*Tools → NuGet Package Manager → Manage NuGet Packages for Solution*), search and install [Syncfusion.Blazor.ImageEditor](https://www.nuget.org/packages/Syncfusion.Blazor.ImageEditor/) and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/).
34
+
To add the **Blazor Image Editor** component, open the NuGet package manager in Visual Studio (*Tools → NuGet Package Manager → Manage NuGet Packages for Solution*), then search for and install [Syncfusion.Blazor.ImageEditor](https://www.nuget.org/packages/Syncfusion.Blazor.ImageEditor/) and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/).
35
35
36
-
If you utilize `WebAssembly or Auto` render modes in the Blazor Web App need to be install Syncfusion<supstyle="font-size:70%">®</sup> Blazor components NuGet packages within the client project.
36
+
When using `WebAssembly` or `Auto` render modes in a Blazor Web App, install Syncfusion<supstyle="font-size:70%">®</sup> Blazor component NuGet packages in the client project.
37
37
38
-
Alternatively, you can utilize the following package manager command to achieve the same.
38
+
Alternatively, use the following package manager commands to install the packages.
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available in[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for available NuGet packages list with component details.
49
+
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available on[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to the [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for the list of available packages and component details.
## Create a new Blazor Web App in Visual Studio Code
60
60
61
-
You can create a **Blazor Web App** using Visual Studio Code via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vsc) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project).
61
+
Create a **Blazor Web App** using Visual Studio Code via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vsc) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project).
62
62
63
-
You need to configure the corresponding [Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vsc) while creating a Blazor Web Application.
63
+
Configure the corresponding [Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vsc) while creating the Blazor Web App.
64
64
65
65
For example, in a Blazor Web App with the `Auto` interactive render mode, use the following commands.
66
66
@@ -78,11 +78,11 @@ N> For more information on creating a **Blazor Web App** with various interactiv
78
78
79
79
## Install Syncfusion<supstyle="font-size:70%">®</sup> Blazor ImageEditor and Themes NuGet in the App
80
80
81
-
If you utilize `WebAssembly` or `Auto` render modes in the Blazor Web App need to be install Syncfusion<supstyle="font-size:70%">®</sup> Blazor components NuGet packages within the client project.
81
+
When using `WebAssembly` or `Auto` render modes in a Blazor Web App, install Syncfusion<supstyle="font-size:70%">®</sup> Blazor component NuGet packages in the client project.
82
82
83
83
* Press <kbd>Ctrl</kbd>+<kbd>`</kbd> to open the integrated terminal in Visual Studio Code.
84
-
* Ensure you’re in the project root directory where your`.csproj` file is located.
85
-
* Run the following command to install a [Syncfusion.Blazor.ImageEditor](https://www.nuget.org/packages/Syncfusion.Blazor.ImageEditor) and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/)NuGet package and ensure all dependencies are installed.
84
+
* Ensure the current directory is the project root where the`.csproj` file is located.
85
+
* Run the following commands to install [Syncfusion.Blazor.ImageEditor](https://www.nuget.org/packages/Syncfusion.Blazor.ImageEditor) and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/) and ensure all dependencies are restored.
86
86
87
87
{% tabs %}
88
88
@@ -96,7 +96,7 @@ dotnet restore
96
96
97
97
{% endtabs %}
98
98
99
-
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available in[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for available NuGet packages list with component details.
99
+
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available on[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to the [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for the list of available packages and component details.
| WebAssembly or Auto | Open **~/_Imports.razor**file from the client project.|
110
-
| Server | Open **~/_import.razor** file, which is located in the `Components` folder.|
109
+
| WebAssembly or Auto | Open **~/_Imports.razor** from the client project.|
110
+
| Server | Open **~/Components/_Imports.razor** located in the `Components` folder.|
111
111
112
-
Import the `Syncfusion.Blazor` and `Syncfusion.Blazor.ImageEditor`namespace.
112
+
Import the `Syncfusion.Blazor` and `Syncfusion.Blazor.ImageEditor`namespaces.
113
113
114
114
{% tabs %}
115
115
{% highlight C# tabtitle="~/_Imports.razor" %}
@@ -120,9 +120,9 @@ Import the `Syncfusion.Blazor` and `Syncfusion.Blazor.ImageEditor` namespace.
120
120
{% endhighlight %}
121
121
{% endtabs %}
122
122
123
-
Now, register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Service in the **~/Program.cs** file of your Blazor Web App.
123
+
Now, register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Service in the **~/Program.cs** file of the Blazor Web App.
124
124
125
-
If the **Interactive Render Mode** is set to `WebAssembly` or `Auto`, you need to register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service in both **~/Program.cs** files of your Blazor Web App.
125
+
If the **Interactive Render Mode** is set to `WebAssembly` or `Auto`, register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service in both **~/Program.cs** files of the Blazor Web App.
If the **Interactive Render Mode** is set to `Server`, your project will contain a single **~/Program.cs** file. So, you should register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Service only in that **~/Program.cs** file.
159
+
If the **Interactive Render Mode** is set to `Server`, the project contains a single **~/Program.cs** file. In this case, register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service only in that **~/Program.cs** file.
@@ -193,11 +193,11 @@ The theme stylesheet and script can be accessed from NuGet through [Static Web A
193
193
</body>
194
194
```
195
195
196
-
N> Check out the [Blazor Themes](https://blazor.syncfusion.com/documentation/appearance/themes) topic to discover various methods ([Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets), [CDN](https://blazor.syncfusion.com/documentation/appearance/themes#cdn-reference), and [CRG](https://blazor.syncfusion.com/documentation/common/custom-resource-generator)) for referencing themes in your Blazor application. Also, check out the [Adding Script Reference](https://blazor.syncfusion.com/documentation/common/adding-script-references) topic to learn different approaches for adding script references in your Blazor application.
196
+
N> Refer to the [Blazor Themes](https://blazor.syncfusion.com/documentation/appearance/themes) topic to discover various methods ([Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets), [CDN](https://blazor.syncfusion.com/documentation/appearance/themes#cdn-reference), and [CRG](https://blazor.syncfusion.com/documentation/common/custom-resource-generator)) for referencing themes in a Blazor application. Also, refer to the [Adding Script Reference](https://blazor.syncfusion.com/documentation/common/adding-script-references) topic to learn different approaches for adding script references.
Add the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Image Editor component in `.razor` file inside the `Pages` folder. If an interactivity location as`Per page/component` in the web app, define a render mode at top of the component, as follows:
200
+
Add the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Image Editor component in a `.razor` file inside the `Pages` folder. If the interactivity location is`Per page/component` in the web app, define a render mode at the top of the component, as follows:
201
201
202
202
| Interactivity location | RenderMode | Code |
203
203
| --- | --- | --- |
@@ -206,7 +206,7 @@ Add the Syncfusion<sup style="font-size:70%">®</sup> Blazor Image Editor com
206
206
|| Server |@rendermode InteractiveServer |
207
207
|| None | --- |
208
208
209
-
N> If an**Interactivity Location** is set to `Global` and the **Render Mode** is set to `Auto` or `WebAssembly` or `Server`, the render mode is configured in the `App.razor` file by default.
209
+
N> If the**Interactivity Location** is set to `Global` and the **Render Mode** is set to `Auto`, `WebAssembly`, or `Server`, the render mode is configured in the `App.razor` file by default.
210
210
211
211
{% tabs %}
212
212
{% highlight razor %}
@@ -225,12 +225,11 @@ N> If an **Interactivity Location** is set to `Global` and the **Render Mode** i
225
225
{% endhighlight %}
226
226
{% endtabs %}
227
227
228
-
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Image Editor component in your default web browser.
228
+
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This renders the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Image Editor component in the default web browser.
1.[Getting Started with Syncfusion<supstyle="font-size:70%">®</sup> Blazor Web Assembly App in Visual Studio or .NET CLI](https://blazor.syncfusion.com/documentation/getting-started/blazor-webassembly-app)
235
235
2.[Getting Started with Syncfusion<supstyle="font-size:70%">®</sup> Blazor Web App in Visual Studio or .NET CLI](https://blazor.syncfusion.com/documentation/getting-started/blazor-web-app)
0 commit comments