a fast matrix view usercontrol for two dimensional data Internally Visual is used directly for performance
Inheritance: System.Windows.Controls.UserControl
 public MatrixViewCellAutomationPeer(MatrixView matrixView, int row, int column) : base(matrixView)
 {
     Row        = row;
     Column     = column;
     RowSpan    = 1;
     ColumnSpan = 1;
 }
Exemple #2
0
 public MatrixViewAutomationPeer(MatrixView owner) : base(owner)
 {
     _owner         = owner;
     _headers       = new Dictionary <int, WeakReference <MatrixViewHeaderAutomationPeer> >();
     _cells         = new Dictionary <(int row, int column), WeakReference <MatrixViewCellAutomationPeer> >();
     ScrollProvider = new MatrixViewAutomationPeerScrollProvider(owner);
     Update(true);
 }
        public VisualGridScroller(MatrixView owner) {
            _ui = TaskScheduler.FromCurrentSynchronizationContext();

            _owner = owner;
            Points = owner.Points;

            _cancelSource = new CancellationTokenSource();
            _scrollCommands = new BlockingCollection<ScrollCommand>();

            // silence every exception and don't wait
            _handlerTask = ScrollCommandsHandler(_cancelSource.Token).SilenceException<Exception>();
        }
Exemple #4
0
        public VisualGridScroller(MatrixView owner) {
            _ui = TaskScheduler.FromCurrentSynchronizationContext();

            _owner = owner;
            if (_owner.ColumnHeader != null) {
                _owner.ColumnHeader.SortOrderChanged += OnSortOrderChanged;
            }
            _cancelSource = new CancellationTokenSource();
            _scrollCommands = new BlockingCollection<ScrollCommand>();

            // silence every exception and don't wait
            _handlerTask = ScrollCommandsHandler(_cancelSource.Token).SilenceException<Exception>();
        }
Exemple #5
0
        public VisualGridScroller(MatrixView owner)
        {
            _owner = owner;
            if (_owner.ColumnHeader != null)
            {
                _owner.ColumnHeader.SortOrderChanged += OnSortOrderChanged;
            }
            _cancelSource   = new CancellationTokenSource();
            _scrollCommands = new BufferBlock <ScrollCommand>();

            // silence every exception and don't wait
            _handlerTask = ScrollCommandsHandler(_cancelSource.Token).SilenceException <Exception>();
        }
Exemple #6
0
        public VisualGridScroller(MatrixView owner)
        {
            _ui = TaskScheduler.FromCurrentSynchronizationContext();

            _owner = owner;
            Points = owner.Points;

            _cancelSource   = new CancellationTokenSource();
            _scrollCommands = new BlockingCollection <ScrollCommand>();

            // silence every exception and don't wait
            _handlerTask = ScrollCommandsHandler(_cancelSource.Token).SilenceException <Exception>();
        }
Exemple #7
0
        public VisualGridScroller(MatrixView owner)
        {
            _ui = TaskScheduler.FromCurrentSynchronizationContext();

            _owner = owner;
            if (_owner.ColumnHeader != null)
            {
                _owner.ColumnHeader.SortOrderChanged += OnSortOrderChanged;
            }
            _cancelSource   = new CancellationTokenSource();
            _scrollCommands = new BlockingCollection <ScrollCommand>();

            // silence every exception and don't wait
            _handlerTask = ScrollCommandsHandler(_cancelSource.Token).SilenceException <Exception>();
        }
 public MatrixViewHeaderAutomationPeer(MatrixView matrixView, int column) : base(matrixView) {
     Column = column;
 }
 protected MatrixViewItemAutomationPeer(MatrixView owner)
 {
     Owner = owner;
 }