Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit Image viewer with zoom
2 replies. Latest Post by SilverlightNovice on November 26, 2008.
(0)
Silverli...
Member
12 points
37 Posts
11-26-2008 6:43 PM |
Hi
i have a image viewer with zoom function images are located at
<Grid><Rectangle><Rectangle.Fill><ImageBrush ImageSource="DSC021.jpg"></Rectangle.Fill> </Rectangle> <Rectangle><Rectangle.Fill><ImageBrush ImageSource="DSC045.jpg"></Rectangle.Fill> </Rectangle> <Rectangle><Rectangle.Fill><ImageBrush ImageSource="DSC054.jpg"></Rectangle.Fill> </Rectangle> <Rectangle><Rectangle.Fill><ImageBrush ImageSource="DSC032.jpg"></Rectangle.Fill> </Rectangle> </Grid>
Is there anything i have to do specifically to make image zoom to central screen on mouse over since they are placed in rectangle or i can acheive this with normal zoom function
thanks
SN
FuryDiamond
Contributor
3840 points
766 Posts
11-26-2008 7:39 PM |
You could add a MouseEnter event handler and have that translate to the center screen or you could have an empty rectangle in the center of the screen (horizontal and vertical aligned) and update the fill of that rectangle with the selected image.
11-26-2008 8:32 PM |
thanks for reply i did exactly the same MouseEnter & MouseLeave