public ScrollCommand(GridUpdateType code, double offset, ThumbTrack thumbtrack) { Debug.Assert(code == GridUpdateType.SetHorizontalOffset || code == GridUpdateType.SetVerticalOffset); UpdateType = code; Param = new Tuple<double, ThumbTrack>(offset, thumbtrack); }
public ScrollCommand(GridUpdateType code, double offset, ThumbTrack thumbtrack) { Debug.Assert(code == GridUpdateType.SetHorizontalOffset || code == GridUpdateType.SetVerticalOffset); UpdateType = code; Param = new Tuple <double, ThumbTrack>(offset, thumbtrack); }
internal void EnqueueCommand(GridUpdateType code, double offset, ThumbTrack track) { _scrollCommands.Add(new ScrollCommand(code, offset, track)); }