How do i create xaml (silverlight) animation like attacted image? - silverlight

I want to create animation like this image, i'm wondering how do i get start for this ? in silverlight xaml
this bar will increased or decreased in animation
thanks for any help

I would create image overlay to create grid effect and would draw solid rectangles under the image. Animate rectangles using standard XAML animations.
Or even better: animate black overlay rectangles covering top of bars.
Sent from windows phone.

Related

WPF control is on top of the window border, how do I stop that?

I have a WPF window and an Image in a grid in the window. I am animating the Image so it moves from out of view (beyond widow location) into the window.
The animation is nice and smooth and everything works but I notice the image is over top of the window border while it is moving. The image at the end of this question is what it looks like.
Why would the image be over top of the window border, and how do I get it to be "under" the border?
Thanks in advance!
Well after a lot of trial and error it seems the problem was the fact I was moving the image in a grid that had no defined width, so the width would expand over the border when moving the image thus extending the "client" area of the window and showing over the window area.
Once I defined a specific width of the grid, everything worked.

Zooming on a particular image inside a stackpanel consits of ten images

I have a scrollviewer with horizontal stackpanel having 10 images as children. I need to perform zooming on a particular image which is in view when start the pinch gesture. Is it possible to achieve that. I tried to get the image in a separate layout when start the pinch but it makes the user to start the pinch twice.So kindly help me to get that
Do a click event on the image, then popup a window with a semi transparent background and an image control. Then apply pinch events to zoom and mouse move events to pan.
something like this article:
http://codecopy.wordpress.com/2011/12/15/wp7-pinch-and-pan-zoom-an-image/

How can you use an ImageBrush to display a specified area of an image as the background of a rectangle?

I'm trying to add a zoom feature for an image viewer control I'm creating. When viewing the image, holding down the left mouse button brings up a rounded rectangle that is zoomed into the image. I figure I can use An ImageBrush as the background but I can't figure out how to make it just display a specified area of the image. Can this even be done?
By using the Viewbox.

Apple Dock like (Magnify items near mouse) control in WPF?

Does anyone know of any WPF controls that act like the Apple Dock (something like this). If not how would you go about creating one? A horizontal listbox of images is simple but I can't seem to recreate the smooth magnification of the images based on where the mouse is. Any help would be appreciated.
Not an expert, but sounds like you'd do an animation on a ScaleTransform on the LayoutTransform of the items?
mouse enter would start animation to increase the scale, exit the reverse?

How to draw onto a PictureBox image when control resizes?

I am using the pictureBox_Paint event to try and draw an overlay onto the image in a PictureBox.
This is working fine until I resize the PictureBox (set to use SizeMode.Zoom), when I do this the overlay graphic is drawn off position by the margin between the image and the edge of the PictureBox. I guess I need to use the ImageRectangle somehow but this is not public.
I would create a custom usercontrol instead, you would have much more control, and would not be difficult to build.

Resources