Skip to content

Commit 8067eb6

Browse files
committed
991709: Updated Sample: Render Image Editor in Dialog Component (Blazor)
1 parent e1b47f9 commit 8067eb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

blazor/image-editor/how-to/render-dialog.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Rendering the Image Editor in a dialog involves displaying the image editor comp
2727
<DialogTemplates>
2828
<Content>
2929
<div class="dialog-content">
30-
@if (IsImageEditorVisible)
30+
@if (IsImageEditorOpened)
3131
{
3232
<SfImageEditor @ref="ImageEditor" Height="400px">
3333
<ImageEditorEvents Created="OnImageEditorCreated"></ImageEditorEvents>
@@ -41,7 +41,7 @@ Rendering the Image Editor in a dialog involves displaying the image editor comp
4141
4242
@code {
4343
private bool IsDialogVisible { get; set; } = false;
44-
private bool IsImageEditorVisible { get; set; } = false;
44+
private bool IsImageEditorOpened { get; set; } = false;
4545
private SfImageEditor ImageEditor;
4646
4747
private void OpenDialog()
@@ -51,12 +51,12 @@ Rendering the Image Editor in a dialog involves displaying the image editor comp
5151
5252
private void OnDialogOpened()
5353
{
54-
IsImageEditorVisible = true;
54+
IsImageEditorOpened = true;
5555
}
5656
5757
private void OnDialogClosed()
5858
{
59-
IsImageEditorVisible = false;
59+
IsImageEditorOpened = false;
6060
}
6161
6262
private async void OnImageEditorCreated()

0 commit comments

Comments
 (0)