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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:00:20+00:00 2026-05-13T15:00:20+00:00

The system I’m working on uses a large number of custom value types internally.

  • 0

The system I’m working on uses a large number of custom value types internally. I’m working on a prototype UI using WPF. WPF does not know how to display the custom types. I know that I can write a custom ValueConverter to do this, but I really don’t want to have to specify the use of a converter every time I bind to a class in my XAML.

Is there an Interface I can implement in the custom value type that will let WPF know how to display it natively?

Or, is there a way I can specify an application-wide value converter that will apply to any instance of our custom type, without having to specify the ValueConveter in every binding expression?

  • 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-13T15:00:20+00:00Added an answer on May 13, 2026 at 3:00 pm

    Aha! Figured it out. I needed to write a TypeConverter and apply it to my custom types. This allows WPF to automatically figure out how to handle them without having to specify a template or converter in the XAML.

    http://msdn.microsoft.com/en-us/library/ayybcxe5.aspx

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

Sidebar

Related Questions

System.Environment.OSVersion does not appear to indicate which Edition of Windows 2003 is installed (Standard,
System.Reflection does not (AFAIK) support reflecting on global methods in an assembly. At the
System: Windows XP SP3, .NET 3.5, 4GB RAM, Dual 1.6gHz I have a WPF
System.Web.HttpContext.Current.Response.Cookies[ssocookies].Domain = System.Web.HttpContext.Current.Request.ServerVariables[SERVER_NAME].ToString().ToLower(); System.Web.HttpContext.Current.Response.Cookies[ssocookies].Value = tokenID.ToString(); System.Web.HttpContext.Current.Response.Cookies[ssocookies].Path = ~/; System.Web.HttpContext.Current.Response.Cookies[ssocookies].Expires = DateTime.Now.AddDays(7); Now what
System.NullReferenceException: Object reference not set to an instance of an object. Making the Sitemap.CurrentNode
System.out.println((26.55f/3f)); or System.out.println((float)( (float)26.55 / (float)3.0 )); etc. returns the result 8.849999. not 8.85
system(ssh test.host.com); its asking for permentaly add key or not ? I want automatically
System & Environment Windows 7 (64 bit) MinGW 4.6.1 Eclipse Indigo (Not really used
System uses dom parser in python 2.7.2. The goal is to extract the .db
System.Net.HttpRequestHeader enum contains a number of HTTP headers, but there's no Location header. 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.