private void v(bool isp) { if (isp) { bk.Visibility = Visibility.Visible; MusicName.SetResourceReference(ForegroundProperty, "ThemeColor"); SingerName.SetResourceReference(ForegroundProperty, "ThemeColor"); } else { bk.Visibility = Visibility.Collapsed; MusicName.SetResourceReference(ForegroundProperty, "PlayDLPage_Font_Most"); SingerName.SetResourceReference(ForegroundProperty, "PlayDLPage_Font_Low"); } PD.LastPD = this; }
public SingerPage(SingerPageData spd, MainWindow m) { InitializeComponent(); Data = spd; mw = m; if (!spd.HasBigPic) { (Resources["mSingerTX"] as Storyboard).Begin(); DHBtns.Background = new SolidColorBrush(Colors.Transparent); SingerName.SetResourceReference(ForegroundProperty, "ResuColorBrush"); FansCount.SetResourceReference(ForegroundProperty, "PlayDLPage_Font_Low"); foreach (BottomTick bt in DHBtns.Children) { bt.HasBg = false; } } }