Search found 2 matches
- 09 May 2022, 12:55
- Forum: General Discussion
- Replies: 2
- Views: 3003
Re: Parent null when using ItemsSource binding
I discovered I can navigate by using VisualTreeHelper.GetParent and I can use ItemsControl.ItemPanel to create the "Desktop" canvas as the parent of the generated elements. Though it seems ItemsPanelTemplate also instances the canvas as a child of a ContentPresenter, like it does with Item...
- 08 May 2022, 06:46
- Forum: General Discussion
- Replies: 2
- Views: 3003
Parent null when using ItemsSource binding
I've just started messing around with NoesisGUI, I have no prior experience with XAML/WPF so excuse me if this is rather obvious. I seem to have the same issue this topic mentioned. I've done as suggested and added a check in the Loaded event as follows which reports null. public partial class Windo...