Exemplo n.º 1
0
        public MatrixRowHeaderItemView(MatrixViewModel matrixViewModel, MatrixTheme theme)
        {
            _matrixViewModel = matrixViewModel;
            _matrixViewModel.PropertyChanged += OnMatrixViewModelPropertyChanged;
            _theme = theme;

            AllowDrop = true;

            DataContextChanged += OnDataContextChanged;
        }
Exemplo n.º 2
0
        public MatrixRowHeaderView()
        {
            _theme = new MatrixTheme(this);

            DataContextChanged += OnDataContextChanged;
            SizeChanged        += OnSizeChanged;
            MouseMove          += OnMouseMove;
            MouseDown          += OnMouseDown;
            MouseLeave         += OnMouseLeave;
        }
Exemplo n.º 3
0
        public MatrixColumnHeaderView()
        {
            _theme         = new MatrixTheme(this);
            _rect          = new Rect(new Size(_theme.MatrixCellSize, _theme.MatrixHeaderHeight));
            _hoveredColumn = null;
            _pitch         = _theme.MatrixCellSize + _theme.SpacingWidth;
            _offset        = _theme.SpacingWidth / 2;

            DataContextChanged += OnDataContextChanged;
            MouseMove          += OnMouseMove;
            MouseDown          += OnMouseDown;
            MouseLeave         += OnMouseLeave;
        }
Exemplo n.º 4
0
        public MatrixIndicatorView()
        {
            _theme      = new MatrixTheme(this);
            _rect       = new Rect(new Size(5.0, _theme.MatrixCellSize));
            _hoveredRow = null;
            _pitch      = _theme.MatrixCellSize + _theme.SpacingWidth;
            _offset     = _theme.SpacingWidth / 2;

            DataContextChanged += OnDataContextChanged;
            MouseMove          += OnMouseMove;
            MouseDown          += OnMouseDown;
            MouseLeave         += OnMouseLeave;
        }