Skip to content

Allow accessing BindingExpressions to make proper use of UpdateSourceTrigger=Explicit  #14965

Closed
@timschneeb

Description

@timschneeb

Is your feature request related to a problem? Please describe.

I'm trying to use the new UpdateSourceTrigger=Explicit parameter for some bindings.

At the moment, I can't seem to find a way to access BindingExpressions for existing bindings defined in XAML, but I need that to call BindingExpressionBase.UpdateSource.

Describe the solution you'd like

WPF has a public API to retrieve binding expressions:

control.GetBindingExpression(Control.TargetProperty)

Maybe something similar could be implemented.

Describe alternatives you've considered

--

Additional context

#13734 also requested this functionality, and although it was closed, there doesn't seem to be any public API for that particular use case yet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions