示例#1
0
        private static void OnActorResize(object sender, AllocationChangedArgs args)
        {
            Actor actor = (Actor)sender;

            if (idleResizeId == 0)
            {
                idleResizeId = Threads.AddTimeoutFull(50, 1000, delegate {
                    float width, height;

                    actor.GetSize(out width, out height);
                    ((Canvas)actor.Content).SetSize((int)Math.Ceiling(width), (int)Math.Ceiling(height));
                    idleResizeId = 0;

                    return(false);
                });
            }
        }
 private void HandleAllocationChanged(object o, AllocationChangedArgs args)
 {
     RedrawInterface();
 }
 private void HandleAllocationChanged(object o, AllocationChangedArgs args)
 {
     RedrawInterface();
 }