Beispiel #1
0
        protected ViewModelLocatorBase()
        {
            DefaultRegistration.EnsureRegistered();
            _designModeChecker = Resolve <IDesignModeChecker>();

            CallFirst();
            if (_designModeChecker.IsInDesignMode())
            {
                CallOnlyInDesigntime();
            }
            else
            {
                CallOnlyInRuntime();
            }
            CallLast();
        }
 public static bool IsInDesignMode()
 {
     return(_designModeChecker.IsInDesignMode());
 }