-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Markup renderings can be used together
- Loading branch information
Showing
5 changed files
with
42 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:ShinyApp" | ||
x:Class="ShinyApp.BlazorPage" | ||
BackgroundColor="{DynamicResource PageBackgroundColor}"> | ||
|
||
<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html"> | ||
<BlazorWebView.RootComponents> | ||
<RootComponent Selector="#app" ComponentType="{x:Type local:Routes}" /> | ||
</BlazorWebView.RootComponents> | ||
</BlazorWebView> | ||
</ContentPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace ShinyApp; | ||
|
||
|
||
public partial class BlazorPage : ContentPage | ||
{ | ||
public BlazorPage() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
|
4 changes: 2 additions & 2 deletions
4
ProjectTemplates/ShinyApp/MainPage.cs → ...ectTemplates/ShinyApp/CSharpMarkupPage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!--#if (useblazor)--> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:ShinyApp" | ||
x:Class="ShinyApp.MainPage" | ||
BackgroundColor="{DynamicResource PageBackgroundColor}"> | ||
|
||
<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html"> | ||
<BlazorWebView.RootComponents> | ||
<RootComponent Selector="#app" ComponentType="{x:Type local:Routes}" /> | ||
</BlazorWebView.RootComponents> | ||
</BlazorWebView> | ||
</ContentPage> | ||
<!--#else--> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:ShinyApp" | ||
x:DataType="local:MainViewModel" | ||
x:Class="ShinyApp.MainPage"> | ||
</ContentPage> | ||
<!--#endif--> |