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

  • Home
  • SEARCH
  • 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 8020513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:42:41+00:00 2026-06-04T21:42:41+00:00

I have multiple (dynamically created) controls in a grid (labels, buttons), and one storyboard!

  • 0

I have multiple (dynamically created) controls in a grid (labels, buttons), and one storyboard!
I can assign a storyboard to one control, but I want to apply the storyboard’s animation in each controls…how can I do this?

My code:

Storyboard myStoryboard1 = new Storyboard();
Label label1 = new Label();
Label label2 = new Label();
Label label3 = new Label();
...
Storyboard.SetTarget(myAnimation2, Label1);
Storyboard.SetTarget(myAnimation2, Label2);
Storyboard.SetTarget(myAnimation2, Label3);

This code is set the animation only to the Label3…

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-04T21:42:42+00:00Added an answer on June 4, 2026 at 9:42 pm

    The best way to do this is by making one or multiple styles for all the control types that you want to animate and base them all on a single style that contains the storyboard/animation.

    Then, after you create/add a control just set its style (or make the styles the default styles)

    var newLabel = new Label();
    newLabel.Style = this.TryFindResource("controlStyle") as Style;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form with multiple textboxes which are created dynamically, now all these
I have multiple NxM matrices and want to select one of them by a
I have several dynamically created links and forms on one page named with IDs
I have a very dynamic web app that is dynamically created controls at run-time.
I have created a User Control with 4 check boxes(server control). I want to
I have multiple asp:button that I created dynamically with jQuery. For each of them,
I have multiple thumbnails and want the main image to represent a large version
I have ToggleButtons that are dynamically created based on my datasource. I would like
I have a DataSet with multiple tables (distinct schema). I want to generate table
Basically I have a set of checkboxes that are dynamically created from view data

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.