I want to create paint application with silverligh, but I have the problem. I have a color rectangle When click the rectangle the shape will be stroked and double click to fill the shape. My code below not work exactly, when double click the first ClickCount
is 1 and then increasing to 2. Can you tell me how to fix it. Thanks.
private void Rect0_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
if (e.ClickCount == 2)
{
RectFront1.Fill = Rect0.Fill;
}
else
{
RectFront.Fill = Rect0.Fill;
}
}