-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTriggerBehavior doesn't work with DataGridRow style #153
Comments
Have you tried simpler |
Hi, @maxkatz6 . Sorry to bother you but I have the same issue . And I found it affects all ItemsControl. For example, add a behavior to It indicates the datacontext of the
|
I have a minimal test case, where I can't make
DataTriggerBehavior
make to work withDataGridRow
style.I have simple view models:
and a simple view for it:
As you can see, by default, row foreground is
Blue
. WhenId
is changed, row foreground must be changed toRed
orGreen
.First of all, it's not compilled with error
Unable to resolve property or method of name 'IsEven' on type 'AvaloniaApplication1.MyViewModelList'
. Second, if I use cast in binding like thisBinding="{Binding (vm:MyViewModel).IsEven}"
, it compiles successfuly, but color doesnt't canges.Same for
DataGridCell
style.Is it bug or I do somthing wrong?
The text was updated successfully, but these errors were encountered: