private static void OnCivilizationsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Brush brush = GetBrushForCivilizations(e.NewValue as ReadOnlyCivilizationCollection); ManaZoneCardCanvas manaZoneCardCanvas = d as ManaZoneCardCanvas; manaZoneCardCanvas._ellipseColorFrame.Fill = brush; manaZoneCardCanvas._ellipseManaNumberInnerFrame.Fill = brush; }
private static void OnCandidateGameIdsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ManaZoneCardCanvas canvas = d as ManaZoneCardCanvas; canvas.CandidateGameIdsChanged((Collection <int>)e.NewValue, canvas._ellipseCardFrame); }