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 6729407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:17:10+00:00 2026-05-26T10:17:10+00:00

Basically I have control (such as a Grid) which is twice the width of

  • 0

Basically I have control (such as a Grid) which is twice the width of the page.

The idea is to animate the control so that it slides left and the unseen half is shown – but it is not rendered.

Is there a way to force offscreen rendering or force render on the fly (as the animation is playing)?

Thanks in advance,

Jamie

  • 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-05-26T10:17:11+00:00Added an answer on May 26, 2026 at 10:17 am

    One way to do this is to have a single wide grid, and have two render transforms (TranslateTransform specifically) – one for the left content, and one for the right content. The “left” content would have a TranslateTransform X value of 0, while the right one would have an X value of 480, effectively creating a double wide grid. To perform a side, just use a Storyboard with a double animation of -480 to the X value of both transforms.

    It sounds a little complicated but it’s not too bad, let me know if you need more details!

    XAML:

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.Resources>
            <Storyboard x:Key="SlideLeftStoryboard">
                <DoubleAnimation From="0" To="-480" Duration="0:0:0.5" Storyboard.TargetName="BlueTransform" Storyboard.TargetProperty="X">
    
                </DoubleAnimation>
                <DoubleAnimation From="480" To="0" Duration="0:0:0.5" Storyboard.TargetName="RedTransform" Storyboard.TargetProperty="X">
    
                </DoubleAnimation>
            </Storyboard>
            <Storyboard x:Key="SlideRightStoryboard">
                <DoubleAnimation From="-480" To="0" Duration="0:0:0.5" Storyboard.TargetName="BlueTransform" Storyboard.TargetProperty="X">
    
                </DoubleAnimation>
                <DoubleAnimation From="0" To="480" Duration="0:0:0.5" Storyboard.TargetName="RedTransform" Storyboard.TargetProperty="X">
    
                </DoubleAnimation>
            </Storyboard>
        </Grid.Resources>
        <Border Name="BlueBorder" Background="Blue">
            <Border.RenderTransform>
                <TranslateTransform x:Name="BlueTransform" X="0">
    
                </TranslateTransform>
            </Border.RenderTransform>
            <Button Click="SlideLeft_Click">
                <TextBlock>
                    Slide Left
                </TextBlock>
            </Button>
        </Border>
        <Border Name="RedBorder" Background="Red">
            <Border.RenderTransform>
                <TranslateTransform x:Name="RedTransform" X="480">
    
                </TranslateTransform>
            </Border.RenderTransform>
            <Button Click="SlideRight_Click">
                <TextBlock>
                    Slide Right
                </TextBlock>
            </Button>
        </Border>
    
    </Grid>
    

    Code Behind:

    public partial class MainPage : PhoneApplicationPage
    {
        Storyboard slideLeftStoryboard;
        Storyboard slideRightStoryboard;
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(MainPage_Loaded);
        }
    
        void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            slideLeftStoryboard = LayoutRoot.Resources["SlideLeftStoryboard"] as Storyboard;
            slideRightStoryboard = LayoutRoot.Resources["SlideRightStoryboard"] as Storyboard;
        }
    
        private void SlideLeft_Click(object sender, RoutedEventArgs e)
        {
            slideLeftStoryboard.Begin();
        }
    
        private void SlideRight_Click(object sender, RoutedEventArgs e)
        {
            slideRightStoryboard.Begin();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a control that is basically functioning as a client-side timer countdown control.
Basically, I have created a custom control that uses an UpdatePanel, and as I
I basically have a page which shows a processing screen which has been flushed
I have a TreeView control in a Winforms app, and basically the objective is
I have a gridview control in my c# program. Basically someone enters an email
I would like to have fuzzy looking border around my Canvas control. Basically, I
what I mean by that is: I basically have a class that has too
Basically, I have a form with a custom control on it (and nothing else).
I have a widget that displays a filesystem hierarchy for convenient browsing (basically a
I have to deserialize JSON strings that I don't have any control over. This

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.