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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:03:08+00:00 2026-05-27T15:03:08+00:00

I am new to silverlight and I want to trigger an even when the

  • 0

I am new to silverlight and I want to trigger an even when the storyboard finsihes or ends. How would I go on doing that. I already have one trigger in storyboard at mouse enter. I am not sure if I can add more events there.
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-05-27T15:03:08+00:00Added an answer on May 27, 2026 at 3:03 pm

    Use the “StoryBoardComplete” Behavior. You’ll find it in the Assets panel under “Behaviors”.

    EDIT: Sorry, I answered in a hurry and incorrectly from memory. I should have given more details when you said you were new to Silverlight and I should have verified my answer.

    CORRECTED ANSWER:
    Use a “StoryboardCompletedTrigger” on a Behavior. Let’s say you want to change the Fill property of a Rectangle when your Storyboard completes. Add a Rectangle to your application:

    enter image description here

    Go to the Assets panel (same tab group as the Projects panel). Open the category titled “Behaviors” and locate the “ChangePropertyAction”.

    enter image description here

    Drag and drop one onto the Rectangle. Objects and Timeline will now look like so:

    enter image description here

    Note that the ChangePropertyAction item is selected. Now go to the Properties panel:

    enter image description here

    In the Trigger section, click on the “New” button that I’ve highlighted for you. This will open a dialog and let you pick a different TriggerType. In this case you want a “StoryboardCompletedTrigger”:

    enter image description here

    Fill in the Storyboard and PropertyName values.

    enter image description here

    Now when Storyboard1 completes the Rectangle’s Fill property should change to Red. Here is the compelte XAML code for this simple example:

    <UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" mc:Ignorable="d"
    x:Class="SilverlightApplication2.MainPage"
    Width="640" Height="480">
    <UserControl.Resources>
        <Storyboard x:Name="Storyboard1">
            <DoubleAnimation Duration="0:0:0.9" To="-360" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="rectangle" d:IsOptimized="True"/>
        </Storyboard>
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Rectangle x:Name="rectangle" Fill="#FF0000F7" HorizontalAlignment="Left" Margin="86,133,0,225" Stroke="Black" Width="210" RenderTransformOrigin="0.5,0.5">
            <Rectangle.RenderTransform>
                <CompositeTransform/>
            </Rectangle.RenderTransform>
            <i:Interaction.Triggers>
                <ei:StoryboardCompletedTrigger Storyboard="{StaticResource Storyboard1}">
                    <ei:ChangePropertyAction PropertyName="Fill">
                        <ei:ChangePropertyAction.Value>
                            <SolidColorBrush Color="Red"/>
                        </ei:ChangePropertyAction.Value>
                    </ei:ChangePropertyAction>
                </ei:StoryboardCompletedTrigger>
            </i:Interaction.Triggers>
        </Rectangle>
        <Button Content="Button" HorizontalAlignment="Left" Height="50" Margin="86,0,0,98" VerticalAlignment="Bottom" Width="110">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="Click">
                    <ei:ControlStoryboardAction Storyboard="{StaticResource Storyboard1}"/>
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </Button>
    </Grid>
    

    YMMV: This approach is for use with Behaviors. Without knowing your situation I can’t make a better recommendation, but this is the typical way to accomplish what you want.

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

Sidebar

Related Questions

I am new to Silverlight and want to animate a ball that is shot
I am still new to silverlight and would like to ask few questions that
Kinda new to Silverlight and have some experience with WPF but I'm doing a
I am new to windows phone 7 using silverlight. I want that the user
I am new to silverlight and want to learn silverlight. I have installed Visual
I have a Silverlight XAML usercontrol that I want to use to show that
With the new Silverlight 5, we can now have an In-Browser elevated-trust application. However,
With the new Silverlight 3.0 feature that allows the components to be hosted outside
I have created a new silverlight business application in visual studio. It auto generates
I am new to Silverlight and have decided to give it a go. I

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.