using System.Windows; using System.Windows.Markup; namespace Caliburn.Messaging { [ContentProperty("Value")] public class Parameter : FrameworkElement { public static readonly DependencyProperty ValueProperty = DependencyProperty.Register( "Value", typeof(object), typeof(Parameter), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault) ); public Parameter() {} public Parameter(object value) { Value = value; } public object Value { get { return GetValue(ValueProperty); } set { SetValue(ValueProperty, value); } } } }