1
Answer

Rectangle change color to green when is clicked or mousedown

Enos

Enos

10y
917
1
Hi Guys,
 
I have 5  rectangles  and i want one to change color to green if it is pressed . am using C#
 
<Rectangle x:Name="RghtFInger2" Fill="Red" HorizontalAlignment="Left" Height="30" Margin="552,36,0,0" Stroke="Black" VerticalAlignment="Top" Width="27" MouseDown="Right_Finger9_Click"/>
 
<Rectangle x:Name="RghtFInger1" Fill="Red" HorizontalAlignment="Left" Height="30" Margin="587,70,0,0" Stroke="Black" VerticalAlignment="Top" Width="28" RenderTransformOrigin="0.357,0.433" MouseDown="Right_Finger10_Click"/>
 
 
 
Answers (1)