Source generator to automatically bind properties in custom controls #530
Closed
Riccardo11
started this conversation in
New Feature Discussions
Replies: 2 comments 1 reply
-
I'm adding some features whose could be interesting thinking about this library in a production environment, such as binding more properties from the same control or different controls. I would really appreciate your opinion about this plugin. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Closed as per the Community Stand-up discussion here: https://youtu.be/N9wMcBP4jtg?t=2889 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I tried proposing my library in discussion #458 but I didn't receive an answer, so maybe I had to start a new discussion.
I'm sorry if I'm doing it the wrong way.
Anyway, my library (CCPropGen) aims to automatically create bindable properties for controls inside a
ContentView
. I provide an example to get the concept better.Example
Let's say that inside your
ContentView
there is anEntry
and you want to bind itsText
property.My library exposes an attribute that, applied to the custom control class and given some required parameters, creates a bindable property linked to the
Text
property of theEntry
.Link to the repo: https://github.com/Riccardo11/CCPropGen.
This is a code example.
Now
CCPropGenEntry
has aText
property ready to be bound.It's far from being ready to be used in a real environment, but I would appreciate your thoughts about it.
Beta Was this translation helpful? Give feedback.
All reactions