Skip to content

Commit 4b2a838

Browse files
committed
Bump to latest
- Including register images and set Compat Service Provider (dotnet#1306), and so on
1 parent 8ce1b60 commit 4b2a838

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

src/Compatibility/Core/src/AppHostBuilderExtensions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
using BoxRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.BoxViewRenderer;
4242
using CollectionViewRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.StructuredItemsViewRenderer;
4343
using OpenGLViewRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.DefaultRenderer;
44+
using StreamImagesourceHandler = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.StreamImageSourceHandler;
45+
using ImageLoaderSourceHandler = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.UriImageSourceHandler;
4446
#endif
4547

4648
namespace Microsoft.Maui.Controls.Hosting
@@ -156,7 +158,9 @@ static IAppHostBuilder SetupDefaults(this IAppHostBuilder builder)
156158
Internals.Registrar.Registered.Register(typeof(FileImageSource), typeof(FileImageSourceHandler));
157159
Internals.Registrar.Registered.Register(typeof(StreamImageSource), typeof(StreamImagesourceHandler));
158160
Internals.Registrar.Registered.Register(typeof(UriImageSource), typeof(ImageLoaderSourceHandler));
161+
#if !TIZEN
159162
Internals.Registrar.Registered.Register(typeof(FontImageSource), typeof(FontImageSourceHandler));
163+
#endif
160164

161165

162166
Internals.Registrar.Registered.Register(typeof(Microsoft.Maui.EmbeddedFont), typeof(Microsoft.Maui.EmbeddedFontLoader));

src/Core/src/Handlers/Entry/EntryHandler.Tizen.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ public static void MapHorizontalTextAlignment(EntryHandler handler, IEntry entry
8080
handler.NativeView?.UpdateHorizontalTextAlignment(entry);
8181
}
8282

83+
public static void MapVerticalTextAlignment(EntryHandler handler, IEntry entry)
84+
{
85+
handler?.NativeView?.UpdateVerticalTextAlignment(entry);
86+
}
87+
8388
public static void MapMaxLength(EntryHandler handler, IEntry entry)
8489
{
8590
handler.NativeView?.UpdateMaxLength(entry);

src/Core/src/Platform/Tizen/EntryExtensions.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ public static void UpdateHorizontalTextAlignment(this Entry nativeEntry, ITextAl
2424
nativeEntry.HorizontalTextAlignment = entry.HorizontalTextAlignment.ToNative();
2525
}
2626

27+
public static void UpdateVerticalTextAlignment(this Entry nativeEntry, ITextAlignment entry)
28+
{
29+
nativeEntry.SetVerticalTextAlignment(entry.VerticalTextAlignment.ToNativeDouble());
30+
nativeEntry.SetVerticalPlaceHolderTextAlignment(entry.VerticalTextAlignment.ToNativeDouble());
31+
}
32+
2733
public static void UpdateIsPassword(this Entry nativeEntry, IEntry entry)
2834
{
2935
nativeEntry.IsPassword = entry.IsPassword;

0 commit comments

Comments
 (0)