Private Sub Button1_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
' The following will print out False. XAML code sets the MinInclusive
' to 10 and as a result the value of 9 is invalid.
Me.textEditor1.Value = 9
Debug.WriteLine("IsValueValid = " & Me.textEditor1.IsValueValid)
' The following will print out True since now after setting the value
' to 10, the value is valid.
Me.textEditor1.Value = 10
Debug.WriteLine("IsValueValid = " & Me.textEditor1.IsValueValid)
End Sub