This project has moved. For the latest updates, please go here.

Extending NumericUpDown<T> - How to inherit default themes from toolkit

Dec 23, 2015 at 5:00 PM
Edited Dec 28, 2015 at 2:45 AM
I have a WPF control library I'm developing that will use the toolkit as its base of controls. I was wondering what is the best way to make sure all of my controls use the themes/styles defined in the toolkit?

I have created Generic.xaml in my base Themes directory.
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:controls="clr-namespace:Skty.Common.Wpf.Controls">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Xceed.Wpf.Toolkit;component/NumericUpDown/Themes/Generic.xaml"/>
    </ResourceDictionary.MergedDictionaries>

    <Style TargetType="{x:Type controls:FormattedUpDown}" BasedOn="{StaticResource NumericUpDown}"/>
</ResourceDictionary>
I'm gettting 'Resource NumericUpDown not found' in VS designer. What might I be doing wrong?