New to Telerik UI for WinUI? Download free 30-day trial

Getting Started with WinUI MaskedInput

In this help article, we are going to create a RadMaskedInput control using the Telerik UI for WinUI.

Assembly References

In order to use the RadMaskedInput controls in your projects, you have to add a reference to the following assembly:

  • Telerik.WinUI.Controls.dll

Merge the Generic.xaml ResourceDictionary

In order for the masked input controls to receive their styles, you have to merge the Generic.xaml ResourceDictionary in App.xaml.

Example 3: Merge the Generic.xaml ResourceDictionary

<Application.Resources> 
    <ResourceDictionary> 
        <ResourceDictionary.MergedDictionaries> 
            <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" /> 
            <ResourceDictionary Source="ms-appx:///Telerik.WinUI.Controls/Themes/Generic.xaml"/> 
            <!-- Other merged dictionaries here --> 
        </ResourceDictionary.MergedDictionaries> 
        <!-- Other app resources here --> 
    </ResourceDictionary> 
</Application.Resources> 

Adding a RadMaskedInput control to the Project

You can access the RadMaskedInput controls through an alias pointing to the Telerik.UI.Xaml.Controls.Input namespace: xmlns:input="using:Telerik.UI.Xaml.Controls.Input"

Example 1: Adding a RadMaskedInput in XAML

<input:RadMaskedTextInput Mask="###" /> 
WinUI RadMaskedInput RadMaskedInput Getting Started

Telerik UI for WinUI Learning Resources

See Also

In this article
Not finding the help you need?