I have a unbound field that displays an image using a CellValuePresenterStyle.
On left clicking the Unbound field/Image a Popup should appear showing the full detail of the row data.
If I use StaysOpen="True" the Popup displays on a LEFT mouse click. But the popup does not disappear when the window loses focus or if another cell is clicked.
If I use StaysOpen="False" the Popup does NOT display at all with a left mouse click.Can anyone provide a simple example of how to use the Popup control from an unbound field that uses StaysOpen="False"?Thanks in advance for any help.
Hello,
Thank you for your post. I have been looking through it and I created a sample project with the functionality you want. Please let me know if this is what you are trying to achieve or I have misunderstood you in some way.
Looking forward for your reply.
The code that you have produced perfectly demonstrates the problem I am experiencing.If you use StaysOpen=true the popup stays on top of ALL windows, which is not the behaviour I am after. (ie open a browser window and the popup is still being displayed).If you use StaysOpen=false then the popup does not show at all.I had to change the referenced assemblies to Wpf3.10.3 to match the version I am using.One interesting feature of StaysOpen=false, is if you left click and drag down, it shows the popup, until the mouse button is lifted.I hope this makes sense.Thanks for spending time helping.
Hello again,
I modified the sample I send you before and now the Popup is shown, where the mouse is. Also if you click anywhere else, when the Popup is open, it closes as you want.
Hope this helps you.
Thats spot on, thanks.