Is it possible to get xaml intellisense for value objects #22216
Unanswered
JohnTraDolta
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, im doing a little side project where im implementing a Component library.
The example names are not what I am using but is used here for simplicity .
I have created a type, a type with predefined values and a type converter:
My problem is that when I create a View with a bindable property of Symbol:
I do not get intellisense in xaml. I know this I possible with enums. I’ve taken inspiration from the Color, Colors and ColorTypeConverter, but can’t spot the difference. I have also look at LayoutOptionsConverter, this type is annotated with:
This does not help me either because it’s internal. I don’t know if this is even possible for customs types?
Then I have also looked at design time typeconverters, but don’t know if this even is the right direction.
So my questions is:
I am aware of this is not the easiest way to go, and I would have a easier time to just go with enums and convert in to the type, but this is more of an exercise for me.
Beta Was this translation helpful? Give feedback.
All reactions