예제 #1
0
 private static void OnPageChangeRecursive(Control ctl, int oldPageIndex, int newPageIndex)
 {
     if (ctl.HasControls())
     {
         foreach (Control child in ctl.Controls)
         {
             MobileControl mobileCtl = child as MobileControl;
             if (mobileCtl != null)
             {
                 mobileCtl.OnPageChange(oldPageIndex, newPageIndex);
             }
             else
             {
                 OnPageChangeRecursive(child, oldPageIndex, newPageIndex);
             }
         }
     }
 }