How can I control the node indentation behaviour for a XamDataTree. It looks like the indentation is increased based on the number of characters being displayed.
Hello Marcel,
I have been investigating this issue, and by chance, in your application targeting .NET 4.7? If so, this issue is likely related to a change in that framework version related to grid star-sizing logic in WPF.
If this is the case, it is worth noting that this was reporting before, and that it does not happen with earlier versions of the .NET Framework. You can work around this issue by using the following switch in the app.config of your application:
<?xml version="1.0" encoding="utf-8"?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7"/> </startup> <runtime> <AppContextSwitchOverrides value="Switch.System.Windows.Controls.Grid.StarDefinitionsCanExceedAvailableSpace=true" /> </runtime> </configuration>
If you are not using .NET 4.7 or higher, please let me know and I will continue to investigate this issue further.
Please let me know if you have any other questions or concerns on this matter.
Hello Andrew,
we do target .Net 4.7 and with your workaround applied the tree is rendered as expected.
Many thanks for your quick reply!