GridSourceMirror
StockSharp.Xaml
Mirrors an external (MVVM) collection into a grid's internal thread-safe display buffer, so a rich grid can be bound to a plain view-model collection through its dual-mode Source dependency property without losing the grid's UI-thread marshalling and capping. The high-performance alternative is to feed the grid's buffer collection directly.
Methods
Rebind``1(NotifyCollectionChangedEventHandler, IEnumerable<T>, IEnumerable<T>, IListEx<T>)
Detach the previous source, reset the target buffer, then seed it from and start tracking the new source.
- current
- The handler currently attached to the old source (or ).
- oldSource
- The previously bound source.
- newSource
- The newly bound source.
- target
- The grid's internal buffer to mirror into.
Returns: The handler attached to (or ), to pass back on the next rebind.