Custom cursor is ignored in the title area

5 posts, 1 answers
  1. Greg
    Greg avatar
    34 posts
    Member since:
    Sep 2012

    Posted 18 Aug Link to this post

    Hello. If I set a custom cursor to a RadWindow, when I hover the pointer over the title area of the window, the custom cursor isn;t displayed, instead the standard arrow cursor is shown.

    Is there a way to have the custom cursor displayed in the title area as well?
  2. Answer
    Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 22 Aug Link to this post

    Hi Greg,

    The observed behavior is an expected one and could be observed with the native WPF Window as well - the Cursor is not expected to be visualized in the Header.

    The cursor does not get visualized in the Header part of the control because it has a CaptionHeight set. This Height determines the caption area of the control and without it the drag and drop of the Window will not be possible - if you set the CaptionHeight to 0 you will notice that the Cursor will appear. Changing the CaptionHeight is not recommended because it could affect the drag and drop behavior.

    Hope the provided information will be helpful for you.

    Regards,
    Nasko
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Greg
    Greg avatar
    34 posts
    Member since:
    Sep 2012

    Posted 04 Nov in reply to Nasko Link to this post

    Is there a way to access the RadWindow chrome elements (the window caption and window resize controls)?

    I mean, the used cursors must be defined somewhere, can I get to that place and change the used cursors?

  5. Greg
    Greg avatar
    34 posts
    Member since:
    Sep 2012

    Posted 05 Nov in reply to Nasko Link to this post

    Actually I solved this by setting the resize borders to 0 and adding my own resize logic through a control placed in the RadWindow template. Thank you for the previous tips.
  6. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 07 Nov Link to this post

    Hello Greg,

    I am glad to here you were able to achieve the desired and now everything is working as expected for you.

    If you have any additional questions please, do not hesitate to contact us.

    Regards,
    Nasko
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Back to Top
UI for WPF is Visual Studio 2017 Ready