Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8714695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:39:35+00:00 2026-06-13T05:39:35+00:00

I’m creating a transition effect that will slide 2 panels (side to side). My

  • 0

I’m creating a transition effect that will slide 2 panels (side to side).

My plan is to have a Grid that has the width of the window multiplied by 2 through data-binding, divide it by 2 to have the 2 panels, then put Grids in them (so I’ll have 2 panels equally divided with their own grid and you can see only one of them at a time. all it takes now is to move the root grid with an animation to create the transition effect).

So I’m trying to data bind the Grid’s width to the width of the window multiplied by 2 (as I’ve written in bold above), but I have no idea how you can modify a data bind, and let it keep updating accordingly. so if possible – how do you do it?

I guess I could do it with events (just like in any other .NET application) but that’s just more opportunities for bugs to come and fester (i.e. events I’ll miss); so I’d really appreciate a good and clean solution.

By the way, if you have a better way to make the transition, please let me know in the comments. My mind is still open to ideas.
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:39:36+00:00Added an answer on June 13, 2026 at 5:39 am

    I’ve done it. It was like this:

    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition />
    <ColumnDefinition Width="0" />
    
    <Grid x:Name="Panel1" />
    <Grid x:Name="Panel2"/>
    </Grid>
    

    Now, this is side-scrolling, however the point is same. All you do is apply RenderTransform.TranslateTransform animation to Panel2, you animate X from 0 to Panel2 Width, essentially it will be completely off, and after that you just set Panel2 Column to “1”.

    I can give you tomorrow little code example too, but you can get started.

    Here is the Xaml that takes care of slide2slide animation when user toggles the button.

        <Grid.Triggers>
    <EventTrigger RoutedEvent="ToggleButton.Checked" SourceName="workingPlanButton">
    <BeginStoryboard>
    <Storyboard Completed="Storyboard_Completed">
    
    <DoubleAnimationUsingKeyFrames BeginTime="00:00:0.1"
                                  Duration="0:0:00.5"
                                  Storyboard.TargetName="lsView"
                                  Storyboard.TargetProperty="RenderTransform.(TranslateTransform.Y)"
                                  Timeline.DesiredFrameRate="30">
    <LinearDoubleKeyFrame KeyTime="00:00:00.3" Value="{Binding ElementName=bodyGrid, Path=ActualHeight}" />
    </DoubleAnimationUsingKeyFrames>
    
    
    <!--  Hide the panel  -->
    <ObjectAnimationUsingKeyFrames BeginTime="0:0:0.5"
                                  Storyboard.TargetName="lsView"
                                  Storyboard.TargetProperty="Visibility"
                                  Timeline.DesiredFrameRate="30">
    <DiscreteObjectKeyFrame Value="{x:Static Visibility.Hidden}" />
    </ObjectAnimationUsingKeyFrames>
    </Storyboard>
    </BeginStoryboard>
    </EventTrigger>
    

    Now the actual grid:

    <Grid x:Name="bodyGrid" Grid.Row="1">
    
    <Grid.RowDefinitions>
    <RowDefinition Height="*" />
    <RowDefinition Height="1" />
    </Grid.RowDefinitions>
    <StudyPlan:StudyPlanControl />
    <local:LessonControl x:Name="lsView />
    <local:LessonControl.RenderTransform>
    <TranslateTransform Y="0" />
    </local:LessonControl.RenderTransform>
    
    </local:LessonControl>
    </Grid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I have an array which has BIG numbers and small numbers in it. I
I need a function that will clean a strings' special characters. I do NOT
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.