Home Forums WPF controls Xceed DataGrid for WPF Visually indicating a NumericTextBox is ‘out of range’

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #27183 |

    Hi, I am trying to set up a style for a NumericTextBox that changes forground color when the input is invalid or out of range.

    The trigger on Property=”HasParsingError” Value=”True” works fine however I can’t define a trigger that works to detect when Value=NullValue which indicates an out of range error.

     I have tried the following trigger definitions

    Property=”Value” Value=”null”

    Property=”Value” Value=””

    Property=”Value” Value=”-1″   (In this case I had set NullValue=”-1″ on the NumericTextBox)

    In no cases will the trigger fire.  I even tried to define a binding to the NullValue property only to find trigger values don’t support binding.  Am I missing something obvious?  Looking at the value of “Value” and “NullValue” in a LostFocus handler I can see that they are equal when expected so why can’t I get a trigger to work.

    Many Thanks


    Adrian Heath

    Imported from legacy forums. Posted by Adrian (had 571 views)

    Xceed Support
    Post count: 5658


    Property=”Value” Value=”{x:Null}”

    Imported from legacy forums. Posted by Jenny [Xceed] (had 715 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.