Browse Source

Set priority for one time bindings.

pull/58/head
Steven Kirk 12 years ago
parent
commit
2b661dc420
  1. 2
      Perspex.Base/PerspexObject.cs

2
Perspex.Base/PerspexObject.cs

@ -219,7 +219,7 @@ namespace Perspex
this.Bind(binding.Property, value, binding.Priority);
break;
case BindingMode.OneTime:
this.SetValue(binding.Property, sourceBinding.Source.GetValue(sourceBinding.Property));
this.SetValue(binding.Property, sourceBinding.Source.GetValue(sourceBinding.Property), binding.Priority);
break;
case BindingMode.OneWayToSource:
sourceBinding.Source.Bind(sourceBinding.Property, this.GetObservable(binding.Property), binding.Priority);

Loading…
Cancel
Save