Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends.

on dashboard i have one mange user image . i want to change an image on image mouse over in UWP using code behind or xaml or style.

Thanks in advance. :)
Have a great day.. :)

What I have tried:

<Image Source="manage_user.png" Height="120" Width="120"  Tapped="ManageUserPage"  Margin="176,31,534,84" Grid.Row="1"  />


i have just one image code.
Posted
Updated 11-Apr-19 19:31pm
v2
Comments
[no name] 15-Mar-19 11:40am    
That's not a question. Going out to play now?

1 solution

private void Imgmanage_user_PointerEntered(object sender, PointerRoutedEventArgs e)
      {
          this.Imgmanage_user.Source = new BitmapImage(new Uri(this.BaseUri, "Images/manage_User.png")); // on mouse over display new image.
      }

      private void Imgmanage_user_PointerExited(object sender, PointerRoutedEventArgs e)
      {
          this.Imgmanage_user.Source = new BitmapImage(new Uri(this.BaseUri, "manage_user.png")); // on mouse remove from image place the previous image
      }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900