Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

How to Build a Custom Formatted Label with WPF

, 1 Nov 2007
This article explains how to provide a custom gauge formatter for WPF TextBlocks, Label or any other controls
gaugeformatter.zip
GaugeFormatter
GaugeFormatter.suo
GaugeFormatter
bin
Debug
GaugeFormatter.exe
GaugeFormatter.vshost.exe
Properties
Settings.settings
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.1378
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

namespace GaugeFormatter.Properties
{
    public partial class Settings : System.Configuration.ApplicationSettingsBase
    {
        private static Settings m_Value;

        private static object m_SyncObject = new object();

        public static Settings Value
        {
            get
            {
                if ((Settings.m_Value == null))
                {
                    System.Threading.Monitor.Enter(Settings.m_SyncObject);
                    if ((Settings.m_Value == null))
                    {
                        try
                        {
                            Settings.m_Value = new Settings();
                        }
                        finally
                        {
                            System.Threading.Monitor.Exit(Settings.m_SyncObject);
                        }
                    }
                }
                return Settings.m_Value;
            }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Tamir Khason
Architect Better Place
Israel Israel
Hello! My name is Tamir Khason, and I am software architect, project manager, system analyst and [of course] programmer. In addition to writing big amount of documentation, I also write code, a lot of code. I used to work as a freelance architect, project manager, trainer, and consultant here, in Israel, but recently join the company with extremely persuasive idea - to make a world better place. I have very pretty wife and 3 charming kids, but unfortunately almost no time for them.
 
To be updated within articles, I publishing, visit my blog or subscribe RSS feed. Also you can follow me on Twitter to be up to date about my everyday life.

| Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 1 Nov 2007
Article Copyright 2007 by Tamir Khason
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid