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>
Hello,
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thank you for your post. I have been looking into the functionality that you have described and I can suggest using the Mask property of the XamCurrencyEditor. The Mask property controls the input of the editor when it is in edit mode. You can see the available masks here in our documentation: http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=xamInputs_Masks.html. I have also created a sample application for you, that shows how can setup the mask, so when you enter edit mode, to have the percent character displayed after the value.
Please let me know if you need any further assistance on the matter.