Ejemplo n.º 1
0
        private static void BindableWidthCallback(ProgressRing ring, AvaloniaPropertyChangedEventArgs e)
        {
            //var action = new Action(() =>
            //{
            ring.SetEllipseDiameter((double)e.NewValue);
            ring.SetEllipseOffset((double)e.NewValue);
            ring.SetMaxSideLength((double)e.NewValue);
            //});

            //if (ring._deferredActions != null)
            //    ring._deferredActions.Add(action);
            //else
            //    action();
        }
Ejemplo n.º 2
0
 private static void BindableWidthCallback(ProgressRing ring, AvaloniaPropertyChangedEventArgs e)
 {
     ring.SetEllipseDiameter((double)e.NewValue);
     ring.SetEllipseOffset((double)e.NewValue);
     ring.SetMaxSideLength((double)e.NewValue);
 }