title: UWP Is there anyway to implement control for resizing, and move textbox in Canvas?
body: <p>I'm new to UWP canvas element. From the moment I have been finding the way to implement it. I have found this link <a href="https://www.codeproject.com/Articles/22952/WPF-Diagram-Designer-Part" rel="nofollow noreferrer">this link</a> which implementing the control that I want. However I follow the class that define in it. I can't inherit the Thumb control which showing it is Sealed type. Is there anyone know how to find a way out to implement this?</p>
  
  <pre><code>public class MoveThumb : Thumb
  {
  
      public MoveThumb(Control dataContext, DragDeltaEventHandler dragDelta)
      {
          DataContext = dataContext;
          DragDelta = dragDelta;
      }
  
      public Control DataContext { get; private set; }
      public DragDeltaEventHandler DragDelta { get; }
  
      private void MoveThumb_DragDelta(object sender, DragDeltaEventArgs e)
      {
          Control designerItem = this.DataContext as Control;
  
          if (designerItem != null)
          {
              double left = Canvas.GetLeft(designerItem);
              double top = Canvas.GetTop(designerItem);
  
              Canvas.SetLeft(designerItem, left + e.HorizontalChange);
              Canvas.SetTop(designerItem, top + e.VerticalChange);
          }
      }
  }
  </code></pre>