-
|
The Best from DevelopMentor
|
MORE
|
-
WPF MVVM Helper Library (WPF + MVVM = testability)
usage around the WPF and Silverlight technology stack. When teaching WPF, I
always always introduce students to MVVM as part of the Essential WPF class, it's an incredibly
useful utility classes, helpers, wrappers, etc. There's been a lot of talk about the Model-View-ViewModel pattern recently and it's
usage useful pattern that really separates the UI from the code behind behavior.
-
(Possibly) better validations in WPF
I've never cared much for the built-in validation mechanisms provided by WPF.
I just don't think any of them feel natural to the way we build WPF applications today.
Basically, there are essentially three mechanisms built into WPF for validations:
Validation Rules
Exceptions
IDataErrorInfo
Validation rules are checked prior to transferring the value from the bound control
to your source (typically the business object).
-
Part 3: Shifting focus to the first available element in WPF
thing I like to do with WPF is see how much of the repetitive or UI-specific code
out that you can't get WPF to do this directly from XAML - because the TextBox isn't
a markup extension is trivial - you just extend the MarkupExtension base
class and implement the ProvideValue method. We've seen how to programatically control focus and that's all great stuff, but one
I can move into the XAML and keep out of the code behind.
-
Part 3: Shifting focus to the first available element in WPF
thing I like to do with WPF is see how much of the repetitive or UI-specific code
I out that you can't get WPF to do this directly from XAML - because the TextBox isn't
a markup extension is trivial - you just extend the MarkupExtension base
class class and implement the ProvideValue method. We've seen how to programatically control focus and that's all great stuff, but one
thing I
-
MVVM: Introducing the message visualizers
public class TitledCommand
{
///
/// Title
to public class MainViewModel : ViewModel
{
private string _title;
///
/// Title
for public class MainViewModel : ViewModel
{
...
///
/// Visualization
Command In this post, I will go over the simple message visualizers available in the MVVM
Helpers Helpers toolkit.
-
Six Things That’ll Surprise You About .NET 4.0
based on .NET
4.0 sketch out a scenario in code involving a set of classes before they are completely
written that VS 2010 was rewritten in WPF and as part of that rewrite now has true multi-monitor
support? and moreover that designer is rehostable in your own Windows Forms or WPF applications.
I recently wrote an article for DevelopMentor ’s
Developments Developments entitled
“ Six Things
That’ll
Michael C. Kennedy's Weblog
- Wednesday, November 11, 2009
-
(Possibly) better validations in WPF
I've never cared much for the built-in validation mechanisms provided by WPF.
I just don't think any of them feel natural to the way we build WPF applications today.
Basically, Basically, there are essentially three mechanisms built into WPF for validations:
Validation added with WPF 3.5 I Validation Rules
Exceptions