Skip to main content
Home Forums Silverlight Programming Programming with JavaScript zoom in zoom out
9 replies. Latest Post by oniak3 on October 3, 2009.
(0)
venu1
Member
2 points
2 Posts
10-22-2007 8:26 AM |
can some body help me with the source code to have functionality of zoom in and zoom out for a page turn application using silverlight1.0. Thank you very much
swildermuth
Star
8320 points
1,546 Posts
10-23-2007 2:35 AM |
I don't have specific code, but generally you just want to use a ScaleTransform (in the RenderTransform) and tie that to whatever control mechiism you're using.
10-23-2007 4:05 AM |
Thanks for your kind reply.
I am new to silverlight technology. If possible can you please help me with the source code to scale transform. Thank you very much.
cookendo...
424 points
99 Posts
10-23-2007 2:08 PM |
Perhaps you should start at the MSDN Libary and by downloading Microsoft Blend to begin your Silverlight development. Instead of posting and asking someone to create a project for you. Here is a link for MSDN Libary for Silverlight 1.0: http://msdn2.microsoft.com/en-us/library/bb404710.aspx
oniak3
24 points
7 Posts
11-28-2007 5:28 AM |
I've already done to apply the zooming feature for Page turn application.
Here is my article.
http://blogs.msdn.com/aonishi/archive/2007/11/28/how-to-add-the-zooming-feature-for-your-silverlight-page-turn-application-with-silverlight-1-0.aspx
Hope this help.
-Akira
WynApse
8456 points
342 Posts
11-28-2007 11:53 AM |
This is very cool, Akira... thanks for sharing!
-Dave
11-30-2007 5:21 AM |
I've put the zip file for sharing enhanced sample as attachment at http://blogs.msdn.com/aonishi/archive/2007/11/28/how-to-add-the-zooming-feature-for-your-silverlight-page-turn-application-with-silverlight-1-0.aspx .
Melt16
54 points
62 Posts
02-10-2009 7:24 AM |
Here's an even simpler version, it simply scales a Canvas using a slider control.You need two Canvas controls, one for the outer Canvas, to keep the controls all in the right size, then an inner Canvas, which you can add all your scalable content to...The XAML <UserControl x:Class="SilverlightZoom.Page"
<
{
TextBlock1.Text = Slider1.Value.ToString();
CanvasScaleTransform.ScaleX = Slider1.Value;
CanvasScaleTransform.ScaleY = Slider1.Value;
}
@blacksi...
15 points
36 Posts
10-02-2009 9:48 PM |
This works for me ..........one more thing incase if slider is in childwindow and MainPage is made of mutiple usercontrols/ bands. Then i want to have the same functionality using event/delegate concept so that any control in mainpage can move according to slilder movement. Please guide me through if you have any idea.
10-03-2009 3:13 AM |
Just the idea -- You can implement your idea by putting the ScaleTransform object with specific name into your expected object/control. With the name, you can use FrameworkElement.FindName method to get the ScaleTransform object, and then you change the properties in runtime.