summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2016-03-29 19:39:45 (GMT)
committerkingces95 <kingces95@users.noreply.github.com>2016-03-29 19:39:45 (GMT)
commitf40cf99d1ab355bfc46640cb1a56894bcf5878de (patch)
treed248fd0a8c9819b452c5f7dd327e182eb2e95a84 /Xamarin.Forms.Platform.WP8
parent57b0f3ab3080928d2ddd2da58fc84ef7023c3651 (diff)
parent2f3ed4b027eb47439ba83d32ccbfe8bcee212b98 (diff)
downloadxamarin-forms-f40cf99d1ab355bfc46640cb1a56894bcf5878de.zip
xamarin-forms-f40cf99d1ab355bfc46640cb1a56894bcf5878de.tar.gz
xamarin-forms-f40cf99d1ab355bfc46640cb1a56894bcf5878de.tar.bz2
Merge pull request #23 from xamarin/fix-bugzilla25234
[WP8] CustomMessageBox dismissal no longer causes black SystemTray
Diffstat (limited to 'Xamarin.Forms.Platform.WP8')
-rw-r--r--Xamarin.Forms.Platform.WP8/Platform.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WP8/Platform.cs b/Xamarin.Forms.Platform.WP8/Platform.cs
index 363c6b8..4626542 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)