maui icon indicating copy to clipboard operation
maui copied to clipboard

Expose generic delegates for BindableProperty via Create method

Open symbiogenesis opened this issue 1 year ago • 2 comments

This just adds a convenience method that exposes the generic delegates that are defined in this file via the commonly-used static Create method.

When you are writing the delegate functions, it is nice to have the types already there for you, and this also prevents errors because the default value and the delegates are type checked at compile time.

See discussion: https://github.com/dotnet/maui/discussions/16302

symbiogenesis avatar Dec 14 '23 18:12 symbiogenesis

Hey there @symbiogenesis! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

ghost avatar Dec 14 '23 18:12 ghost

this is something we're discussing internally, so we probably won't accept this PR right now. You could turn your method into an extension method and use it, or propose this PR (with an extension method) to the community toolkit

StephaneDelcroix avatar Dec 15 '23 07:12 StephaneDelcroix

The new compiled BindableProperties make this redundant, I think. Closing.

symbiogenesis avatar Jun 24 '24 18:06 symbiogenesis