diff options
Diffstat (limited to 'Xamarin.Forms.Platform.WP8')
-rw-r--r-- | Xamarin.Forms.Platform.WP8/Platform.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WP8/Platform.cs b/Xamarin.Forms.Platform.WP8/Platform.cs index 363c6b84..4626542f 100644 --- a/Xamarin.Forms.Platform.WP8/Platform.cs +++ b/Xamarin.Forms.Platform.WP8/Platform.cs @@ -42,6 +42,7 @@ namespace Xamarin.Forms.Platform.WinPhone _renderer = new Canvas(); _renderer.SizeChanged += RendererSizeChanged; + _renderer.Loaded += (sender, args) => UpdateSystemTray(); _tracker.CollectionChanged += (sender, args) => UpdateToolbarItems(); @@ -483,6 +484,15 @@ namespace Xamarin.Forms.Platform.WinPhone } } + void UpdateSystemTray() + { + var lightThemeVisibility = (Visibility)System.Windows.Application.Current.Resources["PhoneLightThemeVisibility"]; + if (lightThemeVisibility == Visibility.Visible && SystemTray.BackgroundColor == System.Windows.Media.Color.FromArgb(0, 0, 0, 0)) + { + SystemTray.BackgroundColor = System.Windows.Media.Color.FromArgb(1, 255, 255, 255); + } + } + void UpdateToolbarItems() { if (_page.ApplicationBar == null) |