Change default colors in palette

Oct 30, 2014 at 1:20 AM
Edited Oct 30, 2014 at 1:28 AM
I read the Documentation about "How to use a custom color palette", but I'm having problems with this.

My code is like this:

On MainPage.xaml:
                       Palette="{StaticResource CustomColors}"
                        ... >

On Generic.xaml:

    <chart:ResourceDictionaryCollection x:Key="CustomColors">
            <SolidColorBrush x:Key="Brush1" Color="#FF5B9BD5" />
            <SolidColorBrush x:Key="Brush2" Color="#FFED7D31" />
            <SolidColorBrush x:Key="Brush3" Color="#FFA5A5A5" />
            <SolidColorBrush x:Key="Brush4" Color="#FFFFC000" />
But "Palette="{StaticResource CustomColors}" is not recognized.
The phrase "The resource 'CustomColors' could not be resolver" appears.

Has anyone had this problem? There is another way to change the colors?