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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:02:19+00:00 2026-06-07T01:02:19+00:00

In my program I have an System.Controls.Image to which I want to add a

  • 0

In my program I have an System.Controls.Image to which I want
to add a shaking Behavior from here Animate Image in button to shake

I copied the ShakingBehavior to my project to it’s own class,
and I already have the Blend SDK.

Now I added the XAML Part to my Image

<Image Source="myImage.png" Grid.Row="{Binding Path=Row}" Grid.Column="{Binding Path=Col}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0">

    <i:Interaction.Behaviors>
        <local:ShakeBehavior RepeatInterval="5" SpeedRatio="3.0"/>
    </i:Interaction.Behaviors>

</Image>

Now I get an error that I cannot get rid of!

(As I do not have an english VS here, I try to translate the message)

The Interaction type has no attachable Behaviors property

probably just a namespace to add (the i alias), but I cannot bring it to work

edit
More information: The Image is contained in a button, which is inside a datatemplate.

And (at best) I want to start the animation when another button in the view is clicked.
(this Behavior shall help to find the button as a hint)

  • 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-07T01:02:20+00:00Added an answer on June 7, 2026 at 1:02 am

    Since Mohib doesn’t want to, i will post the correct line that I have missed:

    this one should be without those magic unprinted values that can be found in Mohibs answer.

    xmlns:i=”clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity”

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

Sidebar

Related Questions

I have a System.Drawing.Image in my program. The file is not on the file
I have a program which doesn't once reference System.I0, coded in vb.net, yet for
I have a program which does a system call: latex somefile.latex This runs ok,
We have installed RHQ monitoring system http://rhq-project.org/display/RHQ/Home . From that time our program started
I have installed Nov '09 silverlight 3 toolkit. Referenced System.Windows.Control from C:\Program Files\Microsoft SDKs\Silverlight\v3.0
I'm scratching my head here... I have a large program which I've written in
I have a program that draws some vector graphics using System.Drawing and the Graphics
I have a C# program that uses System.Data.OracleClient to access an oracle database. The
I have the following MonoTouch program: using System.Drawing; using MonoTouch.Foundation; using MonoTouch.UIKit; using System;
I have this simple example: using System; using System.Collections.Generic; namespace ConsoleApplication1 { class Program

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.