/// <summary>
        /// Initializes the <see cref="OrientationManager"/> class.
        /// </summary>
        private SystemTrayManager()
        {
            this.systemTray = new SystemTray();
            Canvas.SetZIndex(systemTray, 20000);
            this.ProgressIndicator = new ProgressIndicator(systemTray);

            var color = ((SolidColorBrush)Application.Current.Resources["ApplicationForegroundThemeBrush"]).Color;
            this.Foreground = color;
            this.ProgressIndicator.Foreground = color;
            this.Opacity = 1.0;
            this.Background = Colors.Red;
            this.IsVisible = true;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="PhoneProgressIndicator"/> class.
 /// </summary>
 public ProgressIndicator(SystemTray tray)
 {
     this.tray = tray;
 }