Open/close popup animation

9 posts, 0 answers
  1. OTMOP
    OTMOP avatar
    20 posts
    Member since:
    Jun 2012

    Posted 28 Jun 2012 Link to this post

    Hello.

    Is it possible to enable open and close popup animation in the last release of WP7 components (I'm using  v.2012.2 607)?

    Alexander.
  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 29 Jun 2012 Link to this post

    Hi Alexander,

    In order to enable the popup animation, you should set the InlineModeThreshold to less than the amount if items in your collection. This will force the ListPicker to use the popup view. Make sure you have a PopupItemTemplate prepared to handle the popup items. So if you have a list of 8 items and you set the threshold below 8 like this: InlineModeThreshold="5", you will get the popup.

    Using the Telerik RadControls for Windows Phone example app as a reference, this PopupItemTemplate will populate with your items when the RadListPicker is tapped.

    <telerikInput:RadListPicker.PopupItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="0, 27, 0, 24">
                                    <Rectangle Fill="{Binding ColorName}" Width="43" Height="43"/>
                                    <TextBlock Text="{Binding ColorName}" Margin="16 -8 0 0"/>
                                </StackPanel>
                            </DataTemplate>
                        </telerikInput:RadListPicker.PopupItemTemplate>


    You can find the example application source code by looking in your telerik folder on your pc. If you installed it to the default directory, you will find it here: C:\Program Files (x86)\Telerik\RadControls for Windows Phone 7 Q2 2012\Examples. Just open the solution, look for the project named ListPicker, then open the file named Modes.xaml.

    Good Luck,
    Lancelot

  3. DevCraft banner
  4. OTMOP
    OTMOP avatar
    20 posts
    Member since:
    Jun 2012

    Posted 29 Jun 2012 Link to this post

    Hi, Lancelot.

    Thank you for your answer, but this not works in v.2012.2 607 (and animations not work in the example application too). 

    I think this is because new implementation of ListPicker. I already had some issues with last version of the components.
    (http://www.telerik.com/community/forums/windows-phone/listpicker/unhandled-exception-and-application-crash-after-update-to-2012-2-607.aspx)

    P.S. Sorry for my bad english.
  5. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 29 Jun 2012 Link to this post

    Hi Alexander,

    I'm not sure exactly what animations you are trying to achieve. There have a been a couple breaking changes, but if you could provide me with the code that you are using, I can reproduce the problem and provide you with a solution.

    Lancelot
  6. OTMOP
    OTMOP avatar
    20 posts
    Member since:
    Jun 2012

    Posted 29 Jun 2012 Link to this post

    I'm talking about item animation when ListPicker opens and closes (each item has animation).
    There is video (2 versions): Video

    There is simple sample code (you can compile it with old and new versions of the Telerik WP7 Components)
    Download

    Alexander.

  7. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 02 Jul 2012 Link to this post

    Hi Alexander,

    Thank you for reporting this issue. I can confirm that with our latest official release, no animation is being played when opening RadListPicker's popup. This is due to the fact that now RadListPicker uses internally RadDataBoundListBox for its popup scenarios. I've logged this issue in our backlog and we will do our best to fix it as soon as possible. Meanwhile, let us know if you encounter any further obstacles. I've also updated your Telerik points accordingly. 

    Greetings,
    Kiril Stanoev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  8. Alex
    Alex avatar
    23 posts
    Member since:
    Oct 2011

    Posted 05 Jul 2012 Link to this post

    I have the same issue after update. Please, fix it.
  9. Alex
    Alex avatar
    23 posts
    Member since:
    Oct 2011

    Posted 09 Oct 2012 Link to this post

    Please, fix it, it looks really bad without animation. It doesn't look like native popup.
  10. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 12 Oct 2012 Link to this post

    Hello Alex,

    This issue has already been addressed in our latest Internal Build. The fix will also be included in the official Q3 2012 release of RadControls for Windows Phone.

    Let me know if you have further questions or need assistance. 

    Greetings,
    Deyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner