Пример #1
0
 public void QueueExitAction(Action action)
 {
     if (action == null)
     {
         throw new ArgumentNullException("action");
     }
     toolkit.QueueExitAction(action);
 }
Пример #2
0
 internal void Reallocate()
 {
     if (!pendingReallocation)
     {
         pendingReallocation = true;
         Toolkit.QueueExitAction(delegate {
             pendingReallocation = false;
             OnReallocate();
         });
     }
 }
Пример #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);
         }
     }
 }