public void SetBaseValue(object baseValue)
 {
     if (baseObserver != null)
     {
         baseObserver.SetBaseValue(baseValue);
     }
     else
     {
         observableValue.Value = baseValue;
         ValueType             = baseValue != null?baseValue.GetType() : null;
     }
 }
Exemple #2
0
 private void OnTargetVisualAncestorChanged(object sender, EventArgs e)
 {
     sourceExpression.SetBaseValue(Source ?? GetRelativeSource(Target, RelativeSource, ElementName));
 }