Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

A question about 'cursor' RSS

2 replies

Last post Dec 27, 2007 03:37 AM by Yi-Lun Luo - MSFT

(0)
  • leoyonn

    leoyonn

    Member

    6 Points

    16 Posts

    A question about 'cursor'

    Dec 25, 2007 09:45 AM | LINK

    thanks first.

    I wanna to use customised cursor when I'm doing something, such as a pen when I'm drawing. But as far as I know, there are very limited types of cursor in silverlight. Anyone, please help me with this! thanks again!

    cursor customized

  • mchlSync

    mchlSync

    Star

    14968 Points

    2799 Posts

    Re: A question about 'cursor'

    Dec 26, 2007 04:09 PM | LINK

    leoyonn

    as far as I know, there are very limited types of cursor in silverlight.
     

    Yeah. You are right about that.

    If you want to use the custom cursor in Silverlight application, I suggest you to try using the Javascript in Silverlight (like SL 1.0 style) 

    http://www.webtoolkit.info/javascript-custom-cursor.html

    http://www.lissaexplains.com/cursor.shtml 

    maybe, you can overlap the DIV over the Silverlight Canvas. then, change the cursor using Javascript. 

    (If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

    Regards,
    Michael Sync
    Silverlight MVP

    Blog : http://michaelsync.net
  • Yi-Lun Luo - MSFT

    Yi-Lun Luo -...

    All-Star

    25149 Points

    2759 Posts

    Microsoft

    Re: A question about 'cursor'

    Dec 27, 2007 03:37 AM | LINK

    Unfortunately currently Silverlight doesn’t support custom cursors. One solution is to set Cursor to None, and use an image/shape to follow the mouse move. You can find a sample named ”Ink Tattoo Studio” in the gallery. You can also download the code directly from this link.

    shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.