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
20
Dynamically changing the XamNumericEditor Mask at runtime
posted

I have an application with multiple XamDataGrids displayed in one window. I want to add a user option to set the number of decimal places displayed in the grids and have the grids update dynamically. Ideally, I would not have to write this code for each grid.

Is there a way to change the mask value of the XamNumericEditor's Style dynamically based on a value set in a ViewModel and have that update the grid display? Or is there another approach anyone could suggest?

Thanks!

 

Parents
No Data
Reply
  • 12875
    posted

    HI,

    Take a look at the feature browser samples for xamEditors, Standalone Usage, Numeric Editor.  This sample includes a comboBox of masks to select from. 

     

    The xamNumbicEditor mask is then bound to the selected item in the comboBox’s tag.

     

    I’m sure you could create a collection of masks and descriptions of the masks to fill the comboBox, including the tags of the items.

     

Children