Skip to content

Example: MVVM Bindings And Input Validation #23

@dhcgn

Description

@dhcgn
  • Basic WPF .Net Core MVVM Application
  • TextBox has a Binding to ViewModel
  • TextBox has an Validation (e.g. only one word is allowed)
  • TextBlock has the same Binding to ViewModel as TextBox (so you can see the state of the ViewModel)
  • Button is disabled if input is invalid
  • Border of TextBox is red if input is invalid
  • A Tooltip is active (e.g. if you hover over the TextBox) if input is invalid
  • Readme.md explains this example with code excerpts
  • The root Readme.md reference this examples Readme.md

image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions