diff --git a/src/Compatibility/Core/src/AppHostBuilderExtensions.cs b/src/Compatibility/Core/src/AppHostBuilderExtensions.cs index 0b052f1f11ea..528db44649b2 100644 --- a/src/Compatibility/Core/src/AppHostBuilderExtensions.cs +++ b/src/Compatibility/Core/src/AppHostBuilderExtensions.cs @@ -31,6 +31,8 @@ using BoxRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.BoxViewRenderer; using CollectionViewRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.StructuredItemsViewRenderer; using OpenGLViewRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.DefaultRenderer; +using StreamImagesourceHandler = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.StreamImageSourceHandler; +using ImageLoaderSourceHandler = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.UriImageSourceHandler; #endif using Microsoft.Maui.Hosting; @@ -259,7 +261,9 @@ static IAppHostBuilder SetupDefaults(this IAppHostBuilder builder) Internals.Registrar.Registered.Register(typeof(FileImageSource), typeof(FileImageSourceHandler)); Internals.Registrar.Registered.Register(typeof(StreamImageSource), typeof(StreamImagesourceHandler)); Internals.Registrar.Registered.Register(typeof(UriImageSource), typeof(ImageLoaderSourceHandler)); +#if !TIZEN Internals.Registrar.Registered.Register(typeof(FontImageSource), typeof(FontImageSourceHandler)); +#endif Internals.Registrar.Registered.Register(typeof(Microsoft.Maui.EmbeddedFont), typeof(Microsoft.Maui.EmbeddedFontLoader)); diff --git a/src/Core/src/Handlers/Entry/EntryHandler.Tizen.cs b/src/Core/src/Handlers/Entry/EntryHandler.Tizen.cs index 01df1b029a1d..f68e75a643a8 100644 --- a/src/Core/src/Handlers/Entry/EntryHandler.Tizen.cs +++ b/src/Core/src/Handlers/Entry/EntryHandler.Tizen.cs @@ -80,6 +80,11 @@ public static void MapHorizontalTextAlignment(EntryHandler handler, IEntry entry handler.NativeView?.UpdateHorizontalTextAlignment(entry); } + public static void MapVerticalTextAlignment(EntryHandler handler, IEntry entry) + { + handler?.NativeView?.UpdateVerticalTextAlignment(entry); + } + public static void MapMaxLength(EntryHandler handler, IEntry entry) { handler.NativeView?.UpdateMaxLength(entry); diff --git a/src/Core/src/Platform/Tizen/EntryExtensions.cs b/src/Core/src/Platform/Tizen/EntryExtensions.cs index ce60baee45bd..bb2aeab857f1 100644 --- a/src/Core/src/Platform/Tizen/EntryExtensions.cs +++ b/src/Core/src/Platform/Tizen/EntryExtensions.cs @@ -24,6 +24,12 @@ public static void UpdateHorizontalTextAlignment(this Entry nativeEntry, ITextAl nativeEntry.HorizontalTextAlignment = entry.HorizontalTextAlignment.ToNative(); } + public static void UpdateVerticalTextAlignment(this Entry nativeEntry, ITextAlignment entry) + { + nativeEntry.SetVerticalTextAlignment(entry.VerticalTextAlignment.ToNativeDouble()); + nativeEntry.SetVerticalPlaceHolderTextAlignment(entry.VerticalTextAlignment.ToNativeDouble()); + } + public static void UpdateIsPassword(this Entry nativeEntry, IEntry entry) { nativeEntry.IsPassword = entry.IsPassword;