Ejemplo n.º 1
0
        public void Initialize()
        {
            _dpi        = InternalGetDensity();
            _clientSize = InternalGetClientSize();

            _view.Resize += (object s, EventArgs a) =>
            {
                _clientSize = InternalGetClientSize();
                Bootstrapper.OnWindowSizeChanged(this);
            };

            _view.Window.DidChangeScreen += (object s, EventArgs a) =>
            {
                _dpi = InternalGetDensity();
                //_view.SwapBuffers(); //Update();
                Bootstrapper.OnWindowSizeChanged(this); // it's a hack. but everything is a hack around here.
                _view.Size = new Size(13, 37);          // omg, this was the only way i made the window not flicker after being moved to a new screen.. no idea why it works, also, it doesnt seem to affect the actual view size :p
            };
        }
Ejemplo n.º 2
0
 public override void SetClientSize(Uno.Int2 size)
 {
     _view.Bounds = new CGRect(_view.Bounds.Location, new CGSize(size.X, size.Y));
 }
Ejemplo n.º 3
0
 public override void SetClientSize(Uno.Int2 size)
 {
     // do nothing
 }