Ejemplo n.º 1
0
        public Brush GetAreaCurveFill(AreaCurve item, string side)
        {
            var lookupKeys = new[]
            {
                $"FillBrush.Curve.{item.ChartType}.{item.CurveName}.{side}",
                $"FillBrush.Curve.{item.ChartType}.{side}",
                $"FillBrush.Curve.{item.ChartType}.{item.CurveName}",
                $"FillBrush.Curve.{item.CurveName}",
                $"FillBrush.Curve.{item.ChartType}",
                "FillBrush.Curve"
            };

            return(GetFromLookup <Brush>(lookupKeys) ?? new SolidColorBrush(Colors.Yellow));
        }
Ejemplo n.º 2
0
        public Brush GetAreaCurveBrush(AreaCurve item, string side)
        {
            var lookupKeys = new[]
            {
                $"StrokeBrush.Curve.{item.ChartType}.{item.CurveName}.{side}",
                $"StrokeBrush.Curve.{item.ChartType}.{side}",
                $"StrokeBrush.Curve.{item.ChartType}.{item.CurveName}",
                $"StrokeBrush.Curve.{item.CurveName}",
                $"StrokeBrush.Curve.{item.ChartType}",
                "StrokeBrush.Curve"
            };

            return(GetFromLookup <Brush>(lookupKeys) ?? new SolidColorBrush(Colors.Black));
        }