So the problem I'm having is that I would like to access a ComboBox's ToggleButton, specifically the ToggleButton's "Click" event, but I can't find a good way of accessing the ToggleButton because of the way it's embedded into the ComboBox's Control Template.
I know you can get to it by creating your own Control Template in XAML but I don't want to create a whole new Control Template for the ComboBox for just one tiny change.
Is there any way to access the ToggleButton through C#?
Here's my structure for reference:
Visual Tree Structure
(Sorry, not enough points to embed the image)
It's easy to get the ComboBox's Popup/Textbox control using:
comboBox.Template.FindName("PART_Popup", combobox)
comboBox.Template.FindName("PART_EditableTextBox", comboBox)
But the ComboBox's ToggleButton doesn't have a name to call it by.