Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Details of Button Content Pre Defined Reserved Values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Details of Button Content Pre Defined Reserved Values

    Hi, I want to create Button with below code. In that code based the Content value, the icon is getting changed. I want to see all the icons linked for A-Z, a-z, 0-9 for best suitable icon. Where can get that information ? Kindly guide.

    new System.Windows.Controls.Button { Content = "X", Style = btnStyle, };

    #2
    Hello nandhumca,

    Thank you for the post.

    The WPF Button and its Content don't normally have any pre defined values. I see that you used a Style on the button and also mentioned icons being changed, are you using some kind of icon font with the button? Passing X as the content would normally be a string with the letter X.

    I look forward to being of further assistance.

    Comment


      #3
      Yes, I am using wingdings as font. What are other fonts like wingdings which I can use for icon in NT?

      Some other place I have seen that below code is being used for custom icon drawings. Where can I find all the reference of existing Geometry.Parse values ?

      System.Windows.Media.Geometry.Parse("M 0 15 L 15 1 L 16 1 L 1 15 Z");
      Last edited by nandhumca; 10-02-2021, 05:03 PM.

      Comment


        #4
        Hello nandhumca,

        Thank you for providing that details.

        I am not sure what other fonts have icons but you can try any Windows font that you have installed to check the result on your end. You can search online for windows icon fonts for some ideas of what may be available.

        If you wanted to know what icons are in the wingdings font you can search online for "wingings code example", there are many sites that have the code and pictures one being wikipedia.

        The code you pasted is known as geometry string, you generally find those in SVG files. You can use external software like inkscape which works with SVG files to also export xaml compliant code which would contain geometry like you pasted. That is generally used with drawing objects which have a menu icon.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        574 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        333 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X