Replies: 2 comments
-
|
CompiledBindings will actually throw if the |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Was a way to do this added since 2022? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been wanting a feature like for a while now:
<Style Selector="ListBoxItem[DataContext~vms:ISimpleItemViewModel]" >Syntax is debatable, but having some general-purpose operator for checking type equality (not just value equality) of properties would be certainly nice to have. There are many cases (in my experience) where you want to style some container based on the VM it hosts. Currently it's required to overwrite
ItemContainerGeneratorand create different containers for different VMs (or by exposing someboolon the VM and bind it toClassses.my-custom-view)EDIT: For clarity this is not just about
DataContext. The operator could be used for other properties as well:<Style Selector="MyControl[FruitType~vms|Apple]" />Beta Was this translation helpful? Give feedback.
All reactions