Exemplo n.º 1
0
 public void QueueExitAction(Action action)
 {
     if (action == null)
     {
         throw new ArgumentNullException("action");
     }
     toolkit.QueueExitAction(action);
 }
Exemplo n.º 2
0
 internal void Reallocate()
 {
     if (!pendingReallocation)
     {
         pendingReallocation = true;
         Toolkit.QueueExitAction(delegate {
             pendingReallocation = false;
             OnReallocate();
         });
     }
 }
Exemplo n.º 3
0
 void NotifySizeChangeToParent()
 {
     if (Parent != null)
     {
         QueueForSizeCheck(Parent);
         if (!delayedSizeNegotiationRequested)
         {
             delayedSizeNegotiationRequested = true;
             Toolkit.QueueExitAction(DelayedResizeRequest);
         }
     }
     else if (ParentWindow is Window)
     {
         resizeWindows.Add((Window)ParentWindow);
         if (!delayedSizeNegotiationRequested)
         {
             delayedSizeNegotiationRequested = true;
             Toolkit.QueueExitAction(DelayedResizeRequest);
         }
     }
 }