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
1015
Pass parameter to xamNumericEditor ValueConverter
posted

I have created a value converter that works fine for the xamNumericEditor. I need to send a parameter so that the converter does what I really need. I cannot use the standard Converter and ConverterParameter properties because I am not specifying fields as my xamDatagrid is bound to a dynamic DataTable object.

<Style TargetType="{x:Type igEditors:XamNumericEditor}">
                    <Setter Property="Mask" Value="{Binding ElementName=maskTextBox,Path=Text}"/>                    
                    <Setter Property="ValueToDisplayTextConverter" Value="{StaticResource ExConverter}"/>                    
                    <Setter Property="TrimFractionalZeros" Value="True"/>
                    <Setter Property="Foreground" Value="White" /> 
                    <Setter Property="ValueType" Value="{x:Type sys:Double}"/>
 </Style>