/// <summary>
        /// Initializes a new instance of the <see cref="ResourceReferenceViewModel"/> class.
        /// </summary>
        public ResourceReferenceViewModel(ResourceReferenceModel model, ReferenceTypeViewModel type)
        {
            Model = model;
            CopyFromModel();

            Type = type;
            Targets.CollectionChanged += (sender, args) => NotifyOfPropertyChange(nameof(AnyReference));
        }
 public void UpdateModel(ResourceReferenceModel model, ReferenceTypeViewModel referenceType)
 {
     Model = model;
     Type  = referenceType;
     CopyFromModel();
 }