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 9174497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:45:56+00:00 2026-06-17T16:45:56+00:00

I found something like this: How to set WPF string format as percent wihout

  • 0

I found something like this:
How to set WPF string format as percent wihout multiplying by 100?

I just want to have a ‘%’ sign suffix after my number. my code looks like this

<Label Content="{Binding Path=ReportGridViewModel.FillingDegree, StringFormat=P}" />

I already tried this one too

<Label Content="{Binding ReportGridViewModel.Cgi, StringFormat={}{0}%}" />

in both cases I don’t see any changes like I don’t have any stringformat.

  • 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-06-17T16:45:57+00:00Added an answer on June 17, 2026 at 4:45 pm

    The StringFormat property of a Binding is only applied when the target property is of type String. In a Label, the target property Content, is of type Object, so StringFormat is not respected.

    To get this to work in a label, use ContentStringFormat. If you were to use a TextBlock, you could use the StringFormat provided by Binding.

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

Sidebar

Related Questions

I have a data set that looks something like this: 0 Var1 Var 2
I found something like this in a SqlServer DB stored proc: SELECT stuff FROM
Something like this: if self.__class__ == User: logging.debug(%s non_pks were found % (str(len(non_pks))) )
I have found that I have no problem using require to load something like
I have just found something very weird while developing a website. While trying to
I was reviewing some code, and I found something that looked like this: public
I have a directory structure something like this: base subdir1 subdir2 subdir3 subsubdir1 subsubdir2
I have actioncolumn something like this: { xtype: 'actioncolumn', align: 'center', items: [ {
I have three columns that look something like this: Column1 Date1 Date2 Test2 2012-06-10
Lets say I have a set of model classes like this: public class Person

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.