Esempio n. 1
0
 protected override void OnDeactivated()
 {
     if (View is DetailView && View.ObjectTypeInfo.Type == typeof(Contact))
     {
         GetCurrentLocationController getCurrentLocation = Frame.GetController <GetCurrentLocationController>();
         if (getCurrentLocation != null)
         {
             getCurrentLocation.GetCurrentLocationAction.Enabled["EnabledForContact"] = true;
         }
     }
 }
Esempio n. 2
0
        protected override void OnActivated()
        {
            base.OnActivated();
            ClearContactTasksController clearTasksController = Frame.GetController <ClearContactTasksController>();

            if (clearTasksController != null)
            {
                clearTasksController.Actions["ClearTasksAction"].Active["ByDesign"] = false;
            }
            if (View is DetailView && View.ObjectTypeInfo.Type == typeof(Contact))
            {
                GetCurrentLocationController getCurrentLocation = Frame.GetController <GetCurrentLocationController>();
                if (getCurrentLocation != null)
                {
                    getCurrentLocation.GetCurrentLocationAction.Enabled["EnabledForContact"] = false;
                }
            }
        }