We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a different look if I create a treeview from code vs in xaml
Here is my code definition
var level3 = new TreeViewItem() { Header = "Level 3", IsExpanded = true }; var level2 = new TreeViewItem() { Header = "Level 2", IsExpanded = true }; var level1 = new TreeViewItem() { Header = "Level 1", IsExpanded = true }; treeViewFromCode.Items.Add(level1); level1.Items.Add(level2); level2.Items.Add(level3);
Here is XAML
<Grid> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> <TreeView x:Name="treeViewFromCode"/> <TreeView Grid.Row="1"> <TreeViewItem Header="Level 1" IsExpanded="True"> <TreeViewItem Header="Level 2" IsExpanded="True"> <TreeViewItem Header="Level 3" IsExpanded="True"/> </TreeViewItem> </TreeViewItem> </TreeView> </Grid>
When I run it:
When I am not using ModernWPF, it looks like this (correctly)
Used version 0.9.3
The text was updated successfully, but these errors were encountered:
9ccb428
Thanks for reporting.
Sorry, something went wrong.
No branches or pull requests
There is a different look if I create a treeview from code vs in xaml
Here is my code definition
Here is XAML
When I run it:
![image](https://user-images.githubusercontent.com/11967522/108974511-cf904a80-7685-11eb-8458-adff68746331.png)
When I am not using ModernWPF, it looks like this (correctly)
![image](https://user-images.githubusercontent.com/11967522/108974672-f8b0db00-7685-11eb-91dc-391598599c43.png)
Used version 0.9.3
The text was updated successfully, but these errors were encountered: