Hello, I have an XamMaskedEditor with a Mask for a currency value.
It looks like this:
<igEditors:XamMaskedEditor Mask="€ nn.nnn,nn" ValueType="{x:Type System:Decimal}" AlwaysValidate="False" >
<Binding Path="CurrencyValue" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" ValidatesOnDataErrors="False" ValidatesOnExceptions="False" NotifyOnValidationError="False" />
</igEditors:XamMaskedEditor>
So is the input mask for this false ?
The property which the value is binded on is:
public decimal? CurrencyValue
{
get { return _CurrencyValue; }
set
if (this._CurrencyValue != value)
this._CurrencyValue = value;
this.NotifyPropertyChanged("CurrencyValue");
}
How can I fix that ? I also tried the XamCurrencyEditor with no other result.
best regards
Mark Buggermann
Hello Mark,
In order to format the value of the editor you will have to go with the Format property on the editor instead of the Mask. The format accepts any of the standard .NET format strings.
Let me know if this is what you are looking for.
Thank you! I got it now working as I wanted it to
<igEditors:XamMaskedEditor Format="C2" Mask="{}{currency:6.2:c}"