Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetBinding() #24992

Open
MaxGuernseyIII opened this issue Sep 29, 2024 · 0 comments
Open

GetBinding() #24992

MaxGuernseyIII opened this issue Sep 29, 2024 · 0 comments
Labels
area-xaml XAML, CSS, Triggers, Behaviors proposal/open

Comments

@MaxGuernseyIII
Copy link

Description

I would love to be able to get the current binding for a property. This doesn't seem like it should have anything to do with specific platforms. It looks like the data structures are there. I could access them with reflection, now, but it would be vastly preferable to have it be doable through the public interface.

Public API Changes

var entry = new Entry();
var binding = entry.GetBinding(somePropertyInfo);

// do stuff

entry.SetBinding(somePropertyInfo, binding);

Intended Use-Case

The main use case I imagine is for temporarily suspending binding. For instance, when an entry field is focused, I might want to turn off binding until they leave the field and then resume it with whatever they've typed in.

@jfversluis jfversluis added the area-xaml XAML, CSS, Triggers, Behaviors label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-xaml XAML, CSS, Triggers, Behaviors proposal/open
Projects
None yet
Development

No branches or pull requests

2 participants