Transition effect

6 posts, 0 answers
  1. hchattaway
    hchattaway avatar
    67 posts
    Member since:
    Feb 2007

    Posted 10 Nov 2009 Link to this post

    Hi All,

    Are there any built in transition effects in the WPF suite? In the demo, there is a transition between categories of demo's.. the panel pulls back and rotates. Are there any existing control like that available with a choice of transition effects?

    Thanks
    harold

  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 13 Nov 2009 Link to this post

    Hello hchattaway,

    There is no such a control, that you can use for such a transition animation. Please find the attached animation used in our online examples.

    Kind regards,
    Kaloyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Shane P
    Shane P avatar
    86 posts
    Member since:
    Sep 2012

    Posted 13 Feb 2010 Link to this post

    Hi Kaloyan,

    That's a nice example thank you. What if I wanted to create a button in both of the pages removing the button from MainPage.xaml.

    How could I use the same effect?

    I create a public function that I call from each of the buttons

      public void ChangePage() 
            { 
                var content = ExampleContainer.Content as Page; 
     
                var targetPage = content is Page1 ? new Page2() as Page : new Page1() as Page; 
     
                this.ExampleContainer.NavigateToExample(targetPage); 
            } 

    However if I place a breakpoint on [var content] then pass over it, null is been returned. 

    What do I need to change?

    Thanks for your help!
  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 17 Feb 2010 Link to this post

    Hello Shane Price,

    We are not sure what might be causing the problem. Also with the Q1 2010 Beta release this week we are launching a new transition control that is exposing such kind of transition animation. You can directly use it without any code transformations.

    Sincerely yours,
    Kaloyan
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Shane P
    Shane P avatar
    86 posts
    Member since:
    Sep 2012

    Posted 17 Feb 2010 Link to this post

    Thanks for your reply. I look forward to seeing this new control. Is there any information available yet to read on the new control?

    This is my code 

    public partial class MainPage : Page 
        { 
            public MainPage() 
            { 
                InitializeComponent(); 
            } 
     
            public MainPage(Page page) 
            { 
                InitializeComponent(); 
                ChangePage(page); 
            } 
     
            private void Button_Click(object sender, RoutedEventArgs e) 
            { 
                var content = ExampleContainer.Content as Page; 
                var targetPage = content is Page1 ? new Page2() as Page : new Page1() as Page; 
                ChangePage(targetPage); 
            } 
     
            public void ChangePage(Page page) 
            { 
                var content = ExampleContainer.Content as Page; 
     
     
                switch (page.Title) 
                { 
                    case "Page1"
                          var targetPage = new Page1()  as Page; 
                    this.ExampleContainer.NavigateToExample(targetPage); 
                        break
                    case "Page2"
                     var page2 = new Page2()  as Page; 
                    this.ExampleContainer.NavigateToExample(page2); 
                        break
                } 
                 
    //            var targetPage = content is Page1 ? new Page2() as Page : new Page1() as Page; 
     
               
            } 
        } 


    from Page1 where I am trying to call the tr

        public partial class Page1 : Page 
        { 
            public Page1() 
            { 
                InitializeComponent(); 
            } 
     
            private void btnRed_Click(object sender, RoutedEventArgs e) 
            { 
                //var myValue = (Frame)parent.FindName("ExampleContainer"); 
                //////MainPage mp = new MainPage(); 
                //////mp.ChangePage(); 
                //var content = parent.Content as Page; 
                //var targetPage = content is Page1 ? new Page2() as Page : new Page1() as Page; 
                ////this.content.NavigateToExample(targetPage); 
                MainPage mp = new MainPage(new Page2()); 
            } 
     
     
        } 
     



    Nothing happens. Am I doing something really stupid?

    Thanks
    Shane
  7. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 17 Feb 2010 Link to this post

    Hello Shane,

    The Q1 2010 Beta will be published by the end of the week and it will contain the RadTransitionControl.

    Regards,
    Valeri Hristov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for WPF is Visual Studio 2017 Ready