ResizeThumb CreateRotateThumb()
        {
            ResizeThumb rotateThumb = new RotateThumb();

            rotateThumb.Cursor    = Cursors.Hand;
            rotateThumb.Cursor    = ZoomControl.GetCursor("Images/rotate.cur");
            rotateThumb.Alignment = PlacementAlignment.Top;
            AdornerPanel.SetPlacement(rotateThumb,
                                      new RelativePlacement(HorizontalAlignment.Center, VerticalAlignment.Top)
            {
                WidthRelativeToContentWidth = 1, HeightOffset = 0
            });
            adornerPanel.Children.Add(rotateThumb);

            DragListener drag = new DragListener(rotateThumb);

            drag.Started += drag_Rotate_Started;
            drag.Changed += drag_Rotate_Changed;
            return(rotateThumb);
        }