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

            AllowDrop = true;

            DataContextChanged += OnDataContextChanged;
        }
Beispiel #2
0
        public MatrixRowHeaderView()
        {
            _theme = new MatrixTheme(this);

            DataContextChanged += OnDataContextChanged;
            SizeChanged        += OnSizeChanged;
            MouseMove          += OnMouseMove;
            MouseDown          += OnMouseDown;
            MouseLeave         += OnMouseLeave;
        }
Beispiel #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;
        }
Beispiel #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;
        }