Styling WPF Toolkit controls in Application.Resources

Oct 15, 2009 at 6:24 AM

I'm using the WPF Toolkit and added


to my App.xaml file.

But when I try to reference one of the controls in the WPF Toolkit in my Styles, I'm getting an error.

<Setter Property="Controls.DatePicker.MinWidth" Value="120" /> doesn't work ,
and neither does <Setter Property="DatePicker.MinWidth" Value="120" /> (Error: Cannot resolve the Style Property 'MinWidth'. Verify that the owning type is the Style's TargetType, or use Class.Property syntax to specify the Property.)


What is the correct syntax?