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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:31:36+00:00 2026-05-31T13:31:36+00:00

I hope my title is clear…. What I mean is for exmaple when we

  • 0

I hope my title is clear….

What I mean is for exmaple when we define animation:

Xaml:

<StoryBoard>
    <DoubleAnimation..../>
</StoryBoard>

But if we defines same thing in code-behind, we could do:

DoubleAnimation myDAnimation = new DoubleAnimation();
.....
StoryBoard myStoryBoard = new StoryBoard();
myStoryBoard.Children.Add(myDAnimation);

I tried to look into StoryBoard’s class definition, nothing special:

public sealed class Storyboard : Timeline
{
        public Storyboard();

        // Summary:
        //     Gets the collection of child System.Windows.Media.Animation.Timeline objects.
        //
        // Returns:
        //     The collection of child System.Windows.Media.Animation.Timeline objects.
        //     The default is an empty collection.
        public TimelineCollection Children { get; }
....
}

I know if I defines my own class with the above sytnax, in order to add into my Children, I would need to:

XAML:

<MyClass>
   <MyClass.Children>
      <MyClassCildrenItem..../>
   </MyClass.Children>
</MyClass>

So how did the Xaml knows the DoubleAnimation is should add into StoryBoard‘s Children property?
If I need to do the same thing, what do I need to declare?

  • 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-31T13:31:37+00:00Added an answer on May 31, 2026 at 1:31 pm

    There’s an attribute for that: ContentPropertyAttribute

    If you check the Syntax section of classes on MSDN you can see what properties will be set when specifying content. E.g. the ContentControl targets the Content property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope my question is clear from the title. But still I will explain
I hope the title and following text are clear, I'm not very familiar with
Ok, I'm not sure that my title was clear enough, but I will try
I hope the title of this question is somewhat clear, I couldn't figure out
I hope the title is clear. I would like to retrieve the existing google
I hope that title is clear enough. I have 2 projects, MyProject.Website (ASP.NET MVC3
i hope the title itself was quite clear , i am solving 2D lid-driven
Well I think the title of this question is far to be clear but
I hope the title makes sense. I have a set of items that I
(I hope my title is comprehensible, it was hard to sum up.) I have

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.