Posted 15 years ago
by Craig
-
Varigence, Inc.
Version: 10.1.0521
Platform: .NET 4.0
Environment: Windows 7 (32-bit)
I'm hitting a case where I have a PopupButton that contains a TreeView but the button undesireably closes when I click on TreeView's elements.
The scenario is that I have a .NET 4.0 datagrid with a template column. The cell template is a textblock but the editing template contains a PopupButton. Within the PopupButton is the ResizableContentControl, which is displaying a user control. Within the UserControl is a TreeView. I'm seeing that whenever I click on a TreeViewItem or the expander arrow of a TreeView item, the popup closes immediately. This is problematic since I want the user to be able to select items and navigate the treeview without having to keep reopening the popup. Interestingly, when I click on a TreeViewItem's expander and then reopen the popup (since it closed on the click), I see that the TreeViewItem has expanded.
I'll send over a sample app that should reproduce the scenario for you.
Thanks,
-Craig
The scenario is that I have a .NET 4.0 datagrid with a template column. The cell template is a textblock but the editing template contains a PopupButton. Within the PopupButton is the ResizableContentControl, which is displaying a user control. Within the UserControl is a TreeView. I'm seeing that whenever I click on a TreeViewItem or the expander arrow of a TreeView item, the popup closes immediately. This is problematic since I want the user to be able to select items and navigate the treeview without having to keep reopening the popup. Interestingly, when I click on a TreeViewItem's expander and then reopen the popup (since it closed on the click), I see that the TreeViewItem has expanded.
I'll send over a sample app that should reproduce the scenario for you.
Thanks,
-Craig