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 }; }
public override void SetClientSize(Uno.Int2 size) { _view.Bounds = new CGRect(_view.Bounds.Location, new CGSize(size.X, size.Y)); }
public override void SetClientSize(Uno.Int2 size) { // do nothing }