After first Window open/close, window opens invisibly

5 posts, 1 answers
  1. Gary Davis
    Gary Davis avatar
    71 posts
    Member since:
    Oct 2003

    Posted 13 Jan 2013 Link to this post

    This code used to work but now does not (WP7 nor WP8). Clicking a button opens the RadWindow and clicking a button within the window or outside the window closes the window. The first time, it works correctly and from then on, does not.

    The 2nd attempt to open the window does work (opening and opened events fire) but the window does not display. Closing the invisible window does briefly pop up the window and the close animation runs.

    The open animation is set to use the default properties which assumes Axes="Y". If I change to use Axes="N", the open animation works and the invisible window is left displayed. So this is a good temp fix but I'd like to use Axes="Y" on the open.

    I have a test project but was unable to attach it to this post.

    Gary Davis

    <telerikPrimitives:RadWindow Name="WndQueueItButtons" IsClosedOnOutsideTap="True" Placement="TopCenter" VerticalOffset="200">
        <telerikPrimitives:RadWindow.OpenAnimation>
            <telerik:RadPlaneProjectionAnimation Axes="Y" /> <!-- or omit Axes="Y" which is the default -->
        </telerikPrimitives:RadWindow.OpenAnimation>
        <telerikPrimitives:RadWindow.CloseAnimation>
            <telerik:RadPlaneProjectionAnimation Axes="X" EndAngleX="90" EndAngleY="90" EndAngleZ="90" StartAngleX="0" StartAngleY="0" StartAngleZ="0" />
        </telerikPrimitives:RadWindow.CloseAnimation>
        <Border CornerRadius="10" Padding="5,2" Background="#FFA7BEDA" BorderThickness="3" BorderBrush="#FF006280">
            <StackPanel>
                <TextBlock HorizontalAlignment="Center" FontWeight="Bold" Foreground="#FFAA0000" FontSize="24" Name="TbxWndTitle" TextWrapping="Wrap" Text="Do you want to?" />
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                    <Button Click="BtnQueueItClick" Margin="10,0,0,0" Foreground="#FF006280" BorderBrush="#FF006280" Name="Btn1" Content="Yes" />
                    <Button Click="BtnQueueItClick" Margin="5,0,0,0" Foreground="#FF006280" BorderBrush="#FF006280" Name="Btn2" Content="No" />
                </StackPanel>
            </StackPanel>
        </Border>
    </telerikPrimitives:RadWindow>
  2. Answer
    Victor
    Admin
    Victor avatar
    1351 posts

    Posted 14 Jan 2013 Link to this post

    Hello Gary,

    Thanks for writing.
    I am not sure why this XAML has worked previously. Your animations should have FillBehavior="Stop" set on them in order for the end values of the animation to be removed after the animation has finished. If you have a look at the default window animations they have FillBehavior="Stop" set for the same reason.

    All the best,
    Victor
    the Telerik team
    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. Gary Davis
    Gary Davis avatar
    71 posts
    Member since:
    Oct 2003

    Posted 14 Jan 2013 Link to this post

    Thanks, that did work.

    I don't know why it used to work - I have at least three apps in the store from about a year ago with that code and they do work with the Axes="Y" and no FillBehavior="Stop".

    Thanks.
  5. Arun
    Arun avatar
    3 posts
    Member since:
    Jun 2012

    Posted 24 Oct 2013 Link to this post

    Facing the same issue with the latest 3.1016 version of telerik lib
  6. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 28 Oct 2013 Link to this post

    Hello Arun,

    Did you set the FillBehavior to Stop as mentioned on this thread?

    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
DevCraft banner