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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:04:50+00:00 2026-05-17T17:04:50+00:00

I have a control with 5 buttons, and I would like to make all

  • 0

I have a control with 5 buttons, and I would like to make all of them shift diagonally when any of them are clicked.

What would be the best way to do this? If it were a single button, I could use a Storyboard and DoubleAnimate, but I believe that if I apply this to multiply buttons, they would shift one by one, instead of at the same time.

How would I make them all move in the same time?

  • 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-17T17:04:51+00:00Added an answer on May 17, 2026 at 5:04 pm

    If I have understood your situation correctly, one option might be to put the buttons on a container like a Grid and animate the Grid.

    Here is a quick example of animating a Grid which is hosting a set of buttons.

    <Window x:Class="PanelAnimate.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="MainWindow" Height="350" Width="525">
      <Grid>    
        <Grid Name="controlWithButtons" Height="25">         
          <Grid.Triggers>
            <!-- Button.Click will trigger the animation -->
            <EventTrigger RoutedEvent="Button.Click">
              <EventTrigger.Actions>
                <!-- Animate the X,Y translation -->
                <BeginStoryboard>              
                  <Storyboard Storyboard.TargetName="translateButtons">
                    <DoubleAnimation Storyboard.TargetProperty="X" By="20" Duration="0:0:0.1" />
                    <DoubleAnimation Storyboard.TargetProperty="Y" By="20" Duration="0:0:0.1" />
                  </Storyboard>              
                </BeginStoryboard>
              </EventTrigger.Actions>
            </EventTrigger>
          </Grid.Triggers>
    
          <!-- Setup a translation transform which is animated when a button is clicked -->
          <Grid.RenderTransform>
            <TranslateTransform x:Name="translateButtons" />
          </Grid.RenderTransform>
    
          <!-- the buttons on the control -->
          <StackPanel Orientation="Horizontal">
            <Button Content="Button1" />
            <Button Content="Button2" />
            <Button Content="Button3" />
            <Button Content="Button4" />
            <Button Content="Button5" />
          </StackPanel>
        </Grid>
      </Grid>
    </Window>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have control, subclassed from CDialogBar, it has some buttons(like on toolbar). When I
I have a FrameLayout view which contains one (MapView-like) control and some additional buttons
What would be a clever way to make a 'please wait' control for a
I have a control that has an attribute like this OnClientClick=checkfn( resultfn(boolval) ) checkfn
I have a control in a base assembly with Content that I would like
I have a control which has a button on it. All the button does
I would like to make a button in my iPad app (probably will be
I would like to add a control to a master page (that will go
I have a button control which its template is stilyzed in an external resource
I need to create a color animation. I have a control (a slick button

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.