Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit Sliding window
4 replies. Latest Post by Leopqdt on October 2, 2009.
(0)
Leopqdt
Member
15 points
37 Posts
10-01-2009 12:55 AM |
Hello all,
I have a question, how can i do something like that http://demos.telerik.com/silverlight/#Home ??? I just want to do a window or any shape to slide through the screen, just like shown on the link above. Any idea, some component does this? I appreciate your help!
mrjvdveen
Participant
1939 points
367 Posts
10-01-2009 2:29 AM |
The easiest way would be to use Blend. You can then create two states in the Visual State Manager where you record the two positions you want (in this case where you want your control to start and where you want it to end). Then you can define how long it should take to move the object between these states.
In code all you have to do is use VisualStateManager.GoToState("somestate") to trigger the move.
HTH.
10-02-2009 1:31 AM |
Thanks my friend!Could you tell me if can i find an exemple of this operation? I have not idea how to work with VisualStateManager.
I'm appreciate.
10-02-2009 3:14 AM |
You find a video explaining things about the VSM here.
10-02-2009 3:48 PM |
Thanks a lot my friend! See you!