diff options
-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) { |