diff --git a/RadzenBlazorDemos/Pages/Index.razor b/RadzenBlazorDemos/Pages/Index.razor index 938f2af6a4b..3c068d48e7a 100644 --- a/RadzenBlazorDemos/Pages/Index.razor +++ b/RadzenBlazorDemos/Pages/Index.razor @@ -2,6 +2,7 @@ @page "/" @page "/docs/" @inject ExampleService ExampleService +@inject DialogService DialogService @ExampleService.TitleFor(null) @@ -106,10 +107,10 @@ NEW: Radzen Blazor for Visual Studio - The extension brings Radzen’s rich feature set and productivity tools directly into the familiar Visual Studio 2022 environment. Connect to data, design, code seamlessly, and work faster within Visual Studio. - - Learn More ↗ - + The extension brings Radzen’s rich feature set and productivity tools directly into the familiar Visual Studio 2022 environment. Connect to data, design, code seamlessly, and work faster within Visual Studio. Learn More ↗ + + ShowVideoDialog("https://www.youtube.com/embed/VUwy-BX3eCM?&rel=0")) /> + @@ -387,4 +388,17 @@ - \ No newline at end of file + + +@code { + async Task ShowVideoDialog(string url) + { + await DialogService.OpenAsync("Create new Blazor app", ds => + @
+ +
, new DialogOptions() { + Width = "50%", + Resizable = true + }); + } +} \ No newline at end of file diff --git a/RadzenBlazorDemos/Shared/MainLayout.razor b/RadzenBlazorDemos/Shared/MainLayout.razor index 4cbebee1f52..038b26ff857 100644 --- a/RadzenBlazorDemos/Shared/MainLayout.razor +++ b/RadzenBlazorDemos/Shared/MainLayout.razor @@ -44,10 +44,10 @@ NEW: Radzen Blazor for Visual Studio - The extension brings Radzen’s rich feature set and productivity tools directly into the familiar Visual Studio 2022 environment. Connect to data, design, code seamlessly, and work faster within Visual Studio. - - Learn More ↗ - + The extension brings Radzen’s rich feature set and productivity tools directly into the familiar Visual Studio 2022 environment. Connect to data, design, code seamlessly, and work faster within Visual Studio. Learn More ↗ + + ShowVideoDialog("https://www.youtube.com/embed/VUwy-BX3eCM?&rel=0")) /> + @Body @@ -78,7 +78,7 @@ Radzen Blazor for Visual Studio extension streamlines Blazor development within the Visual Studio environment. The Blazor extension you need to boost productivity! - Download + ShowVideoDialog("https://www.youtube.com/embed/VUwy-BX3eCM?&rel=0")) /> Learn More