Basic Library for WPF and Silverlight | ComponentOne
WPF and Silverlight Edition Basic Library / Masked Text Box / MaskedTextBox Quick Start / Step 4 of 4: Running the Application
In This Topic
    Step 4 of 4: Running the Application
    In This Topic

    Now that you've created a WPF or Silverlight application and customized the application's appearance and behavior, the only thing left to do is run your application. To run your application and observe MaskedTextBox for WPF and Silverlight's run-time behavior, complete the following steps:

    1. From the Debug menu, select Start Debugging to view how your application will appear at run time. It will appear similar to the following:

    Notice the watermark that appears in each C1MaskedTextBox control.

    1. Enter a number in the first C1MaskedTextBox control:

    The label below the control displays the mask, current value, and current text.

    1. Enter a string in the second C1MaskedTextBox control:

    Notice that there was no mask added to this control – if you chose, you could type numbers or other characters in the control.

    1. Try entering a string in the third C1MaskedTextBox control. Notice that you cannot – that is because the Mask property was set to only accept numbers. Enter a numeric value instead – notice that this does work.
    2. Enter numbers in each of the remaining controls. The application will appear similar to the following image:

    Notice that the Value property displayed under each C1MaskedTextBox control does not include literal characters, while the Text property does.

    Congratulations!

    You've completed the MaskedTextBox for WPF and Silverlight quick start and created a MaskedTextBox for WPF or Silverlight application, customized the appearance and behavior of the controls, and viewed some of the run-time capabilities of your application.