protected WindowViewModelBase([NotNull] IWindowContentViewModel content) { Content = content ?? throw new ArgumentNullException(nameof(content)); if (content is IWindowSetter setter) { setter.Set(this); } if (content is IConfigureWindow configure) { configure.Configure(this); } }
/// <inheritdoc /> public DefaultWindowViewModel([NotNull] IWindowContentViewModel content) : base(content) { }