Пример #1
0
        private Shape[] GetFullRowShapes(bool treeActive)
        {
            if (_FullRowShapes == null)
            {
                _FullRowShapes = new Shape[1];
                _FullRowShapes[0] = new RectangleShape();
            }
            RectangleShape shape = (RectangleShape)_FullRowShapes[0];
            SelectionColorTable colors = treeActive ? _SelectionColors.FullRowSelect : _SelectionColors.FullRowSelectInactive;
            shape.Fill = colors.Fill;
            shape.Border = colors.Border;

            return _FullRowShapes;
        }
Пример #2
0
        private Shape[] GetHighlightCellsShapes(bool treeActive)
        {
            if (_HighlightCellsShapes == null)
            {
                _HighlightCellsShapes = new Shape[1];
                RectangleShape rectShape = new RectangleShape();
                rectShape.CornerRadius = new CornerRadius(2);
                RectangleShape inner = new RectangleShape();
                //inner.CornerRadius = new CornerRadius(2);
                rectShape.Content = inner;
                _HighlightCellsShapes[0] = rectShape;
            }

            SelectionColorTable colorTable = treeActive ? _SelectionColors.HighlightCells : _SelectionColors.HighlightCellsInactive;
            RectangleShape shape = (RectangleShape)_HighlightCellsShapes[0];
            shape.Fill = colorTable.Fill;
            shape.Border = colorTable.Border;
            shape = (RectangleShape)shape.Content;
            shape.Border = colorTable.InnerBorder;

            return _HighlightCellsShapes;
        }
Пример #3
0
        private Shape[] GetHotTrackingShapes()
        {
            if (_HotTrackingShapes == null)
            {
                _HotTrackingShapes = new Shape[1];
                RectangleShape rectShape = new RectangleShape();
                rectShape.CornerRadius = new CornerRadius(2);
                RectangleShape inner = new RectangleShape();
                //inner.CornerRadius = new CornerRadius(2);
                rectShape.Content = inner;
                _HotTrackingShapes[0] = rectShape;
            }

            SelectionColorTable colorTable = _SelectionColors.NodeHotTracking;
            RectangleShape shape = (RectangleShape)_HotTrackingShapes[0];
            shape.Fill = colorTable.Fill;
            shape.Border = colorTable.Border;
            shape = (RectangleShape)shape.Content;
            shape.Border = colorTable.InnerBorder;

            return _HotTrackingShapes;
        }