Reputation: 14662
I need to create a WPF application , which contains two windows.. the window1 contains a button. i need to show the second window when the cursor is over the button in first window [ Like tooltip ] . if the mouse leaves, the second window should close..
I'm new to WPF. can any one help me with a sample code
Upvotes: 0
Views: 1229
Reputation: 5133
Check out System.Windows.Controls.Primitives.Popup. It is maybe what you are seeking.
Upvotes: 1
Reputation: 3435
If it is possible to do without your second window something like this is usually done in a tooltip, which has exactly that behaviour. (e.g. http://www.c-sharpcorner.com/UploadFile/mahesh/FancyWPFTooltip07132008214937PM/FancyWPFTooltip.aspx)
Upvotes: 1