public void EvaluateScrollBar(out ScrollSurfaceRequestEventArgs hScrollSupportEventArgs, out ScrollSurfaceRequestEventArgs vScrollSupportEventArgs) { hScrollSupportEventArgs = null; vScrollSupportEventArgs = null; v_largeChange = viewportHeight; v_smallChange = v_largeChange / 4; h_largeChange = viewportWidth; h_smallChange = h_largeChange / 4; if (rootGraphics.Height <= viewportHeight) { vScrollSupportEventArgs = new ScrollSurfaceRequestEventArgs(false); } else { vScrollSupportEventArgs = new ScrollSurfaceRequestEventArgs(true); } if (rootGraphics.Width <= viewportWidth) { hScrollSupportEventArgs = new ScrollSurfaceRequestEventArgs(false); } else { hScrollSupportEventArgs = new ScrollSurfaceRequestEventArgs(true); } }
void viewport_VScrollRequest(object sender, ScrollSurfaceRequestEventArgs e) { if (VScrollRequest != null) { VScrollRequest.Invoke(sender, e); } }
public void EvaluateScrollBar(out ScrollSurfaceRequestEventArgs hScrollSupportEventArgs, out ScrollSurfaceRequestEventArgs vScrollSupportEventArgs) { hScrollSupportEventArgs = null; vScrollSupportEventArgs = null; _v_largeChange = _viewportHeight; _v_smallChange = _v_largeChange / 4; _h_largeChange = _viewportWidth; _h_smallChange = _h_largeChange / 4; if (_rootgfx.Height <= _viewportHeight) { vScrollSupportEventArgs = new ScrollSurfaceRequestEventArgs(false); } else { vScrollSupportEventArgs = new ScrollSurfaceRequestEventArgs(true); } if (_rootgfx.Width <= _viewportWidth) { hScrollSupportEventArgs = new ScrollSurfaceRequestEventArgs(false); } else { hScrollSupportEventArgs = new ScrollSurfaceRequestEventArgs(true); } }