public MainWindow(IContainerExtension container, IRegionManager regionManager)
        {
            InitializeComponent();

            this._container     = container;
            this._regionManager = regionManager;
        }
        /// <summary>コンストラクタ。</summary>
        /// <param name="data">アプリのデータオブジェクト(Unity からインジェクション)</param>
        /// <param name="rm">IRegionManager(Unity からインジェクション)</param>
        public NavigationTreeViewModel(WpfTestAppData data, Prism.Regions.IRegionManager rm)
        {
            this.appData       = data;
            this.regionManager = rm;

            this.rootNode = TreeViewItemCreator.Create(this.appData, this);
            var col = new System.Collections.ObjectModel.ObservableCollection <TreeViewItemViewModel>();

            col.Add(this.rootNode);
            this.TreeNodes = col.ToReadOnlyReactiveCollection()
                             .AddTo(this.disposables);

            this.SelectedItemChanged = new ReactiveCommand <System.Windows.RoutedPropertyChangedEventArgs <object> >()
                                       .AddTo(this.disposables);
            this.SelectedItemChanged.Subscribe(e => this.nodeChanged(e));

            this.Loaded = new ReactiveCommand()
                          .AddTo(this.disposables);
            this.Loaded.Subscribe(() => this.rootNode.IsSelected.Value = true);
        }
 public MainWindowViewModel(Prism.Regions.IRegionManager _rm)
 {
     this._regionManager_ = _rm;
     this.InitializeBindings();
 }