Skip to content
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

Add Docs on method to apply style classes to TreeDataGridRows #2333

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

Al12rs
Copy link
Contributor

@Al12rs Al12rs commented Dec 3, 2024

And how to style TreeDataGrid rows contents in general.

Method is based on:

  • defining ContentTemplates as resources with x:DataType attribute set to the item model type.
  • Set Classes in the content template using the Classes.MyClass="{CompiledBinding .MyModelBoolProperty}" syntax.
  • Apply the ContentTemplate to the row using a style
  • Use the set classes in the selector
  • Profit

@Al12rs Al12rs requested review from erri120 and insomnious December 3, 2024 13:09
@Al12rs Al12rs self-assigned this Dec 3, 2024
@Al12rs Al12rs merged commit 00daa9f into main Dec 3, 2024
2 checks passed
@Al12rs Al12rs deleted the loadorder-v2-Active-state branch December 3, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants