void viewport_VScrollRequest(object sender, ScrollSurfaceRequestEventArgs e) { if (VScrollRequest != null) { VScrollRequest.Invoke(sender, e); } }
protected void RaiseScrollChangedEvents(bool needVeritcal, bool needHorizontal) { if (this.HasVScrollChanged) { VScrollRequest.Invoke(this, new ScrollSurfaceRequestEventArgs(needVeritcal)); } if (this.HasHScrollChanged) { HScrollRequest.Invoke(this, new ScrollSurfaceRequestEventArgs(needHorizontal)); } }