Table of Contents
  • Getting Started
  • EO.Pdf
  • EO.Web
  • EO.WebBrowser
  • EO.Wpf
  • Common Topics
  • Reference
    • .NET API Reference
      • EO.Base
      • EO.Base.UI
      • EO.Extensions
      • EO.Pdf
      • EO.Pdf.Acm
      • EO.Pdf.Contents
      • EO.Pdf.Drawing
      • EO.Pdf.Mvc
      • EO.Web
      • EO.WebBrowser
      • EO.WebBrowser.DOM
      • EO.WebEngine
      • EO.WinForm
      • EO.Wpf
      • EO.Wpf.Gauge
        • EO.Wpf.Gauge
        • Classes
          • CircularGaugeFrame Class
          • CircularLabelOptions Class
          • CircularLineOptions Class
          • CircularOptions Class
          • CircularScale Class
          • CircularTickOptions Class
          • LinearGaugeFrame Class
          • LinearLabelOptions Class
          • LinearOptions Class
          • LinearRangeBarOptions Class
          • LinearScale Class
          • LinearScaleBase Class
          • LinearTickBar Class
          • LinearTickOptions Class
          • MajorCircularLabelOptions Class
          • MajorCircularTickOptions Class
          • MajorLinearLabelOptions Class
          • MajorLinearTickOptions Class
          • Marker Class
          • MarkerCollection Class
          • MinorCircularLabelOptions Class
          • MinorCircularTickOptions Class
          • MinorLinearLabelOptions Class
          • MinorLinearTickOptions Class
          • Needle Class
          • Options Class
          • ProgressIndicator Class
          • Range Class
          • RangeBarOptionsBase Class
          • RangeCollection Class
          • RollingRangeBarOptions Class
          • RollingScale Class
          • RollingTickBar Class
          • ScaleBase Class
          • TickBarBase Class
          • ValueIndicator Class
        • Enumerations
      • EO.Wpf.Gauge.Shapes
      • EO.Wpf.Primitives
      • EO.Wpf.Themes.Aero
      • EO.Wpf.Themes.Classic
      • EO.Wpf.Themes.Luna
      • EO.Wpf.Themes.Metro
      • EO.Wpf.Themes.Royale
    • JavaScript API Reference
StringFormat Property

Gets or sets a composite string that specifies how to format the labels of a CircularScale. This is a dependency property.

Syntax
 public String StringFormat { get; set; }

Property Value

A composite string that specifies how to format the labels of a CircularScale.

Example

The following example applies the currency format to the major labels of a CircularScale.

XAML
<Window x:Class="Wpf.Window3"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:eo="http://schemas.essentialobjects.com/wpf/"
        Title="CircularScale Demo" Height="400" Width="600">
   <Grid>
     <eo:CircularScale Minimum="0" Maximum="100"
                       MajorInterval="10" MinorInterval="2"
                       Width="300" Height="300" ShowFirst="False">
       <!-- define the rings that will hold the ticks and labels -->
       <eo:CircularScale.RingDefinitions>
         <eo:RingDefinition Width="15" Height="15" />
         <eo:RingDefinition Width="150" Height="150" />
       </eo:CircularScale.RingDefinitions>
       
       <eo:CircularScale.MajorLabelOptions>
         <eo:MajorCircularLabelOptions Ring="1" StringFormat="c" />
       </eo:CircularScale.MajorLabelOptions>
       
     </eo:CircularScale>
   </Grid>
</Window>

See Also