How could I implement the tree correctly using XAML? - C#