private void SetStarStyle(int starIndex, StarStyleEnum style) { RegularPolygon star = (RegularPolygon)this.FindName("Star" + starIndex.ToString()); Color fillColor = ColorProvider.CustomBlack(); Color strokeColor = ColorProvider.StrokeActive(); double strokeThickness = 1.5; switch (style) { case StarStyleEnum.Active: fillColor = ColorProvider.CustomBlack();; strokeColor = ColorProvider.StrokeActive(); break; case StarStyleEnum.Solved: fillColor = ColorProvider.CustomGreen(); strokeColor = ColorProvider.StrokeActive(); break; case StarStyleEnum.Inactive: fillColor = ColorProvider.CustomBlack();; strokeColor = ColorProvider.StrokeInactive(); strokeThickness = 2; break; } star.Fill = new SolidColorBrush(fillColor); star.Stroke = new SolidColorBrush(strokeColor); star.StrokeThickness = strokeThickness; }