Пример #1
0
        // ** ctor

        /// <summary>
        /// Initializes a new instance of a <see cref="ChartingGrid"/>.
        /// </summary>
        public ChartingGrid()
        {
            // make charts zero-based
            ZeroBased = true;

            // default colors for chart bars
            FillPositive = new SolidColorBrush(Color.FromArgb(0xff, 0, 0, 0xcf));
            FillNegative = new SolidColorBrush(Color.FromArgb(0xff, 0xcf, 0, 0));

            // hook up custom cell factory
            CellFactory = new ChartingCellFactory();
        }
Пример #2
0
        // ** ctor

        /// <summary>
        /// Initializes a new instance of a <see cref="ChartingGrid"/>.
        /// </summary>
        public ChartingGrid()
        {
            // make charts zero-based
            ZeroBased = true;

            // default colors for chart bars
            FillPositive = new SolidColorBrush(Color.FromArgb(0xff, 0, 0, 0xcf));
            FillNegative = new SolidColorBrush(Color.FromArgb(0xff, 0xcf, 0, 0));

            // hook up custom cell factory
            CellFactory = new ChartingCellFactory();
        }