-
Considering a simple custom type like for example: public record struct IntRange(int From, int To) { } What attributes does this type need to have or what interfaces should it implement, so that in XAML I can simply just write: <myxmlns:MyCustomControl IntRangeProperty="(100, 500)" /> Where EDIT: Looking for a solution in the context of compiled bindings. |
Beta Was this translation helpful? Give feedback.
Answered by
maxkatz6
Apr 6, 2025
Replies: 1 comment 5 replies
-
You need to implement TypeConverter. Or, you can add Parse method to your struct. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
fitdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to implement TypeConverter. Or, you can add Parse method to your struct.