private void UpdateVisualEffect() { switch (Helper.Tier) { case 1: case 2: AnimationHelper.SetSlideInFromBottom(GrpPalette, true); RectBackground.Fill = FindResource("GridBrush") as Brush; ExpanderHelper.SetShadowColor(GrpPalette, Colors.LightGray); ExpanderHelper.SetShadowColor(GrpCode, Colors.LightGray); break; } }
private void ChbShowShadow_CheckChanged(object sender, RoutedEventArgs e) { ExpanderHelper.SetShadowColor(EpdCustom, ChbShowShadow.IsChecked == true ? Colors.LightGray : (Color?)null); }