public void SetActiveButton(HamburgerButtons val) { ResetActiveButton(); TxtForegroundBrushes[val.ToString()] = Application.Current.Resources["SystemControlBackgroundAccentBrush"] as Brush; TxtBorderBrushThicknesses[val.ToString()] = new Thickness(3, 0, 0, 0); RaisePropertyChanged(() => TxtForegroundBrushes); RaisePropertyChanged(() => TxtBorderBrushThicknesses); }
public void SetActiveButton(HamburgerButtons val) { ResetActiveButton(); if (val != HamburgerButtons.TopAnime) { ResetTopCategoryButtons(); RaisePropertyChanged(() => TopCategoriesForegorundBrushes); } if (TxtForegroundBrushes.ContainsKey(val.ToString())) { TxtForegroundBrushes[val.ToString()] = Application.Current.Resources["SystemControlBackgroundAccentBrush"] as Brush; TxtBorderBrushThicknesses[val.ToString()] = new Thickness(4, 0, 0, 0); } RaisePropertyChanged(() => TxtForegroundBrushes); RaisePropertyChanged(() => TxtBorderBrushThicknesses); }
public void SetActiveButton(HamburgerButtons val) { ResetActiveButton(); if (val != HamburgerButtons.TopAnime) { ResetTopCategoryButtons(); RaisePropertyChanged(() => TopCategoriesForegorundBrushes); } TxtForegroundBrushes[val.ToString()] = Application.Current.Resources["SystemControlBackgroundAccentBrush"] as Brush; TxtBorderBrushThicknesses[val.ToString()] = new Thickness(4, 0, 0, 0); RaisePropertyChanged(() => TxtForegroundBrushes); RaisePropertyChanged(() => TxtBorderBrushThicknesses); }