Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
Editing fomat style percent
posted

It seems like the only way to get a decimal to output as percent is to  use the EditorStyle, but i have problems with editing this number since it treats it as a normal decimal number so if I use a P2 format, there is no way for me to get .01%, I I enter .01, the result is 1% and I can only type to the 2nd digit.

 

 <Style x:Key="EditorStyleThrshldPercent"
							 TargetType="{x:Type igEditors:XamCurrencyEditor}">
 <Style.Setters>
 <Setter Property="Margin"
									 Value="2,0" />
 <Setter Property="Format"
									 Value="P2" />
 <Setter Property="Foreground"
									 Value="{Binding DataContext.DataItem.ThresholdPmv_Null, RelativeSource={RelativeSource Self}, Converter={localconverters:GenericDefaultConverter}}" />
 </Style.Setters>
 </Style>
Parents Reply Children
No Data