Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5999991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:37:48+00:00 2026-05-23T00:37:48+00:00

I have some custom cursors in my application. I used informations found on the

  • 0

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 ^^

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:37:49+00:00Added an answer on May 23, 2026 at 12:37 am

    Ok so i found out a way to make my cursor appear correctly into my popup.
    My SimplePopup use a border as its child element. I tried to set that border’s Cursor to the _relativeTo cursor like this :

    popBorder.Cursor = _relativeTo.Cursor;
    

    and it worked
    I Was wondering why so i did a bit of research and i found this interesting piece of text :

    Pro WPF in c# 2010 – Chapter 6 page 186 : “you must set the Background property if you want to see
    your content, because it won’t be inherited from your window and you need to
    add the border yourself (the Border element works perfectly well for this
    purpose).” http://archon.name/files/books/programming/Apress.Pro.WPF.in.C%23.2010.Windows.Presentation.Foundation.in.NET.4.pdf

    So clearly, the popup wont inherit any of its creator’s properties (including the cursor).

    I think since the popup has no apperance at all, that his cursor’s property dosent propagate down its element tree…

    It surprises me since in my main application i set the cursor to the first element in the tree and it seems to propagate well or at least it can appear over child elements.

    I wonder if ther is other reason or if this behavior appear’s anywhere else in WPF.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have authored some custom classes that I would like to create using XAML:
I am using the WordPress theme Studio8 and I have create some custom forms
I have some css like this: cursor: url(x.gif), move; but the problem is that
maybe some one can help me with this... I have a custom search button
I have created a custom Cursor Adapter for my list.The list gets some data
have some custom attr_accessor in my model. When I try to create a new
I have java swing chess application. Cursor has custom view - rectangle, sized to
I have some custom type: [RdfSerializable] public class Item { [RdfProperty(true)] public string Name
I have some custom logic that needs to be executed every single time a
I have a document type of info I also have some custom properites. infoTitle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.