<Application x:Class="NURBS.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:NURBS"
             DispatcherUnhandledException="AppDispatcherUnhandledException"
             StartupUri="InputWindow.xaml">
    <Application.Resources>
        <BitmapImage x:Key="AxesImage" UriSource="/axes.png" />

        <ControlTemplate x:Key="MoveThumbTemplate"
                         TargetType="{x:Type local:MoveThumb}">
            <Rectangle Fill="Transparent"/>
        </ControlTemplate>

        <ControlTemplate x:Key="DesignerItemTemplate"
                         TargetType="ContentControl">
            <Grid DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}">
                <local:MoveThumb Template="{StaticResource MoveThumbTemplate}"
                                 Cursor="Hand"/>
                <ContentPresenter Content="{TemplateBinding ContentControl.Content}"/>
            </Grid>
        </ControlTemplate>
    </Application.Resources>
</Application>
