FadeTransition zooms

6 posts, 0 answers
  1. Jerome
    Jerome avatar
    87 posts
    Member since:
    Aug 2010

    Posted 12 Nov 2012 Link to this post

    I've got a FadeTransition set up, with some not too complicated content, which is simply supposed to fade. Instead, it zooms the content in, and then fades. It's like it's taking a snapshot of the old content at the wrong size or something. I can't quite reproduce it outside of the project I'm working on. As soon as the Content is changed, the transition control zooms in on the text, and then fade/zooms it. How do I make this simply a fade, without a zoom?

    <telerik:RadTransitionControl
        Duration="0:0:1"
        Content="{TemplateBinding CurrentThreshold}">
        <telerik:RadTransitionControl.Transition>
            <telerik:FadeTransition />
        </telerik:RadTransitionControl.Transition>
        <telerik:RadTransitionControl.ContentTemplate>
            <DataTemplate
                DataType="{x:Type local:ServiceLevelThreshold}">
                <Grid>
                    <Rectangle
                        Opacity=".75"
                        Fill="{Binding Background}" />
                    <TextBlock
                        Margin="4"
                        Foreground="{Binding Foreground}"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        Style="{StaticResource ServiceLevelBlockContentTextBlock}"
                        Text="{Binding Value, RelativeSource={RelativeSource AncestorType={x:Type local:ServiceLevelBlock}}}"
                        FontSize="30" />
     
                </Grid>
            </DataTemplate>
        </telerik:RadTransitionControl.ContentTemplate>
    </telerik:RadTransitionControl>
  2. Jerome
    Jerome avatar
    87 posts
    Member since:
    Aug 2010

    Posted 13 Nov 2012 Link to this post

    Nevermind. Problem solved.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Brian Pratt
    Brian Pratt avatar
    28 posts
    Member since:
    Apr 2010

    Posted 07 Mar 2014 Link to this post

    Would you like to share how you solved this?  I'm having this problem too.
  5. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 12 Mar 2014 Link to this post

    Hello,

    As this thread is a very old one since that version of RadTransitionControl there have been many changes to it and its features. In the current version of the control the described zooming issue when the FadeTransition is used is not present.

    I created a sample project that shows that no unexpected behavior is observed in the described scenario. You can find the sample project attached to my response. Could you try to reproduce the issue in that sample project and send it back to us in a new support thread.

    Regards,
    Vladi
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  6. Brian Pratt
    Brian Pratt avatar
    28 posts
    Member since:
    Apr 2010

    Posted 12 Mar 2014 in reply to Vladi Link to this post

    I continued in this thread:

    http://www.telerik.com/forums/transitioncontrol-in-a-viewbox-strange-behavior

    The only thing I did was add a ViewBox around the transition, and got the zooming.
  7. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 13 Mar 2014 Link to this post

    Hello,

    Thank you for giving us the additional details in that thread.

    Could we continue the discussion there.

    Regards,
    Vladi
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready