Esempio n. 1
0
 /// <summary>
 /// 清除底层页面
 /// </summary>
 /// <param name="widget">指定Widget</param>
 public void RemoveBottomPanel(MWidget widget)
 {
     if (widget != null)
     {
         var exist = bottomPanel.Children.Contains(widget);
         if (exist)
         {
             bottomPanel.Children.Remove(widget);
         }
     }
     else
     {
         bottomPanel.Children.Clear();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 清除上层页面
 /// </summary>
 /// <param name="widget">指定Widget</param>
 public void RemoveTopPanel(MWidget widget = null)
 {
     if (widget != null)
     {
         var exist = topPanel.Children.Contains(widget);
         if (exist)
         {
             topPanel.Children.Remove(widget);
         }
     }
     else
     {
         topPanel.Children.Clear();
     }
 }
Esempio n. 3
0
 /// <summary>
 /// 添加底层页面
 /// </summary>
 /// <param name="widget">widget</param>
 public void AddAfterContainer(MWidget widget)
 {
     bottomPanel.Children.Add(widget);
 }
Esempio n. 4
0
 /// <summary>
 /// 添加上层页面
 /// </summary>
 /// <param name="widget">widget</param>
 public void AddBeforeContainer(MWidget widget)
 {
     topPanel.Children.Add(widget);
 }