Skip to main content

Microsoft Silverlight

Answered Question Sliding windowRSS Feed

(0)

Leopqdt
Leopqdt

Member

Member

15 points

37 Posts

Sliding window

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
mrjvdveen

Participant

Participant

1939 points

367 Posts

Answered Question

Re: Sliding window

 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.

-------------
Please mark a post as answer if it answers your question.
Visit my blog: http://jvdveen.blogspot.com

Leopqdt
Leopqdt

Member

Member

15 points

37 Posts

Re: Sliding window

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.

mrjvdveen
mrjvdveen

Participant

Participant

1939 points

367 Posts

Re: Sliding window

 You find a video explaining things about the VSM here.

-------------
Please mark a post as answer if it answers your question.
Visit my blog: http://jvdveen.blogspot.com

Leopqdt
Leopqdt

Member

Member

15 points

37 Posts

Re: Sliding window

Thanks a lot my friend! See you!

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities