Catel.MVVM.Providers.UserControlLogic.UserControlLogic C# (CSharp) Method

UserControlLogic() static private method

Initializes static members of the UserControlLogic class.
static private UserControlLogic ( ) : System
return System
        static UserControlLogic()
        {
            ApiCop.RegisterRule(new UnusedFeatureApiCopRule("UserControlLogic.InfoBarMessageControl", "The InfoBarMessageControl is not found in the visual tree. This will have a negative impact on performance. Consider setting the SkipSearchingForInfoBarMessageControl or DefaultSkipSearchingForInfoBarMessageControlValue to true.", ApiCopRuleLevel.Error,
                "https://catelproject.atlassian.net/wiki/display/CTL/Performance+considerations"));

            ApiCop.RegisterRule(new UnusedFeatureApiCopRule("UserControlLogic.CreateWarningAndErrorValidator", "The InfoBarMessageControl is not found in the visual tree. Only use this feature in combination with the InfoBarMessageControl or a customized class which uses the WarningAndErrorValidator. Consider setting the CreateWarningAndErrorValidatorForViewModel or DefaultCreateWarningAndErrorValidatorForViewModelValue to false.", ApiCopRuleLevel.Error,
                "https://catelproject.atlassian.net/wiki/display/CTL/Performance+considerations"));

            ApiCop.RegisterRule(new UnusedFeatureApiCopRule("UserControlLogic.SupportParentViewModelContainers", "No parent IViewModelContainer is found in the visual tree. Only use this feature when there are parent IViewModelContainer instances. Consider setting the SupportParentViewModelContainers to false.", ApiCopRuleLevel.Error,
                "https://catelproject.atlassian.net/wiki/display/CTL/Performance+considerations"));

            DefaultSupportParentViewModelContainersValue = true;
            DefaultUnloadBehaviorValue = UnloadBehavior.SaveAndCloseViewModel;

#if !XAMARIN
            DefaultTransferStylesAndTransitionsToViewModelGridValue = false;
#endif

#if NET || SL5
            DefaultCreateWarningAndErrorValidatorForViewModelValue = true;
#endif
        }

Same methods

UserControlLogic::UserControlLogic ( IView targetView, Type viewModelType = null, IViewModel viewModel = null ) : System