Пример #1
0
        /// <summary>
        /// Initializes static members of the <see cref="LogicBase"/> class.
        /// </summary>
        static LogicBase()
        {
            var dependencyResolver = IoCConfiguration.DefaultDependencyResolver;

            _viewModelFactory           = dependencyResolver.Resolve <IViewModelFactory>();
            _viewManager                = dependencyResolver.Resolve <IViewManager>();
            _dependencyPropertySelector = dependencyResolver.Resolve <IDependencyPropertySelector>();

#if !NET
            _frameworkElementLoadedManager = dependencyResolver.Resolve <IFrameworkElementLoadedManager>();
#endif
        }
Пример #2
0
        /// <summary>
        /// Initializes static members of the <see cref="LogicBase"/> class.
        /// </summary>
        static LogicBase()
        {
#if !NET
            _frameworkElementLoadedManager = ServiceLocator.Default.ResolveType<IFrameworkElementLoadedManager>();
#endif
        }
Пример #3
0
        /// <summary>
        /// Initializes static members of the <see cref="LogicBase"/> class.
        /// </summary>
        static LogicBase()
        {
            var dependencyResolver = IoCConfiguration.DefaultDependencyResolver;

            _viewModelFactory = dependencyResolver.Resolve<IViewModelFactory>();
            _viewManager = dependencyResolver.Resolve<IViewManager>();
            _dependencyPropertySelector = dependencyResolver.Resolve<IDependencyPropertySelector>();

#if !NET
            _frameworkElementLoadedManager = dependencyResolver.Resolve<IFrameworkElementLoadedManager>();
#endif
        }
Пример #4
0
        /// <summary>
        /// Initializes static members of the <see cref="LogicBase"/> class.
        /// </summary>
        static LogicBase()
        {
#if !NET
            _frameworkElementLoadedManager = ServiceLocator.Default.ResolveType <IFrameworkElementLoadedManager>();
#endif
        }