I'd like to create a custom Argb color for my private Brushes.
What works for "standard" colored private Brushes:
// within: if (State == State.SetDefaults)
UpGreen = Brushes.DarkGreen;
// then within #region Properties
[NinjaScriptProperty]
[XmlIgnore]
[Display(Name="UpGreen", Order=8, GroupName="Parameters")]
public Brush UpGreen
{ get; set; }
[Browsable(false)]
public string UpGreenSerializable
{
get { return Serialize.BrushToString(UpGreen); }
set { UpGreen = Serialize.StringToBrush(value); }
}
---------------------------------------------
Now my challenge, how to customize the Brushes color with Argb. I expected this to work:
"UpGreen = Brushes.(Brushes.FromArgb(50,0,80,40));"
But it does not work. Thanks in advance.
Comment