diff options
author | Seungkeun Lee <sngn.lee@samsung.com> | 2016-12-21 13:53:55 +0900 |
---|---|---|
committer | Seungkeun Lee <sngn.lee@samsung.com> | 2016-12-21 13:53:55 +0900 |
commit | 82202551185931829d9ea100ed4bef0c3de83b85 (patch) | |
tree | bc23c086ccb8f8f007af57509e5f1be61f768d2f /Xamarin.Forms.Platform.Tizen | |
parent | ce80f28c2c95e4d2da62604c38a684b2d82bb59d (diff) | |
download | xamarin-forms-82202551185931829d9ea100ed4bef0c3de83b85.tar.gz xamarin-forms-82202551185931829d9ea100ed4bef0c3de83b85.tar.bz2 xamarin-forms-82202551185931829d9ea100ed4bef0c3de83b85.zip |
Change Text HorizontalTextAlignment of TitleBar to Center
- Left alignmented text was side effect of Span
- In Tizen, it was originally center alignment
Change-Id: I6daebf987d614731bfa35ec1f0cc52398550c140
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs index 0d2ee2ed..e760489d 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs @@ -179,11 +179,13 @@ namespace Xamarin.Forms.Platform.Tizen string SpanTitle(string Title) { - Native.Span span = new Native.Span { Text = Title }; - if (Element.BarTextColor != Color.Default) + Native.Span span = new Native.Span { - span.ForegroundColor = Element.BarTextColor.ToNative(); - } + Text = Title, + HorizontalTextAlignment = Native.TextAlignment.Center, + ForegroundColor = Element.BarTextColor.ToNative() + }; + //TODO: changes only background of title not all bar if (Element.BarBackgroundColor != Color.Default) { |