示例#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();
        }
示例#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);
 }