You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the contents of existing root and child nodes does not update the display of the nodes.
Note that collapsing and expanding child nodes will force a refresh and the display is now correct.
Steps to reproduce the bug
Add a root node to a TreeView and set its contents to "Node 0"
Add a child node to root node above and set it contents to "Child Node"
Change the contents of the root node to "New Node Name"
Change the contents of the child node to "New Child Name"
Problem: Root node still displays "Node 0" and child node still displays "Child Node".
Note that if you collapse and expand the child node, it will now display "New Child Name"
Expected behavior
The display for exisiting root nodes and child nodes should be updated when their contents are updated
Screenshots
This sample apps consists of a TextBlock on left, TreeView in middle with 3 root nodes and a child node, and a button on right to update contents of 1st root node and its child node.
Clicking Rename button shows that the TextBlock has read back the first root node contents and shows it to be the new content.
However, the 1st root node and its child node has not changed
Collapsing then expanding the 1st root node causes the child node to refresh and it now displays the new content
Describe the bug
Changing the contents of existing root and child nodes does not update the display of the nodes.
Note that collapsing and expanding child nodes will force a refresh and the display is now correct.
Steps to reproduce the bug
Problem: Root node still displays "Node 0" and child node still displays "Child Node".
Note that if you collapse and expand the child node, it will now display "New Child Name"
Expected behavior
The display for exisiting root nodes and child nodes should be updated when their contents are updated
Screenshots
This sample apps consists of a TextBlock on left, TreeView in middle with 3 root nodes and a child node, and a button on right to update contents of 1st root node and its child node.
Clicking Rename button shows that the TextBlock has read back the first root node contents and shows it to be the new content.
However, the 1st root node and its child node has not changed
Collapsing then expanding the 1st root node causes the child node to refresh and it now displays the new content
NuGet package version
WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007
Windows version
Windows 10 (21H2): Build 19044
Additional context
MainWindow.xaml
MainWindow.xaml.cs
public sealed partial class MainWindow : Window
{
public MainWindow()
{
this.InitializeComponent();
Also attaching project
TreeNodeSample.zip
The text was updated successfully, but these errors were encountered: