Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Requred field Validation in WPF+MVVM
November 24, 2010
I have a Xaml Page.
Where I have One TextBox Control,One ComboBox control,And One Save
button.Text Box and the combo box control is the Mandatory field.
So these fields are empty the Save button should be disable.If u put any thing in TextBox and the combobox then only the Mandatory field symbol goes off and the button become enable.
Here I am using MVVM pattern....
Please help me ...
I am waiting for reply
Posted Date: November 24, 2010 Points: 5
you can create a boolean property in your view model; in your xaml, bind the save button's IsEnabled event to that property of view model; and in your required field validation logic keep changing boolean property so as to when
to disable and enable the save button depending on your validation
To post reply
Related Questions Related Questions
ASP.NET web application - Serverside validation of form field's data
validation on phone no
having doubt in required field validator
textbox validation in windows applcation..
multiple button and validation control
Hidden Field Value assigned in client side and get in Server side
How to pass multiple Querystring in datagrid field
What is Hidden Field? How to use that?
Problem in DataGridView Cell Validation in c#
Latest Forum Questions From The Same Category
Share WPF Application over net
Rich Desktop Interactive application
How To Find the Combobox in Wpf
Getting Row Value is null in WPF.
Combobox Binding in WPF
Add button to datagrid Dynamially in wpf
Detecting Mobile Device IMEI, IMSI, Model, Comport Information using AT commands in VB.Net
Show the Default Text Of Combobox as "--Select--" when combo is binding to dataset.
how to stop .swf html page any button click in wpf,any idea please share with me
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend