Im the author of BarTimerHyrbid.
Come across something that is a bit beyond me.
I can't seem to save the gradient colours in a template or as default - it keeps reverting to the given colour in the code which is DarkBlue.
//In OnState == State.Default
Gradient_Mixer_Colour = Brushes.DarkBlue;
Gradient_Mixer_Colour1 = Brushes.Cyan;
//In Properties
[XmlIgnore]
[Display(GroupName = "Flash_Settings", Order = 5, Name = "Flash Gradient"+"\n"+"Mix",
Description = "Mix Colour for Gradient.")]
public SolidColorBrush Gradient_Mixer_Colour { get; set; }
[Browsable(false)]
public string gradient_Mixer_Colour
{
get { return Serialize.BrushToString(Gradient_Mixer_Colour); }
set {if (Gradient_Mixer_Colour != null)
{
if (Gradient_Mixer_Colour.IsFrozen)
Gradient_Mixer_Colour = Gradient_Mixer_Colour.Clone();
Gradient_Mixer_Colour.Freeze();
}
}
}

Comment