コード例 #1
0
        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);
            }
        }
コード例 #2
0
 void viewport_VScrollRequest(object sender, ScrollSurfaceRequestEventArgs e)
 {
     if (VScrollRequest != null)
     {
         VScrollRequest.Invoke(sender, e);
     }
 }
コード例 #3
0
ファイル: CanvasViewport.cs プロジェクト: brezza92/PixelFarm
        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);
            }
        }
コード例 #4
0
        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);
            }
        }
コード例 #5
0
 void viewport_VScrollRequest(object sender, ScrollSurfaceRequestEventArgs e)
 {
     if (VScrollRequest != null)
     {
         VScrollRequest.Invoke(sender, e);
     }
 }