unable to access parent property from a Trigger
WPF
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I needed a custom ComboBox control with a DataGrid as popup. I managed to change the MSDN example and everything works except I can't set ComboBox.IsDropDownOpen property from the Trigger. It it usefull also for setting ComboBox.Text property with the text selected from the DataGrid. The problem is at the end near comments: Property="ComboBox.IsDropDownOpen" Value="False" (this line does not have any affect because the comboBox is not identified by name or style type). Somehow I need to specify the comboBox style.. Any ideas how to do it? RelativeSource with TemplateParent..