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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T13:59:41+00:00 2026-05-16T13:59:41+00:00

Using SilverLight, one can bind the value of a control to a property from

  • 0

Using SilverLight, one can bind the value of a control to a property from a datacontext. That’s fine.

It is possible to use StringFormat along with the binding declaration to format the value. Again, that’s cool!

However, I can’t find a way to have the binding with some operation done to it before it gets displayed. I know I can code an IConverter but I was looking for something purely in XAML if that exists. I could also add a property to the class that returns the data in the correct way, but still what would happen if you don’t have the source of the class?

For example, let’s say I have this class for my datacontext (properly setup with notification and the like):

public class Info
{
    public int SomeValue {...}    // Value from 0 to 15
}

I would like to have a binding that would display 45 instead of 15 where the binding would be declared something like {Binding SomeValue, Operation=”*3″}

Is there something like this in the .NET world (either from MSoft or OpenSource)?

  • 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-05-16T13:59:41+00:00Added an answer on May 16, 2026 at 1:59 pm

    found the link I was talking about.

    Still, Charles Petzold also suggest to rather use a ValueConverter, even though some arithmetics is possible in pure XAML

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

Sidebar

Related Questions

Would it be possible to show an image in full screen mode using silverlight.
I have to bind sql table to one of the grid in my silverlight
I have just started using silverlight 2 beta and cannot find how to or
I've coded some smaller projects using Silverlight 2.0, which is fairly impressive. Does Silverlight
I am creating a basic image browsing application using Silverlight. Depending on the user's
When using a Silverlight-enabled WCF service, where is the best place to instantiate the
I'm using the Silverlight UnitTest framerwork does anyone have a good example have how
I'm working on a Silverlight app using the MVVM pattern. My ViewModel currently consists
I'm writing a Silverlight app using the MVVM pattern. I have a main view
When you create a Silverlight app using: <asp:Silverlight id=SlApp runat=server Source=~/ClientBin/SLApp.xap MinimumVersion=2.0 /> is

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.