locked
Customizing Rating Control

    Question

  • I want to change the 'Star' of rating control with another image as shown below

    How can I do this?

    Monday, October 07, 2013 5:38 AM

Answers

  • The result for last post.


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by vishal.p Tuesday, October 08, 2013 5:43 AM
    • Unmarked as answer by vishal.p Tuesday, October 08, 2013 5:43 AM
    • Marked as answer by vishal.p Tuesday, October 08, 2013 5:46 AM
    Monday, October 07, 2013 3:27 PM
    Moderator
  • Hi vishal.p

    Yes, you could, but it's not so easy. Maybe there are some other solutions but I'd like to provide one of them.

    Take a look at this article: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/prelim_pceditor_overview.mspx?mfr=true.  Win+R type in the eudcedit run the "Private character Editor" and you could draw your own image. Then you could save it with a TTE file, which can be add into your project and used as your symbol font-family.

    Best Regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Proposed as answer by Jamles HezModerator Tuesday, October 08, 2013 8:35 AM
    • Marked as answer by vishal.p Tuesday, October 08, 2013 8:49 AM
    Tuesday, October 08, 2013 6:21 AM
    Moderator

All replies

  • Hi vishal.p

    It is a funny question and quite interesting, I'd like explain you the how it works.

    The Rating control use the "Segoe UI Symbol" Character(which defined as font-family) and you could find the system use "\E082" as the CSS style for win-rating control.

    So what is "\E082" stands for? Let's take a look at the Character Map, from "Segoe UI Symbol" you could find the image below. Yes, this is the star that we are using for our rating control.

    Ok, now let's switch back to Visual Studio, we modify the CSS content as "\E115" to see what's happening, in the Character Map, E115 looks like a Gear. See, the rating control also switch the symbol to a gear. 

    I think for now you should at least know how to change the rating control to another symbol.

    Best Regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Monday, October 07, 2013 3:27 PM
    Moderator
  • The result for last post.


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by vishal.p Tuesday, October 08, 2013 5:43 AM
    • Unmarked as answer by vishal.p Tuesday, October 08, 2013 5:43 AM
    • Marked as answer by vishal.p Tuesday, October 08, 2013 5:46 AM
    Monday, October 07, 2013 3:27 PM
    Moderator
  • Excellent explanation Jamles Hez, thanks for this.

    but can't we show our own created image instead of the 'star'?

    Tuesday, October 08, 2013 5:49 AM
  • Hi vishal.p

    Yes, you could, but it's not so easy. Maybe there are some other solutions but I'd like to provide one of them.

    Take a look at this article: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/prelim_pceditor_overview.mspx?mfr=true.  Win+R type in the eudcedit run the "Private character Editor" and you could draw your own image. Then you could save it with a TTE file, which can be add into your project and used as your symbol font-family.

    Best Regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Proposed as answer by Jamles HezModerator Tuesday, October 08, 2013 8:35 AM
    • Marked as answer by vishal.p Tuesday, October 08, 2013 8:49 AM
    Tuesday, October 08, 2013 6:21 AM
    Moderator