This project is read-only.

ValueFormat not applied consistently when Value property changes

Nov 22, 2010 at 5:14 AM


The following XAML snippet is how I have declared my WpfGauge instance. I've data-bound the value property to a backing data source. Now when the value changes, the format string is sometimes applied and sometimes not.

It starts up by showing "0 rph" initially but with some data updates, it turns into "23" (i.e. loses the formatstring)


<WpfGauge:Gauge DockPanel.Dock="Left" Height="150" Width="150"
                                Value="{Binding RunsPerHour}"
                                AutoScale="False" MinValue="0" MaxValue="80" MajorTickCount="8" MinorTickCount="4"
                                ValueFormat=" {0} rph">

Nov 22, 2010 at 1:25 PM

Hi Gishu,

Good catch on this bug.  I fixed this issue and checked it in.  You can find this fix in the latest change set (1496).

Thanks for the feedback,


Nov 22, 2010 at 1:26 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Nov 28, 2010 at 12:08 PM

Thanks Terry! Downloaded and verified the fix.