From 8f0833efe4b907610eccab155fb104fe4670993a Mon Sep 17 00:00:00 2001 From: Nick Randolph Date: Wed, 26 Jul 2023 23:41:22 +1000 Subject: [PATCH] chore: Rename UnoMauiHost to MauiHost --- .../MauiEmbedding/Presentation/EsriMapsPage.xaml | 4 ++-- .../MauiEmbedding/Presentation/ExternalLibPage.xaml | 4 ++-- .../MauiEmbedding/Presentation/MCTControlsPage.xaml | 4 ++-- .../MauiEmbedding/Presentation/MauiColorsPage.xaml | 4 ++-- .../MauiEmbedding/Presentation/MauiControlsPage.xaml | 4 ++-- .../Presentation/TelerikControlsPage.xaml | 4 ++-- .../{UnoMauiHost.cs => MauiHost.cs} | 10 +++++----- 7 files changed, 17 insertions(+), 17 deletions(-) rename src/Uno.Extensions.Maui.UI/{UnoMauiHost.cs => MauiHost.cs} (93%) diff --git a/samples/MauiEmbedding/MauiEmbedding/Presentation/EsriMapsPage.xaml b/samples/MauiEmbedding/MauiEmbedding/Presentation/EsriMapsPage.xaml index 8461b234a3..ee15e962fe 100644 --- a/samples/MauiEmbedding/MauiEmbedding/Presentation/EsriMapsPage.xaml +++ b/samples/MauiEmbedding/MauiEmbedding/Presentation/EsriMapsPage.xaml @@ -20,10 +20,10 @@ - + - + diff --git a/samples/MauiEmbedding/MauiEmbedding/Presentation/ExternalLibPage.xaml b/samples/MauiEmbedding/MauiEmbedding/Presentation/ExternalLibPage.xaml index 8e58de8f75..bf3c74e9f9 100644 --- a/samples/MauiEmbedding/MauiEmbedding/Presentation/ExternalLibPage.xaml +++ b/samples/MauiEmbedding/MauiEmbedding/Presentation/ExternalLibPage.xaml @@ -19,11 +19,11 @@ - + - + diff --git a/samples/MauiEmbedding/MauiEmbedding/Presentation/MCTControlsPage.xaml b/samples/MauiEmbedding/MauiEmbedding/Presentation/MCTControlsPage.xaml index 2b5b4bf135..a753b860fb 100644 --- a/samples/MauiEmbedding/MauiEmbedding/Presentation/MCTControlsPage.xaml +++ b/samples/MauiEmbedding/MauiEmbedding/Presentation/MCTControlsPage.xaml @@ -25,7 +25,7 @@ VerticalAlignment="Center"> - + @@ -50,7 +50,7 @@ - + diff --git a/samples/MauiEmbedding/MauiEmbedding/Presentation/MauiColorsPage.xaml b/samples/MauiEmbedding/MauiEmbedding/Presentation/MauiColorsPage.xaml index 868ac5102d..010bf65e7d 100644 --- a/samples/MauiEmbedding/MauiEmbedding/Presentation/MauiColorsPage.xaml +++ b/samples/MauiEmbedding/MauiEmbedding/Presentation/MauiColorsPage.xaml @@ -29,7 +29,7 @@ - + @@ -37,7 +37,7 @@ - + diff --git a/samples/MauiEmbedding/MauiEmbedding/Presentation/MauiControlsPage.xaml b/samples/MauiEmbedding/MauiEmbedding/Presentation/MauiControlsPage.xaml index 1c68a4f97c..9973d59622 100644 --- a/samples/MauiEmbedding/MauiEmbedding/Presentation/MauiControlsPage.xaml +++ b/samples/MauiEmbedding/MauiEmbedding/Presentation/MauiControlsPage.xaml @@ -29,7 +29,7 @@ - + @@ -59,7 +59,7 @@ - + - + @@ -23,6 +23,6 @@ - + diff --git a/src/Uno.Extensions.Maui.UI/UnoMauiHost.cs b/src/Uno.Extensions.Maui.UI/MauiHost.cs similarity index 93% rename from src/Uno.Extensions.Maui.UI/UnoMauiHost.cs rename to src/Uno.Extensions.Maui.UI/MauiHost.cs index 33b6173b60..7c29fbcc91 100644 --- a/src/Uno.Extensions.Maui.UI/UnoMauiHost.cs +++ b/src/Uno.Extensions.Maui.UI/MauiHost.cs @@ -4,19 +4,19 @@ /// ContentControl implementation that hosts a Maui view. /// [ContentProperty(Name = nameof(MauiContent))] -public partial class UnoMauiHost : ContentControl +public partial class MauiHost : ContentControl { /// /// The MauiContent property represents the that will be used as content. /// public static readonly DependencyProperty MauiContentProperty = - DependencyProperty.Register(nameof(MauiContent), typeof(View), typeof(UnoMauiHost), new PropertyMetadata(null, OnMauiContentChanged)); + DependencyProperty.Register(nameof(MauiContent), typeof(View), typeof(MauiHost), new PropertyMetadata(null, OnMauiContentChanged)); private static void OnMauiContentChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args) { if (args.NewValue is null || args.NewValue is not View view || - dependencyObject is not UnoMauiHost mauiHost) + dependencyObject is not MauiHost mauiHost) { return; } @@ -25,7 +25,7 @@ args.NewValue is not View view || } private static ILogger GetLogger() => - MauiEmbedding.MauiContext.Services.GetRequiredService>(); + MauiEmbedding.MauiContext.Services.GetRequiredService>(); private MauiContentHost? _host; @@ -34,7 +34,7 @@ private static ILogger GetLogger() => /// /// Initializes a new instance of the MauiContent class. /// - public UnoMauiHost() + public MauiHost() { this.HorizontalContentAlignment = HorizontalAlignment.Stretch; this.VerticalContentAlignment = VerticalAlignment.Stretch;