public MatrixRowHeaderItemView(MatrixViewModel matrixViewModel, MatrixTheme theme) { _matrixViewModel = matrixViewModel; _matrixViewModel.PropertyChanged += OnMatrixViewModelPropertyChanged; _theme = theme; AllowDrop = true; DataContextChanged += OnDataContextChanged; }
public MatrixRowHeaderView() { _theme = new MatrixTheme(this); DataContextChanged += OnDataContextChanged; SizeChanged += OnSizeChanged; MouseMove += OnMouseMove; MouseDown += OnMouseDown; MouseLeave += OnMouseLeave; }
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; }
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; }