using System; using System.Windows; namespace Caliburn.Composition { public class InvalidProxy : IComposite { public object Target { get { throw new NotSupportedException("Composition is not supported for " + GetType().FullName + "."); } set { throw new NotSupportedException("Composition is not supported for " + GetType().FullName + "."); } } public int ComponentCount { get { throw new NotSupportedException("Composition is not supported for " + GetType().FullName + "."); } } public void SetVisiblity(Visibility visibility) { throw new NotSupportedException("Composition is not supported for " + GetType().FullName + "."); } public void Add(object element) { throw new NotSupportedException("Composition is not supported for " + GetType().FullName + "."); } public void Insert(int index, object element) { throw new NotSupportedException("Composition is not supported for " + GetType().FullName + "."); } public void Remove(object element) { throw new NotSupportedException("Composition is not supported for " + GetType().FullName + "."); } public IComposite GetNode(string path) { throw new NotSupportedException("Composition is not supported for " + GetType().FullName + "."); } } }