示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandMessage"/> class.
 /// </summary>
 public CommandMessage()
 {
     if (!PresentationFrameworkConfiguration.IsInDesignMode)
     {
         factory = IoC.Get <IViewModelDescriptionFactory>();
     }
 }
示例#2
0
 /// <summary>
 /// Initializes property host.
 /// </summary>
 /// <param name="controller">The controller.</param>
 /// <param name="viewModelDescriptionFactory"></param>
 /// <param name="serviceLocator">The service locator.</param>
 public static void Initialize(IRoutedMessageController controller, IViewModelDescriptionFactory viewModelDescriptionFactory,
                               IServiceLocator serviceLocator)
 {
     Action.controller = controller;
     Action.viewModelDescriptionFactory = viewModelDescriptionFactory;
     Action.serviceLocator = serviceLocator;
 }
示例#3
0
 /// <summary>
 /// Initializes property host.
 /// </summary>
 /// <param name="controller">The controller.</param>
 /// <param name="viewModelDescriptionFactory"></param>
 /// <param name="serviceLocator">The service locator.</param>
 public static void Initialize(IRoutedMessageController controller, IViewModelDescriptionFactory viewModelDescriptionFactory,
                               IServiceLocator serviceLocator)
 {
     Action.controller = controller;
     Action.viewModelDescriptionFactory = viewModelDescriptionFactory;
     Action.serviceLocator = serviceLocator;
 }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CommandMessage"/> class.
        /// </summary>
        public CommandMessage()
        {
            if (!PresentationFrameworkConfiguration.IsInDesignMode)
            {
                factory = IoC.Get <IViewModelDescriptionFactory>();
            }

            SetValue(ParametersProperty, new FreezableCollection <Parameter>());
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CommandMessage"/> class.
        /// </summary>
        public CommandMessage()
        {
            if(!PresentationFrameworkConfiguration.IsInDesignMode)
                factory = IoC.Get<IViewModelDescriptionFactory>();

            SetValue(ParametersProperty, new FreezableCollection<Parameter>());
        }
        public NISViewModelBinder(IViewModelDescriptionFactory descriptionFactory)
            : base(descriptionFactory)
        {

        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandMessage"/> class.
 /// </summary>
 public CommandMessage()
 {
     if(!PresentationFrameworkConfiguration.IsInDesignMode)
         factory = IoC.Get<IViewModelDescriptionFactory>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultViewModelBinder"/> class.
 /// </summary>
 /// <param name="viewModelDescriptionFactory"></param>
 public DefaultViewModelBinder(IViewModelDescriptionFactory viewModelDescriptionFactory)
 {
     this.viewModelDescriptionFactory = viewModelDescriptionFactory;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultViewModelBinder"/> class.
 /// </summary>
 /// <param name="viewModelDescriptionFactory"></param>
 public DefaultViewModelBinder(IViewModelDescriptionFactory viewModelDescriptionFactory)
 {
     this.viewModelDescriptionFactory = viewModelDescriptionFactory;
 }
示例#10
0
 /// <summary>
 /// Initializes the specified message binder.
 /// </summary>
 /// <param name="messageBinder">The message binder.</param>
 /// <param name="viewModelDescriptionFactory">The view model description factory.</param>
 /// <param name="validator">The validator.</param>
 public static void Initialize(IMessageBinder messageBinder, IViewModelDescriptionFactory viewModelDescriptionFactory, IValidator validator)
 {
     MessageBinder = messageBinder;
     ViewModelDescriptionFactory = viewModelDescriptionFactory;
     Validator = validator;
 }
示例#11
0
 /// <summary>
 /// Initializes the specified message binder.
 /// </summary>
 /// <param name="messageBinder">The message binder.</param>
 /// <param name="viewModelDescriptionFactory">The view model description factory.</param>
 /// <param name="validator">The validator.</param>
 public static void Initialize(IMessageBinder messageBinder, IViewModelDescriptionFactory viewModelDescriptionFactory, IValidator validator)
 {
     MessageBinder = messageBinder;
     ViewModelDescriptionFactory = viewModelDescriptionFactory;
     Validator = validator;
 }