We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The WPF Percent TextBox control provides a simple and intuitive interface to display and edit culture-specific Percent values. It supports culture-based formatting, number formatting, minimum and maximum value validation, watermark support, built-in themes, a range adorner, right-to-left support, positive and negative colors, and more.

WPF PercentTextBox Getting Started documentation


Number formats

The numeric textbox can be formatted based on the number formats listed on MSDN. Through formatting, the number of percent decimal digits, the percent decimal separator, and the group separator can be provided.

Number Formats in WPF PercentTextBox


Validation

Minimum and maximum value validation can be done within the given range. Users can choose when the validation needs to be carried out, either while entering the value or when the control loses its focus. The Percent TextBox control also allows users to do custom validation on their own.

Validation in WPF PercentTextBox


Internationalization

The WPF Percent TextBox control comes with internationalization support to adapt to any culture through simple settings.

WPF PercentTextBox with German Culture


Watermark

Watermarks provide additional hints to users about the value they need to enter in the textbox.

WPF PercentTextBox displays Watermark Text


Style and Customization

WPF PercentTextBox with Different Styles

Built-in themes

The WPF Percent TextBox provides built-in themes like Office2016, Office2013, Metro, and Blend.

Customizing Text Color in WPF PercentTextBox

Fore color customization

Set different fore colors based on positive, negative, and zero color.

RangeAdorner in WPF PercentTextBox

Range adorner

Increase or decrease a value just by scrolling the mouse or through extended scrolling. Display the entered value with progress notation.


Right-to-left (RTL)

The control supports right-to-left (RTL) direction for users working in right-to-left languages like Hebrew, Arabic, or Persian.

WPF PercentTextBox in Right-to-Left


Complete keyboard and mouse support

Increment or decrement values through keyboard down and up operations. Change the values through mouse wheel operations.

Changing WPF PercentTextBox Value by using Keyboard and Mouse


WPF Percent TextBox Code Example

Easily get started with the WPF Percent TextBox using a few simple lines of XAML, and C# code example as demonstrated below. Also explore our WPF Percent TextBox Example that shows you how to render and configure the PercentTextBox in WPF.

<syncfusion:PercentTextBox x:Name="percentTextBox" Width="100" Height="25" VerticalAlignment="Center" HorizontalAlignment="Center"/>
using Syncfusion.Windows.Shared; 
public partial class MainWindow : Window 
{ 
    public MainWindow() 
    { 
        InitializeComponent(); 
        //Creating an instance of PercentTextBox control 
        PercentTextBox percentTextBox = new PercentTextBox(); 
        // Setting height and width to PercentTextBox 
        percentTextBox.Height = 25; 
        percentTextBox.Width = 100; 
        //Adding PercentTextBox as window content 
        this.Content = percentTextBox; 
    } 
}



95+ WPF CONTROLS

Frequently Asked Questions

  • Null support and value validation customization.
  • Support for different cultures and custom formatting.
  • Simple configuration and APIs.
  • Support for localization and globalization.
  • Rich UI interaction and keyboard navigation.
  • MVVM support.
  • One of the best WPF Percent Textbox in the market that offers feature-rich UI to interact with the software.
  • Touch-friendly and responsive UI.
  • Extensive demos and documentation for getting started quickly with the WPF Percent TextBox control.

You can find our WPF Percent TextBox demo on

GitHub location.

App center location.

Microsoft location.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Syncfusion wpf Resources

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon
Live Chat Icon For mobile