Exemplo n.º 1
0
        protected override void OnUpdate()
        {
            NativeControl.HasRenderLoop     = HasRenderLoop;
            NativeControl.EnableTouchEvents = EnableTouchEvents;

            if (PaintSurfaceAction != null)
            {
                NativeControl.PaintSurface += NativeControl_PaintSurface;
                NativeControl.InvalidateSurface();
            }
            if (TouchAction != null)
            {
                NativeControl.Touch += NativeControl_Touch;
            }

            base.OnUpdate();
        }
Exemplo n.º 2
0
        protected override void OnUpdate()
        {
            NativeControl.IgnorePixelScaling = IgnorePixelScaling;
            NativeControl.EnableTouchEvents  = EnableTouchEvents;

            if (PaintSurfaceAction != null)
            {
                NativeControl.PaintSurface += NativeControl_PaintSurface;
                NativeControl.InvalidateSurface();
            }
            if (TouchAction != null)
            {
                NativeControl.Touch += NativeControl_Touch;
            }

            base.OnUpdate();
        }