In a cell in a grid, I have a TreeView. When the parsing of the data behind the treeview yields an error, I would like to replace the treeview with a textblock with information on the error details.
I'm thinking about using a datatemplateselector, but I can't figure out how, or if this is the best approach. Any suggestions?
Alternatively I will place a ContentControl in the grid cell and populate it with the correct content from the code behind file, I just think there could be a more elegant solution in pure XAML.
View Complete Post