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
255
Issue with binding for Numeric Input constraint
posted

Hi,

I'm working with NetAdvange for WPF and I have the following code:

         <ig:XamNumericInput Name="Quantity"
                             Grid.Row="1"
                             Grid.Column="1"
                             Height="28"
                             PromptChar=" "
                             SpinButtonDisplayMode="Never"
                             ValueTypeName="double"
                             Value="{Binding Path=Quantity,
                                             ValidatesOnDataErrors=True,
                                             UpdateSourceTrigger=PropertyChanged}">
            <ig:XamNumericInput.ValueConstraint>
               <ig:ValueConstraint MaxInclusive="{Binding MaxQuantity}" MinInclusive="0" />
            <ig:XamNumericInput.ValueConstraint><ig:XamNumericInput>

and the Property:

public double MaxQuantity
{
   get
   {
      return lMaxQuantity;
   }
}

The Binding for MaxInclusive constraint is not working. I don't know if this is an issue of the control or is not allowed to use binding here.

I reviewed this topic http://ko.infragistics.com/community/forums/p/73987/374112.aspx and nothing seems to be different....

Can you help me please? Is there anything wrong?

Best Regards,

Claudio Herrera


Parents Reply Children