public ConspEditorFastMainView(IMaterialManager materialManager,
            IParticlesManager particlesManager, IEventAggregator eventAggregator, ConspEditorFastMainViewModel model, IBlockManager blockManager, IUnityContainer container, ISettingsService settingsService)
        {
            _materialManager = materialManager;
            _particlesManager = particlesManager;
            _eventAggregator = eventAggregator;
            _blockManager = blockManager;
            _container = container;
            _settingsService = settingsService;
            InitializeComponent();
            DataContext = model;
            textEditor.VerticalScrollBarVisibility = ScrollBarVisibility.Visible;
            textEditor.Options.InheritWordWrapIndentation = false;
            _eventAggregator.GetEvent<MaterialUpdatedEvent>().Subscribe(MaterialUpdated);

            CreateMenu();
        }
 public ColorizeAvalonEdit(TextModel model, ConspEditorFastMainViewModel vm)
 {
     _model = model;
     _vm = vm;
 }