-
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.
Merge pull request #303 from unoplatform/mergify/bp/legacy/4x/pr-291
feat: Enabling all platforms when selecting maui (backport #291)
- Loading branch information
Showing
14 changed files
with
99 additions
and
36 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
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
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
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
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
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
20 changes: 15 additions & 5 deletions
20
src/Uno.Templates/content/unoapp/MyExtensionsApp._1/MainPage.xaml
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,32 @@ | ||
<Page x:Class="MyExtensionsApp._1.MainPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:MyExtensionsApp._1" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
xmlns:local="using:MyExtensionsApp._1"$xamlNamespaces$ | ||
Background="{ThemeResource $themeBackgroundBrush$}"> | ||
|
||
<StackPanel HorizontalAlignment="Center" | ||
VerticalAlignment="Center"> | ||
<TextBlock AutomationProperties.AutomationId="HelloTextBlock" | ||
Text="Hello Uno Platform" | ||
HorizontalAlignment="Center" /> | ||
<!--#if (mauiEmbedding)--> | ||
<!--#if (useNonMauiPlatforms)--> | ||
<maui:Grid> | ||
<embed:MauiHost x:Name="MauiHostElement" | ||
xmlns:embed="using:Uno.Extensions.Maui" | ||
xmlns:controls="using:MyExtensionsApp._1.MauiControls" | ||
Source="controls:EmbeddedControl" /> | ||
</maui:Grid> | ||
<not_maui:Grid> | ||
<TextBlock AutomationProperties.AutomationId="NotMauiTextBlock" | ||
Text="Alternative content for Non-Maui targets" | ||
HorizontalAlignment="Center" /> | ||
</not_maui:Grid> | ||
<!--#else--> | ||
<embed:MauiHost x:Name="MauiHostElement" | ||
xmlns:embed="using:Uno.Extensions.Maui" | ||
xmlns:controls="using:MyExtensionsApp._1.MauiControls" | ||
Source="controls:EmbeddedControl" /> | ||
<!--#endif--> | ||
<!--#endif--> | ||
</StackPanel> | ||
</Page> |
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