I am trying to do something that seems relatively simple and logic from a user interface level but I have one bug that is very annoying. I have a ToggleButton a
Set StaysOpen="True" for your Popup
From MSDN:
Gets or sets a value that indicates whether the Popup control closes when the control is no longer in focus.
[...]
trueif thePopupcontrol closes whenIsOpenproperty is set tofalse;
falseif thePopupcontrol closes when a mouse or keyboard event occurs outside thePopupcontrol.