Articles in this section

How to enable validation LostFocus for WPF PercentTextBox?

You can validate the minimum and maximum value on lost focus by setting the ValidationOnLostFocus property to true in WPF PercentTextBox.

XAML

<Grid>
     <syncfusion:PercentTextBox Name="Percent" Width="150" Height="80" ValidationOnLostFocus="True" MinValue="0" MaxValue="100" >
     </syncfusion:PercentTextBox>
</Grid>

C#

//Code Explains how to enable validationOnLostFocus for PercentTextBox
namespace PercentTextBox1
{
  public partial class MainWindow : Window
  {
    public MainWindow()
    {
       InitializeComponent();
       Percent.ValidationOnLostFocus = true;
    }
  }
}

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied