Advertisement
Guest User

Untitled

a guest
May 25th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <Button Content="Next" Command="{Binding BookingWizard.BookingCommands.ValidateCustomerDetailsForm}" />
  2.  
  3. private BookingCommands _BookingCommands;
  4. public BookingCommands BookingCommands { get { return _BookingCommands; } set { _BookingCommands = value; RaisePropertyChanged("BookingCommands"); } }
  5.  
  6. public ICommand ValidateCustomerDetailsForm
  7. {
  8. get
  9. {
  10. if (_ValidateCustomerForm == null)
  11. {
  12. _ValidateCustomerForm = new BookingCommand(
  13. param => ValidateCustomerDetails()
  14. );
  15. }
  16. return _ValidateCustomerForm;
  17. }
  18. }
  19.  
  20. private void ValidateCustomerDetails()
  21. {
  22. //do something here
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement