Skip to main content

Microsoft Silverlight

Image viewer with zoomRSS Feed

(0)

SilverlightNovice
Silverli...

Member

Member

12 points

37 Posts

Image viewer with zoom

 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
FuryDiamond

Contributor

Contributor

3840 points

766 Posts

Re: Image viewer with zoom

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.

Please "Mark as Answer" if this post answered your question. :)

SilverlightNovice
Silverli...

Member

Member

12 points

37 Posts

Re: Image viewer with zoom

thanks for reply i did exactly the same MouseEnter & MouseLeave

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities