Ejemplo n.º 1
0
        public PropertyPageViewModel()
        {
            if (this.IsInDesignMode)
            {
                return;
            }
            _ListEventAggregator.GetEvent <SelectionChangeEvent>().Subscribe(SelectionChangeEventHandler);
            _ListEventAggregator.GetEvent <SelectionPropertyChangeEvent>().Subscribe(SelectionPropertyEventHandler);
            _ListEventAggregator.GetEvent <SelectionPageChangeEvent>().Subscribe(SelectionPageChangeEventHandler);

            _model = PropertyPageModel.GetInstance();

            _selectionService = ServiceLocator.Current.GetInstance <SelectionServiceProvider>();
            _ListEventAggregator.GetEvent <EnableFirePositionInRibbonEvent>().Subscribe(EnableFirePositionHandler);
        }