I would like to have a Canvas that supports the DragDelta event. My first idea of how to do this was to make a ControlTemplate that includes a thumb. But I do not know how to do this correctly. How can I change the XAML below to make it compile, and what's the right way to install the DragDelta event handler?
<UserControl.Resources>
<ControlTemplate x:Key="Transparent">
<Rectangle Fill="Transparent"/>
</ControlTemplate>
<ControlTemplate x:Key="ThumbCanvas" TargetType="{x:Type Canvas}">
<Grid>
<Thumb x:Name="CanvasThumb" Template="{StaticResource Transparent}" DragDelta="CanvasThumb_DragDelta"/>
<ContentPresenter Content="{TemplateBinding Content}"/>
<!--error MC3011: Cannot find the static member 'ContentProperty' on the type 'Canvas'.-->
</Grid>
</ControlTemplate>
</UserControl.Resources>