5 namespace SiliconStudio.Presentation.Behaviors
16 public static readonly DependencyProperty PropertyProperty = DependencyProperty.Register(
"Property", typeof(DependencyProperty), typeof(
OnEventSetPropertyBehavior));
21 public static readonly DependencyProperty ValueProperty = DependencyProperty.Register(
"Value", typeof(
object), typeof(
OnEventSetPropertyBehavior));
26 public DependencyProperty Property {
get {
return (DependencyProperty)GetValue(PropertyProperty); } set { SetValue(PropertyProperty, value); } }
31 public object Value {
get {
return GetValue(ValueProperty); } set { SetValue(ValueProperty, value); } }
36 AssociatedObject.SetCurrentValue(Property, Value);
An abstract behavior that allows to perform actions when an event is raised. It supports both RoutedE...
override void OnEvent()
Invoked when the monitored event is raised.
An implementation of the OnEventBehavior class that allows to set the value of a dependency property ...