ColorProperty Sample

Back to summary

Source

using System.Windows.Media;

namespace XmlSerializersTest.Samples
{
    [Title("Property of type Color")]
    public class ColorProperty
    {
        public Color Color { get; set; }
    }
}

XAML Serializer

<ColorProperty Color="#FFFF0000" xmlns="clr-namespace:XmlSerializersTest.Samples;assembly=XmlSerializersTest" />