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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:57:19+00:00 2026-06-09T11:57:19+00:00

Well I have two problems both related to animation. 1) The following code does

  • 0

Well I have two problems both related to animation.

1) The following code does not animate the tittle and border i am calling the following like this.FadeIn(), this being of type UIElement of course.

public static void FadeIn(this UIElement targetControl)
    {
        DoubleAnimation fadeInAnimation = new DoubleAnimation(0, 1, new Duration(TimeSpan.FromSeconds(1.5)));
        Storyboard.SetTarget(fadeInAnimation, targetControl);
        Storyboard.SetTargetProperty(fadeInAnimation, new PropertyPath(UIElement.OpacityProperty));
        Storyboard sb = new Storyboard();
        sb.Children.Add(fadeInAnimation);
        sb.Begin();
    }

2) This is also not working, no animation is shown.

public static void SkewAnimation(this UIElement targetControl) 
{ 
   DoubleAnimation skewAnimation = new DoubleAnimation(0, 360, new    Duration(TimeSpan.FromSeconds(3)));
   Storyboard.SetTarget(skewAnimation, targetControl);

   Storyboard.SetTargetProperty(skewAnimation, new  PropertyPath(SkewTransform.AngleXProperty)); 
   Storyboard sb = new Storyboard();
   sb.Children.Add(skewAnimation);
   sb.Begin(); 
}
  • 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-09T11:57:21+00:00Added an answer on June 9, 2026 at 11:57 am

    Why not simply animate like this:

    public static void FadeIn(this UIElement element)
    {
        element.BeginAnimation(
            UIElement.OpacityProperty,
            new DoubleAnimation(0d, 1d, TimeSpan.FromSeconds(1.5)));
    }
    

    and, provided that the element’s RenderTransform property is set to a SkewTransform:

    public static void SkewAnimation(this UIElement element)
    {
        ((SkewTransform)element.RenderTransform).BeginAnimation(
            SkewTransform.AngleXProperty,
            new DoubleAnimation(0d, 360d, TimeSpan.FromSeconds(3d)));
    }
    

    EDIT: This would require something like

    element.RenderTransform = new SkewTransform();
    

    or in XAML:

    <SomeElement>
        <SomeElement.RenderTransform>
            <SkewTransform />
        </SomeElement.RenderTransform>
    </SomeElement>
    

    Not sure why your FadeIn won’t work, but your SkewAnimation can’t work due to the property path. SkewTransform.AngleXProperty is not defined for UIElement. The property path would have to be something like this (again provided that RenderTransform was set to SkewTransform):

    new PropertyPath("RenderTransform.(SkewTransform.AngleXProperty)");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well there are two problems both have to do with the restrictive file select
I have two servlets below and work well with Tomcat7/Indigo, it will print '
I have two classes, ClassA and ClassB , as well as a many to
I have found two different things in two well known books in c, first
Well as I have posted earlier too...I have created a site in two languages.One
I have two @Entity s, both with a BigDecimal field as follows: in one
I have two related objects: ProgramSession and ProgramTask, with a one-to-many relationship. A ProgramSession
Question : Circulation problems allow you to have both a lower and an upper
Well, I'm facing a new problem atm. I have two elements fixed to the
I have two binary files that are related one to another (meaning, when one

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.