65.9K
CodeProject is changing. Read more.
Home

WPF Behavior to close a Popup with MouseLeave

starIconstarIconstarIconstarIconstarIcon

5.00/5 (7 votes)

Apr 3, 2018

CPOL

2 min read

viewsIcon

24084

downloadIcon

396

Normally a popup will stay open until explicitly closed. The Behavior will close the Popup if the mouse is clicked within or outside the Popup area or leaves the Popup area.