Skip to content

TreeDataGrid TemplateColumn & ViewLocator issue #18000

Answered by thevortexcloud
nasterhe asked this question in Q&A
Discussion options

You must be logged in to vote

Also, under what circumstances will the entry into the ViewLocator be triggered?Thanks.

It's somewhat complicated. Basically Avalonia searches up the tree, all the way to the application level; until it finds a matching template. Generally the view locator is placed on the application level, so if there is no closer matching template the view locator gets used.

There is some docs here:

https://docs.avaloniaui.net/docs/get-started/wpf/datatemplates
https://docs.avaloniaui.net/docs/concepts/templates/data-templates-collection
https://docs.avaloniaui.net/docs/concepts/templates/reusing-data-templates

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nasterhe
Comment options

@timunie
Comment options

@thevortexcloud
Comment options

Answer selected by nasterhe
@nasterhe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants