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
165
XamMaskedEditor Converter problems
posted

I'm having some issues getting the XamMaskedEditor Converter to work, and I'm not sure if it's my approach or something I'm missing.  I'm trying to get a time format mask and convert that to a timespan (e.g. hh:mm:ss).

In NetAdvantage for WinForms I accomplished this via a DataFilter on my UltraMaskedEdit.  I thought I could accomplish the same thing with the XamMaskedEditor and similar ValueToDisplayTextConverter/ValueToTextConverter converters.  However, when I set both of these up, XamMaskedEditor doesn't seem to respect the converter in edit mode.  DisplayMode appears to work correctly.

Are there any examples out there of something similar?  The documentation refers to a similar case here: http://help.infragistics.com/Help/NetAdvantage/WPF/2007.2/CLR3.X/html/xamEditors_Overview_of_the_ValueEditor_Class.html

but I have not been able to find code/examples in the rest of the docs or the feature browser.

Is this the correct approach, or is the appropriate replacement for the DataFilter functionality at the DataBinding instead?

 Any help is appreciated.  Thanks,

- Micah

Parents
  • 9694
    posted

    Hello Micah,

    From your post, it sounds like you have set up the converters correctly. Would you provide me a snippet of code and XAML or a sample project which will demonstrate the approach you are taking. I should be able to take a closer look and determine why the converters are not working as you would expect. If you want to attach a sample project, you are welcome to email me the project directly if you would prefer to keep any of the code confidential.

    Thank you,

Reply Children