Thorin Oakenshield
Thorin Oakenshield

Reputation: 14662

C# : WPF Mouse Over

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

Answers (2)

Holstebroe
Holstebroe

Reputation: 5133

Check out System.Windows.Controls.Primitives.Popup. It is maybe what you are seeking.

Upvotes: 1

MrDosu
MrDosu

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

Related Questions