public MainWindow() { InitializeComponent(); this.DataContext = this; this.ColorScheme = BrushHelper.CreateRainbowBrush(false); this.Categories = new[] { "Asia", "Africa", "North America", "South America", "Antarctica", "Europe", "Australia" }; this.ColorScheme2 = BrushHelper.CreateSteppedGradientBrush(new[] { Colors.Yellow, Colors.Brown, Colors.Red, Colors.Green, Colors.White, Colors.Orange, Colors.Blue }, false); }
/// <summary> /// Initializes a new instance of the <see cref="SlopeTexture"/> class. /// </summary> /// <param name="gradientSteps"> /// The gradient steps. /// </param> public SlopeTexture(int gradientSteps) { if (gradientSteps > 0) { this.Brush = BrushHelper.CreateSteppedGradientBrush(GradientBrushes.BlueWhiteRed, gradientSteps); } else { this.Brush = GradientBrushes.BlueWhiteRed; } }
public SlopeTexture(LinearGradientBrush gradient, int gradientSteps) { if (gradientSteps > 0) { Brush = BrushHelper.CreateSteppedGradientBrush(gradient, gradientSteps); } else { Brush = gradient; } }
/// <summary> /// Initializes a new instance of the <see cref="SlopeDirectionTexture"/> class. /// </summary> /// <param name="gradientSteps"> /// The gradient steps. /// </param> public SlopeDirectionTexture(int gradientSteps) { if (gradientSteps > 0) { this.Brush = BrushHelper.CreateSteppedGradientBrush(GradientBrushes.Hue, gradientSteps); } else { this.Brush = GradientBrushes.Hue; } }
public ElevationTexture(int gradientSteps) { if (gradientSteps > 0) { this.Brush = BrushHelper.CreateSteppedGradientBrush(GradientBrushes.Rainbow, gradientSteps); } else { this.Brush = GradientBrushes.Rainbow; } }