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

  • Home
  • SEARCH
  • 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 6934045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:54:36+00:00 2026-05-27T11:54:36+00:00

I have this ValueConverter: public class LabelConverter : IValueConverter { public object Convert(object value,

  • 0

I have this ValueConverter:

public class LabelConverter : IValueConverter
{
    public object Convert(object value,
                          Type targetType,
                          object parameter,
                          System.Globalization.CultureInfo culture)
    {            
        return ApplicationSettings.getTranstaltion(value.ToString());
    }
}

It is used to convert some labels according to the selected language. The value that should be passed in is the labelName which is then looked up in the database. Then the propper translation is chosen and sent back. Here are the two attempts that I have used but which both failed:

 <telerik:ChartLegend Header="{Binding Converter={StaticResource LabelConverter},
                              ConverterParameter='lblLegend'}"
                              x:Name="ChartLegend1"
                              />

<telerik:ChartLegend Header="{Binding ElementName=ChartLegend1, Path=Tag
                              Converter={StaticResource LabelConverter}"
                              x:Name="ChartLegend1"
                              Tag="lblLegend"
                              />

Any help?

  • 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-27T11:54:37+00:00Added an answer on May 27, 2026 at 11:54 am

    First thing that comes to my mind is to check try adding the binding mode explicitly with Mode=TwoWay.

    [Edit]
    Additionally you should check if check if ApplicationSettings.getTranstaltion() throws an exception that is silently choked by Silverlight. Lastly, could value ever be null? In that case value.ToString() might throw an exception.

    Silverlight often handles exceptions silently without the user noticing it (or due to your Visual Studio exception settings), so in both of the latter cases the converter might not do something without ever presenting an exception to you.

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

Sidebar

Related Questions

This is my class that implements IValueConverter: [ValueConversion(typeof(int), typeof(Priority))] public class PriorityConverter : IValueConverter
i have the following IValueConverter implementation public class MyValueConverter : IValueConverter { #region IValueConverter
I have a property of type object , which contains an Enum value, and
I have an IValueConverter whose job it is to convert a BlockId to a
I have a Silverlight ValueConverter that should take an enum and convert it to
I have some interface and class that contain List public interface IListContain { Int32
I have the following ListView: <ListView Name=listView> <ListView.View> <GridView> <GridView.ColumnHeaderContainerStyle> <Style TargetType={x:Type GridViewColumnHeader}> <Setter
I have created a converter class that uses the IValueConverter interface and InConverter. It
Please help me, i am new to WP7 development.I have a class like this
I have a poco class in my domain model: public class Slot { bool

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.