Esempio n. 1
0
        public InformationWindowViewModel(MainWindowViewModelBase owner) : this(false)
        {
            // 別のメイン ウィンドウがいて、その分割ウィンドウとして表示されるケース
            // メイン ウィンドウ側の Content と同じものを表示する

            // ReSharper disable once DoNotCallOverridableMethodsInConstructor
            owner.Subscribe(nameof(this.Content), () => this.Content = owner.Content).AddTo(this);
        }
		public InformationWindowViewModel(MainWindowViewModelBase owner) : this(false)
		{
			// 別のメイン ウィンドウがいて、その分割ウィンドウとして表示されるケース
			// メイン ウィンドウ側の Content と同じものを表示する

			// ReSharper disable once DoNotCallOverridableMethodsInConstructor
			owner.Subscribe(nameof(this.Content), () => this.Content = owner.Content).AddTo(this);
		}