Пример #1
0
        protected void PositionChild(UIElement child, double x, double y, DDPanelHandlePosition position)
        {
            double w    = child.DesiredSize.Width;
            double h    = child.DesiredSize.Height;
            Rect   rect = new Rect(x - w / 2, y - w / 2, w, h);

            child.Arrange(rect);

            if (child is DDPanelHandle)
            {
                (child as DDPanelHandle).Position = position;
            }
        }
Пример #2
0
 protected DDPanelHandle(IDDHandleHolder holder)
     : base(holder)
 {
     Position = DDPanelHandlePosition.None;
 }