コード例 #1
0
        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;
        }
コード例 #2
0
        private static void OnCandidateGameIdsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ManaZoneCardCanvas canvas = d as ManaZoneCardCanvas;

            canvas.CandidateGameIdsChanged((Collection <int>)e.NewValue, canvas._ellipseCardFrame);
        }