Hello,
I need to using this editor in the format dd/mm/yyyy. I put the mask: Mask="{}{LOC}dd/mm/yyyy". But when this editor lost the focus the format, it change to mm/dd/yyyy. How can I use this formatting: dd/mm/yyyy?
Thank you
I wasn't able to reproduce the problem. Is it possible that you have set the Format property of the editor? The Format is used to control the display of the value when not in edit mode but the masked editor will use its mask by default if the Format is not specified.
Hi Andrew Smith,
I Cheked the Documentation (XamDateTimeEditor.Members) and put this source in the Code Behind.
protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); this.DateTimeEditorEmission.FormatProvider = new System.Globalization.CultureInfo("pt-BR"); Debug.WriteLine(this.DateTimeEditorEmission.DisplayText); }
Now it's correct.
Thank you, for your support.