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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:24:38+00:00 2026-05-12T21:24:38+00:00

I have an error with my Xaml files in a WPF application. I’m not

  • 0

I have an error with my Xaml files in a WPF application. I’m not able to see my control in the Visual Studio designer or in Blend. But, the application compiles and is running perfectly.

In Blend, it says that there’s an invalid Xaml and the error just make no sens at all, but when I close the control there’s no more error.

In Visual Studio, the error is more explicit.

Error   27  Invalid XmlnsDeclaration occurs in assembly 'Microsoft.Expression.Interactivity, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. XmlnsDeclaration references a namespace 'Microsoft.Expression.Interactivity.Layout' that is not in the assembly.   

I made my research on this error and I found some things interesting.

Solution 1

Create a dummy class with the namespace Microsoft.Expression.Interactivity.Layout.

Result ? Not working.

Solution 2
Using…

xmlns:i="clr-namespace:Microsoft.Expression.Interactivity;assembly=Microsoft.Expression.Interactivity"

Instead of

xmlns:i="http://schemas.microsoft.com/expression/2009/interactivity"

… to add my reference.

Result ? I was already doing it this way.

UPDATE

Tried the reference to the schemas url only in Blend and still not working.

Error :

"The specified value cannot be assigned to the collection. The following type was expected : "TriggerAction".

With this code :

<interactivity:Interaction.Triggers><interactivity:EventTrigger  EventName="SelectionChanged" ><my:CommandAction Command="{Binding BreedingListSelectionChanged}" SyncOwnerIsEnabled="True" /></interactivity:EventTrigger></interactivity:Interaction.Triggers

Finally, I found this post by a guy from the Microsoft Only Community Support.
He’s saying that this it an known issue and it will probably be fix next release.

The fact is, I need it right now.

Anyone faced this problem ?

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-12T21:24:38+00:00Added an answer on May 12, 2026 at 9:24 pm

    I filed a bug on Connect regarding this exact behavior.

    The short answer is that this will not be corrected for VS 2008, but it does work in VS 2010. The best solution I’ve found is to use Blend for UI design (using the expression/2009/interactivity syntax) and set Visual Studio to edit XAML as XML (not using the designer). This has worked quite well for me.

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

Sidebar

Ask A Question

Stats

  • Questions 280k
  • Answers 280k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use: window.location = "http://my.url.here"; Here's some quick-n-dirty code that uses… May 13, 2026 at 3:35 pm
  • Editorial Team
    Editorial Team added an answer The problem was caused because I had the Intraweb form's… May 13, 2026 at 3:35 pm
  • Editorial Team
    Editorial Team added an answer Found it! In this blog post. Now the amended code… May 13, 2026 at 3:35 pm

Related Questions

I have an error with my Xaml files in a WPF application. I'm not
I a have 2 distinct UI elements in distinct files : a menuItem (in
OK I've been playing with Silverlight and ran into something interesting that I hope
Update: making the userIP static seemed to work. However, I learned that MainPage() is
I have an assembly that defines a UserControl X. Within that assembly, X is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.