Replies: 1 comment
-
CompiledBindings will actually throw if the |
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
-
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
ItemContainerGenerator
and create different containers for different VMs (or by exposing somebool
on 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