示例#1
0
 public NewsViewPage()
 {
     this.InitializeComponent();
     if (!String.IsNullOrEmpty(ApplicationService.Instance.Settings.BackGroundColor))
     {
         try
         {
             var brush =
                 HexToColorConverter.GetColorFromHex(ApplicationService.Instance.Settings.BackGroundColor);
             PageGrid.Background = brush;
         }
         catch (Exception ex)
         {
             Debug.WriteLine(ex.ToString());
         }
     }
 }
示例#2
0
 public OptionViewPage()
 {
     this.InitializeComponent();
     WhiteFontRButton.IsChecked = true;
     base.DataContext           = new OptionViewModel();
     if (!String.IsNullOrEmpty(ApplicationService.Instance.Settings.BackGroundColor))
     {
         try
         {
             var brush =
                 HexToColorConverter.GetColorFromHex(ApplicationService.Instance.Settings.BackGroundColor);
             PageGrid.Background = brush;
         }
         catch (Exception ex)
         {
             Debug.WriteLine(ex.ToString());
         }
     }
 }
示例#3
0
 public AudioViewPage()
 {
     this.InitializeComponent();
     DataContext = new AudioViewModel();
     if (!String.IsNullOrEmpty(ApplicationService.Instance.Settings.BackGroundColor))
     {
         try
         {
             var brush =
                 HexToColorConverter.GetColorFromHex(ApplicationService.Instance.Settings.BackGroundColor);
             PageGrid.Background = brush;
         }
         catch (Exception ex)
         {
             Debug.WriteLine(ex.ToString());
         }
     }
     //UserId = Frame.GetNavigationState();
     //((AudioViewModel) DataContext).User.Uid = UserId;
     //((AudioViewModel)DataContext).AddAudiosCommand.Execute(null);
 }