wpftoolkit - How to prevent a nested WPF popup from closing after an off-screen click -
easiest way explain problem xaml:
<window x:class="nestedpopups.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="mainwindow" height="300" width="525"> <grid> <togglebutton x:name="b1" verticalalignment="top" width="50" height="50"></togglebutton> <popup isopen="{binding elementname=b1, path=ischecked}" placementtarget="{binding elementname=b1}" width="100" staysopen="false" height="200"> <grid> <datepicker horizontalalignment="center" verticalalignment="center"> </datepicker> </grid> </popup> </grid> </window> when selecting date using date picker, if date selected not overlap window edge desired behaviour i.e. popup stays open. if date selected located past window edge (any date on bottom 2 rows) popup closes. best way prevent behaviour?
Comments
Post a Comment