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
60
binding to ValueConstraint MaxInclusive
posted

I am using a xamDataGrid and there is a ValueConstraint with a fixed value of 30 for MaxInclusive.

I need to add a binding for MaxInclusive so that I can change it a run time but nothing seems to work.

How can I bind to the MaxInclusive property?

                                                <igWPF:Field Name="Zone1Amps" Label ="Zone Current"  Width="150">
                                                    <igWPF:Field.Settings>
                                                        <igWPF:FieldSettings>
                                                            <igWPF:FieldSettings.EditorStyle>
                                                                <Style TargetType="igWPF:XamNumericEditor">
                                                                    <Setter Property="IsEnabled" Value="{Binding IsEditEnabled, ElementName=rampGrid}" />
                                                                    <Setter Property="Format" Value="0.000" />
                                                                    <Setter Property="ValueType" Value="{x:Type System:Double}" />
                                                                    <Setter Property="Mask" Value="{}{double:2.3}" />
                                                                    <Setter Property="ValueConstraint">
                                                                        <Setter.Value>
                                                                            <igEditors:ValueConstraint Nullable="False" MinInclusive="0" MaxInclusive="30" ValidateAsType="Double"/>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                </Style>
                                                            </igWPF:FieldSettings.EditorStyle>
                                                        </igWPF:FieldSettings>
                                                    </igWPF:Field.Settings>
                                                </igWPF:Field>

Parents Reply Children