Example #1
0
 private void Update()
 {
     if (_control != null)
     {
         var c = new Noesis.Color(color.Value.r, color.Value.g, color.Value.b, color.Value.a);
         _control.Foreground = new SolidColorBrush(c);
     }
 }
Example #2
0
        public override void OnEnter()
        {
            if (element != null)
            {
                if (element.Value is SystemObject)
                {
                    var control = ((SystemObject)element.Value).Object as Noesis.Control;
                    if (control != null)
                    {
                        var brush = control.Foreground;
                        if (brush is SolidColorBrush)
                        {
                            Noesis.Color c = ((SolidColorBrush)brush).Color;
                            color.Value = new UnityEngine.Color(c.R, c.G, c.B, c.A);
                        }
                    }
                }
            }

            Finish();
        }