wpf - Bind same Popup to multiple ElementName -


i have multiple tabs , in each tab, there button triggers same popup. problem since use same ispopupopen check , display popup, 3 popups show everytime.

    <popup isopen="{binding ispopupopen}"            placementtarget="{binding elementname=a}" placement="center">         ... same contents ...     </popup>      <popup isopen="{binding ispopupopen}"            placementtarget="{binding elementname=b}" placement="center">         ... same contents ...     </popup>      <popup isopen="{binding ispopupopen}"            placementtarget="{binding elementname=c}" placement="center">         ... same contents ...     </popup> 

placementtarget="{binding elementname={binding ename}}" there can bind elementname change or something?

i used mvvm, prefer none-code-behind suggestion.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -