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()); } } }
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()); } } }
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); }