Пример #1
0
 /// <summary>
 /// Draws the children of the panel with a ZOrder greater than 0.
 /// These views will be drawn above the border elements of this view.
 /// </summary>
 /// <param name="CurrentBatch"></param>
 /// <param name="BoundingBox">If the subview does not intersect this area, it won't be drawn.</param>
 protected virtual void DrawForegroundChildren(SpriteBatch CurrentBatch, Rectangle BoundingBox)
 {
     foreach (UIView Subview in Children)
     {
         if (Subview.ZOrder > 0)
         {
             Subview.Draw(CurrentBatch, BoundingBox);
         }
     }
 }