If you develop a Windows Presentation Foundation (or UWP or MAUI) application with MvvM pattern and don’t use any framework for that like Prism, you better take a look at what .NET Community Toolkit has prepared for you.
The Windows Presentation Foundation DataGrid control offers a huge possibilities regarding displaying tabular data. However one functionality I was always missing in data grid was the possibility to fire a command when user clicks a row.
In a previous post I have described hot to utilize a INotifyDataErrorInfo interface. Today I will show you my solution for automated cross-property validation integrated with the ModelValidation base class from previous post.
In a previous post I showed you how to use IDataErrorInfo interface to implement simple validation mechanism in WPF MvvM application. In this post we will try to extend and customize this approach a little.
Model View View-Model is one of most popular design pattern used in WPF applications. Thanks to binding, dependency properties and other features, WPF has been adjusted and, I believe, somehow designed to be used with MvvM pattern easily.
Part 3. Displaying and binding localized names of enum values in ASP.NET MVC 3 application To display localized enums in ASP.NET MVC 3 application we use custom description attribute described in Part 2) and extension method to get the description for each enum value. The type converter is not useful here so we need another approach to achieve the goal. Let’s generate the editi…