When creating a custom color input for a drawing object, it does not save when saving the workspace or when saving the indicator as default. On next load up, its back to the base color within the source. Is there a workaround for this or how does one fix this? Here is the source for reference.
.....State.SetDefaults DevColor = Brushes.DarkSlateGray; ....OnBarUpdate SolidColorBrush scb1 = DevColor as SolidColorBrush; SolidColorBrush newDevColor = new SolidColorBrush(Color.FromArgb((byte)(2.55*DevOpacity),scb1.Color.R,scb1.Color.G,scb1.Color.B)); newDevColor.Freeze();
[Range(0, int.MaxValue), NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "Dev Line Opacity", GroupName = "Base Deviations", Order = 9)] public byte DevOpacity { get; set; } [NinjaScriptProperty] [XmlIgnore] [Display(Name = "Dev Line Color", GroupName = "Base Deviations", Order = 8)] public Brush DevColor { get; set; }
Comment