Rohit
Rohit

Reputation: 3638

How can I draw border tightly around 2 controls in WPF?

I have a ToggleButton which control a Popup similar to ComboBox. I want to draw a border like TabItems that flows around the button and popup when popup is visible and just around the button when it is invisible.

Upvotes: 0

Views: 391

Answers (1)

ColinE
ColinE

Reputation: 70142

A PopUp by definition pops up over the existing content, so drawing a border around both a PopUp and the button isn't really an option. What about using an Expander instead?

Upvotes: 1

Related Questions