This is a migrated thread and some comments may be shown as answers.

After first Window open/close, window opens invisibly

4 Answers 35 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gary Davis
Top achievements
Rank 2
Gary Davis asked on 13 Jan 2013, 10:39 PM
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>

4 Answers, 1 is accepted

Sort by
0
Accepted
Victor
Telerik team
answered on 14 Jan 2013, 12:20 PM
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.
0
Gary Davis
Top achievements
Rank 2
answered on 15 Jan 2013, 01:41 AM
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.
0
Arun
Top achievements
Rank 1
answered on 24 Oct 2013, 09:16 AM
Facing the same issue with the latest 3.1016 version of telerik lib
0
Deyan
Telerik team
answered on 28 Oct 2013, 11:41 AM
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.
Tags
Window
Asked by
Gary Davis
Top achievements
Rank 2
Answers by
Victor
Telerik team
Gary Davis
Top achievements
Rank 2
Arun
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or