-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Making BIndingBase functions not internals #24842
Description
Description
Hello,
I am interested in the possibility of creating my own binding logic to optimize the performance of my applications.
I am currently manually using TypedBinding to work around the inability to override the Apply and UnApply functions of BindingBase.
This is also causing issues because it is impossible for me to clone a TypedBinding.
The internal scope of the Clone function is extremely problematic for using TypedBinding on custom controls for displaying lists. For example, with the SyncFusion library, it’s impossible to use this.
In fact, simply the Clone function would solve 80% of my problems.
Public API Changes
Exemple :
public virtual void Apply(bool fromTarget)
=> IsApplied = true;
public virtual void Apply(object context, BindableObject bindObj, BindableProperty targetProperty, bool fromBindingContextChanged, SetterSpecificity specificity)
=> IsApplied = true;
public abstract BindingBase Clone();Intended Use-Case
Clone Binding to use it in personnal ItemControls is very useful.
Apply and Unapply we be useful to create Custom Binding Logic for application performance.