Mahdi
Mahdi

Reputation: 1827

Prevent submit empty textbox in Windows 8 Metro Application

is there any control like RequiredFeild control (asp.net) in windows 8 metro? I have a simple form with several text boxes and I just want to make sure to prevent submit it when a textbox is empty. I know it can be easy in code but I'm eager to know are there any alternative ways?

Upvotes: 3

Views: 624

Answers (3)

Mahdi
Mahdi

Reputation: 1827

this is another solution that I found.

Here

Upvotes: 1

Serge Belov
Serge Belov

Reputation: 5793

You might want to use WinRT XAML Toolkit:

TextBoxValidationExtensions - extensions that allow to specify the Format of the requested Text input as well as brushes to use to highlight a TextBox with valid or invalid Text.

I'm assuming you actually want to validate the input.

Upvotes: 2

Arman Hayots
Arman Hayots

Reputation: 2508

Why you don't use String.IsNullOrEmpty() ?

Upvotes: 0

Related Questions