This question is locked. New answers and comments are not allowed.
Hi!
I have created a Linear Gauge in my WP app by using the Smart Tag.
This results in some of the xaml I pasted in below.
The numeric indicator value below the linear gauge shows with a decimal, eg "12,0".
How can I format it to show without decimals, eg "12" ?
The binded value "MyIntValueInViewModel" is an int.
TIA
/Johan
I have created a Linear Gauge in my WP app by using the Smart Tag.
This results in some of the xaml I pasted in below.
The numeric indicator value below the linear gauge shows with a decimal, eg "12,0".
How can I format it to show without decimals, eg "12" ?
The binded value "MyIntValueInViewModel" is an int.
TIA
/Johan
<
gauges:MarkerGaugeIndicator
x:Name
=
"indicator3"
IsAnimated
=
"True"
gauges:LinearGaugeRange.IndicatorOffset
=
"12"
Value
=
"{Binding MyIntValueInViewModel}"
>
<
gauges:MarkerGaugeIndicator.MarkerTemplate
>
<
DataTemplate
>
<
Grid
Height
=
"37"
Width
=
"37"
>
<
Grid.RenderTransform
>
<
TranslateTransform
X
=
"20"
/>
</
Grid.RenderTransform
>
<
TextBlock
FontWeight
=
"Bold"
FontSize
=
"13"
HorizontalAlignment
=
"Center"
Text
=
"{Binding Converter={StaticResource valueToStringConverter}}"
VerticalAlignment
=
"Center"
/>
</
Grid
>
</
DataTemplate
>
</
gauges:MarkerGaugeIndicator.MarkerTemplate
>
</
gauges:MarkerGaugeIndicator
>
</
gauges:LinearGaugeRange
>