///<summary> /// Initializes a new instance of <see cref="ValidationModel"/>. ///</summary> ///<param name="lookup">The element loookup service to use for monitoring the addition and removal of <see cref="ElementViewModel"/> items.</param> public ValidationModel(ElementLookup lookup) { this.lookup = lookup; this.navigateValidationResultCommand = new NavigateValidationResultCommand(this); ResetCollection(); lookup.CollectionChanged += ElementsChanged; }