Пример #1
0
        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);
            });
        }
Пример #2
0
 public void Move(double x, double y)
 {
     Window.Move((int)x, (int)y);
     ApplicationContext.InvokeUserCode(delegate {
         EventSink.OnBoundsChanged(Bounds);
     });
 }
Пример #3
0
 protected virtual void OnBoundsChanged()
 {
     LayoutWindow();
     ApplicationContext.InvokeUserCode(delegate {
         eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds);
     });
 }
Пример #4
0
 public void Move(double x, double y)
 {
     Window.Move((int)x, (int)y);
     Toolkit.Invoke(delegate {
         EventSink.OnBoundsChanged(Bounds);
     });
 }
Пример #5
0
 protected virtual void OnBoundsChanged()
 {
     LayoutWindow();
     if (eventsEnabled.HasFlag(WindowFrameEvent.BoundsChanged))
     {
         ApplicationContext.InvokeUserCode(delegate
         {
             eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds);
         });
     }
 }
Пример #6
0
 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);
     });
 }
Пример #7
0
 void HandleDidResize(object sender, EventArgs e)
 {
     Toolkit.Invoke(delegate {
         eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds);
     });
 }
Пример #8
0
 void BoundsChangedHandler(object o, EventArgs args)
 {
     eventSink.OnBoundsChanged(Bounds);
 }
Пример #9
0
 void HandleDidResize(object sender, EventArgs e)
 {
     eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds);
 }
Пример #10
0
 void BoundsChangedHandler(object o, EventArgs args)
 {
     Toolkit.CurrentEngine.Invoke(delegate() {
         eventSink.OnBoundsChanged(Bounds);
     });
 }