paramList[i] = globalDataList.GatheredInstances[instance.Index];
}
- if (paramList[i] is ResourcePathExtension resourcePath)
+ if (paramList[i] is IMarkupExtension markupExtension)
{
- paramList[i] = resourcePath.ProvideValue(null);
+ paramList[i] = markupExtension.ProvideValue(null);
}
}
value = globalDataList.GatheredInstances[valueIndex];
}
- if (value is ResourcePathExtension resourcePath)
+ if (value is IMarkupExtension markupExtension)
{
- value = resourcePath.ProvideValue(null);
+ value = markupExtension.ProvideValue(null);
}
instance.SetValue(property, value);
}
}
- if (value is ResourcePathExtension resourcePath)
+ if (value is IMarkupExtension markupExtension)
{
- value = resourcePath.ProvideValue(null);
+ value = markupExtension.ProvideValue(null);
}
property.SetMethod.Invoke(instance, new object[] { value });
if (newValue is BindableObject targetBindableObject)
{
- targetBindableObject.IsCreateByXaml = true;
+ targetBindableObject.IsBinded = true;
}
}
}),
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetValue(BindableProperty property, object value)
{
- if (true == isCreateByXaml)
+ if (true == IsBinded)
{
SetValue(property, value, false, true);
}
if (fromStyle && !CanBeSetFromStyle(targetProperty))
return;
- IsCreateByXaml = true;
+ IsBinded = true;
var context = GetOrCreateContext(targetProperty);
if (fromStyle)
}
}
+ internal bool IsBinded
+ {
+ get;
+ set;
+ } = false;
+
static void BindingContextPropertyBindingChanging(BindableObject bindable, BindingBase oldBindingBase, BindingBase newBindingBase)
{
object context = bindable.inheritedContext;
if (source is BindableObject bindableObject)
{
- bindableObject.IsCreateByXaml = true;
+ bindableObject.IsBinded = true;
}
}
}