<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="Annotations.StickyNote" mc:Ignorable="d" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
	<UserControl.Resources>
		<Style x:Key="NoteButtonStyle" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal" />
									<VisualState x:Name="MouseOver">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="MouseOverElement" Storyboard.TargetProperty="(UIElement.Visibility)">
												<DiscreteObjectKeyFrame KeyTime="00:00:00">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
												<EasingColorKeyFrame KeyTime="00:00:00" Value="#FFFEFE80" />
											</ColorAnimationUsingKeyFrames>
										</Storyboard>
										
									</VisualState>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="MouseOverElement" Storyboard.TargetProperty="(UIElement.Visibility)">
												<DiscreteObjectKeyFrame KeyTime="00:00:00">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
										
									</VisualState>
									<VisualState x:Name="Disabled">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
												<SplineDoubleKeyFrame KeyTime="0" Value=".55" />
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
												<SplineDoubleKeyFrame KeyTime="0" Value="1" />
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Unfocused" />
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border x:Name="Background" BorderThickness="1" BorderBrush="#FFB3B383" CornerRadius="1" Background="#FFEAEAC9" />
							<Border x:Name="MouseOverElement" BorderThickness="1" BorderBrush="#FFFEFE80" CornerRadius="2" Margin="-1" Visibility="Collapsed" />
							<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
							<Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" RadiusX="3" RadiusY="3" IsHitTestVisible="false" Opacity="0" />
							<Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="1" IsHitTestVisible="false" Opacity="0" />
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>
    <Grid Cursor="Arrow">
        <Grid x:Name="Minimized" Visibility="Collapsed" Margin="0 -4 0 0">
            <Button Click="Restore" HorizontalAlignment="Left" Margin="1" Padding="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Style="{StaticResource NoteButtonStyle}">
			<Border Height="4" Width="11" BorderBrush="#FF91911B" BorderThickness="1" />
			</Button>
        </Grid>
        <Grid x:Name="Normal" Width="230" Height="170">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Path Stretch="Fill" Grid.RowSpan="2" Data="M0,0 L230,0 L230,133.05392 C224.91983,146.01178 204.35162,163.95856 191.5127,170 L0,170 z" UseLayoutRounding="False" Stroke="#FFB3B383">
            	<Path.Fill>
            		<LinearGradientBrush EndPoint="0.976,0.978" StartPoint="0.226,0.029">
            			<GradientStop Color="#FFFFFFB0" Offset="0.4" />
            			<GradientStop Color="#FFFFFF80" Offset="0.75" />
            			<GradientStop Color="#FFFFFF80" Offset="0.05" />
            		</LinearGradientBrush>
            	</Path.Fill>
				<Path.Effect>
                	<DropShadowEffect Opacity="0.3" />
            	</Path.Effect>
          </Path>
        	<Canvas HorizontalAlignment="Left" VerticalAlignment="Top">
        		<Line x:Name="line" StrokeThickness="1" Stroke="#FF94945E" /> 
        	</Canvas>
        	<Border x:Name="drag" Height="20" Margin="1,1,1,0">
        		<Border.Background>
        			<LinearGradientBrush EndPoint="0.621,1.852" StartPoint="0.452,-0.394">
        				<GradientStop Color="#FFD5D590" Offset="0" />
        				<GradientStop Color="#FFD5D590" Offset="1" />
        				<GradientStop Color="#FFE0E0A7" Offset="0.649" />
        			</LinearGradientBrush>
        		</Border.Background>
        		<Button Click="Minimize" HorizontalAlignment="Right" Margin="1,1,4,1" BorderThickness="0" Background="Transparent" Padding="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Style="{StaticResource NoteButtonStyle}" Width="12" Height="12">
        			<Rectangle Fill="#FF828257" Height="2" Width="8" RadiusX="1" RadiusY="1" />
				</Button>
        	</Border>
        	<TextBox x:Name="textBox" Background="Transparent" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" Grid.Row="1" TextWrapping="Wrap" Margin="15,10,15,15" BorderThickness="0" FontSize="10.667" />
        	<Path Stretch="Fill" Height="38.756" HorizontalAlignment="Right" Margin="0,0,-0.034,0.003" VerticalAlignment="Bottom" Width="40.079" UseLayoutRounding="False" Grid.Row="1" Data="M189.84035,170.00876 C197.33684,170.0085 228.60649,151.31128 230.03473,131.06474 C230.03473,131.06474 225.10219,141.21191 218.00519,143.39558 C210.90819,145.57924 206.90477,145.39726 206.90477,145.39726 C206.90477,145.39726 206.54077,151.76627 203.26523,158.13528 C199.98969,164.50429 189.84035,170.00876 189.84035,170.00876 z">
        		<Path.Stroke>
        			<LinearGradientBrush EndPoint="0.423,0.372" StartPoint="0.634,0.619">
        				<GradientStop Color="#FFB3B383" />
        				<GradientStop Color="#7FB3B383" Offset="1" />
        			</LinearGradientBrush>
        		</Path.Stroke>
        		<Path.Fill>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FFCECE1C" Offset="0" />
        				<GradientStop Color="#FFFFFFC6" Offset="1" />
        			</LinearGradientBrush>
        		</Path.Fill>
        	</Path>
        </Grid>
    </Grid>
</UserControl>