public void Move(double x, double y) { var value = ToNonClientRect(new Rectangle(x, y, 1, 1)); window.Top = value.Top; window.Left = value.Left; Context.InvokeUserCode(delegate { eventSink.OnBoundsChanged(Bounds); }); }
public void Move(double x, double y) { Window.Move((int)x, (int)y); ApplicationContext.InvokeUserCode(delegate { EventSink.OnBoundsChanged(Bounds); }); }
protected virtual void OnBoundsChanged() { LayoutWindow(); ApplicationContext.InvokeUserCode(delegate { eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds); }); }
public void Move(double x, double y) { Window.Move((int)x, (int)y); Toolkit.Invoke(delegate { EventSink.OnBoundsChanged(Bounds); }); }
protected virtual void OnBoundsChanged() { LayoutWindow(); if (eventsEnabled.HasFlag(WindowFrameEvent.BoundsChanged)) { ApplicationContext.InvokeUserCode(delegate { eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds); }); } }
public void Move(double x, double y) { #if !XWT_GTK3 // HACK: some WMs will show the window at a default location and move it // to its final location after the window has already been shown, // causing the window to flicker in some cases. // Setting an initial Allocation often helps to show the window // at the desired location initially (but not always). if (!Window.Visible) { Window.Allocation = new Gdk.Rectangle((int)x, (int)y, Window.Allocation.Width, Window.Allocation.Height); } #endif Window.Move((int)x, (int)y); ApplicationContext.InvokeUserCode(delegate { EventSink.OnBoundsChanged(Bounds); }); }
void HandleDidResize(object sender, EventArgs e) { Toolkit.Invoke(delegate { eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds); }); }
void BoundsChangedHandler(object o, EventArgs args) { eventSink.OnBoundsChanged(Bounds); }
void HandleDidResize(object sender, EventArgs e) { eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds); }
void BoundsChangedHandler(object o, EventArgs args) { Toolkit.CurrentEngine.Invoke(delegate() { eventSink.OnBoundsChanged(Bounds); }); }