animation to having itemtemplate children ease in

4 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    23 posts
    Member since:
    Feb 2013

    Posted 06 Jun 2013 Link to this post

    I know that DBLB has controls in it to have each item in the listbox animate depending on source update.  However, I was wondering if it was possible to have the children of itemtemplate (such as listboxes and images that make up an item) themselves be animated (easein) when a user swipes to the pivot page the DBLB is on?

    For examle, on the Windows Phone Store Market app, if you swipe between certain pivots (not all) then you can see that after you swipe, the listboxitem's controls also easein like they're trying to catch up to the swipe.

    I know this sounds very confusing so if you need more information, or even a video, let me know.

    -Jon
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 07 Jun 2013 Link to this post

    Hello Jonathan,

    Thanks for writing.

    No, this doesn't sound confusing. It is a nice feature that we can integrate in RDLB. Currently it is not available but we can consider it for future releases.

    Now you can implement similar behavior by implementing a custom control that visualizes the content in the items, put it in the ItemTemplate and trigger its visual states programmatically when pivot items are swapped. You have access to the Realized Containers in RDBLB.

    I hope this helps.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Jonathan
    Jonathan avatar
    23 posts
    Member since:
    Feb 2013

    Posted 07 Jun 2013 Link to this post

    Thanks Deyan,

    when I searched for tutorials, or examples of this I couldn't find any.  Could you give a simple example of how I could do this?

    thanks,

    Jon
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 10 Jun 2013 Link to this post

    Hi Jonathan,

    Thanks for writing back.

    There are numerous articles on the Internet about how custom controls with visual states are made. Here's one that will be helpful:

    http://www.timmykokke.com/2010/11/using-visual-states-in-custom-controls-in-silverlight/

    Here's another article about visual states:

    http://blogs.msdn.com/b/amar/archive/2013/02/27/better-control-s-with-visual-state-manager.aspx

    I hope this helps.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top