ValueFormat not applied consistently when Value property changes

Nov 22, 2010 at 4:14 AM

Hi,

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">

Coordinator
Nov 22, 2010 at 12: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,

Terry

Coordinator
Nov 22, 2010 at 12: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 11:08 AM

Thanks Terry! Downloaded and verified the fix.