コード例 #1
0
 public async static void ToogleToolbar(UserControl viewToToggle)
 {
     foreach (var child in PopupService._rootControl.Children)
     {
         if (child.GetType().Name == "PopupView")
         {
             PopupView pv = (PopupView)child;
             if (pv.MainContent.GetType().Name == viewToToggle.GetType().Name)
             {
                 pv.ToogleToolbar();
                 return;
             }
             ;
         }
     }
 }