I have some custom cursors in my application. I used informations found on the second answer here to create my custom cursor. This works well. My problem is that when I move my mouse over a Popup, the mouse appears as the default Cursor. Strange thing is that when i move my mouse out of the Popup, my custom cursor come back. Ok so i instanciate my cursor like so :
UserControl.xaml :
<TextBlock
x:Name="SupprimerV"
x:Key="SupprimerV"
Cursor="../Utils/Supprimer.cur"/>
In the UserControl.xaml.cs :
this.Cursor = ((TextBlock)this.FindResource("SupprimerV")).Cursor;
Then i call my own control SimplePopup which derive from Popup like so :
_pop = new SimplePopup(this); //Irrelevant information omitted
SimplePopup.cs :
public simplePopup(FrameworkElement relativeTo)
{
this._relativeTo = relativeTo;
this.Cursor = relativeTo.Cursor; //Trying to set the cursor of the popup but dosent work
...
}
I tried to set the popup cursor but it dosent seem to work. The cursor work fine on my UserControl but fail when the mouse is over the Popup.
Im i missing something? Is ther something preventing my cursor from working correctly on a Popup?
Thnx for your help, Sorry for spelling mistakes ^^