Repository navigation
|
I want to change a number of How can i change a bunch of TableViewRow properties based on a single property of the respective item ViewModel? What are recommended approaches that conform well to the Avalonia (MVVM) design principles? Example item ViewModel: While i can define a style for the (EDIT: Scratch that. See follow-up comment below.) |
Replies: 1 comment
|
Tinkering a bit more, i found a suitable and clean solution (or so i believe) by creating a custom attached property that allows assigning style-class bindings in a XAML style declaration. Below is my code implementing the attached property. Note however that i am rather inexperienced with Avalonia, and my current implementation might have issues i am not (yet) aware of. With the |
Tinkering a bit more, i found a suitable and clean solution (or so i believe) by creating a custom attached property that allows assigning style-class bindings in a XAML style declaration. Below is my code implementing the attached property. Note however that i am rather inexperienced with Avalonia, and my current implementation might have issues i am not (yet) aware of.