Skip to content

Commit 69a6b55

Browse files
committed
Bump to latest
- Including register images and set Compat Service Provider (dotnet#1306), and so on
1 parent d60bb91 commit 69a6b55

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
@@ -38,6 +38,8 @@
3838
using BoxRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.BoxViewRenderer;
3939
using CollectionViewRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.StructuredItemsViewRenderer;
4040
using OpenGLViewRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.DefaultRenderer;
41+
using StreamImagesourceHandler = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.StreamImageSourceHandler;
42+
using ImageLoaderSourceHandler = Microsoft.Maui.Controls.Compatibility.Platform.Tizen.UriImageSourceHandler;
4143
#endif
4244

4345
namespace Microsoft.Maui.Controls.Compatibility.Hosting
@@ -98,7 +100,9 @@ public static MauiAppBuilder UseMauiCompatibility(this MauiAppBuilder builder)
98100
Internals.Registrar.Registered.Register(typeof(FileImageSource), typeof(FileImageSourceHandler));
99101
Internals.Registrar.Registered.Register(typeof(StreamImageSource), typeof(StreamImagesourceHandler));
100102
Internals.Registrar.Registered.Register(typeof(UriImageSource), typeof(ImageLoaderSourceHandler));
103+
#if !TIZEN
101104
Internals.Registrar.Registered.Register(typeof(FontImageSource), typeof(FontImageSourceHandler));
105+
#endif
102106
Internals.Registrar.Registered.Register(typeof(Microsoft.Maui.EmbeddedFont), typeof(Microsoft.Maui.EmbeddedFontLoader));
103107
#endif
104108

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)