Note that there are some explanatory texts on larger screens.

plurals
  1. POVS Xaml designer error
    primarykey
    data
    text
    <p>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. </p> <p>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.</p> <p>In Visual Studio, the error is more explicit.</p> <pre><code>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. </code></pre> <p>I made my research on this error and I found some things interesting.</p> <p><strong>Solution 1</strong></p> <p>Create a dummy class with the namespace <em>Microsoft.Expression.Interactivity.Layout</em>.</p> <p>Result ? Not working.</p> <p><strong>Solution 2</strong> Using...</p> <pre><code>xmlns:i="clr-namespace:Microsoft.Expression.Interactivity;assembly=Microsoft.Expression.Interactivity" </code></pre> <p>Instead of</p> <pre><code>xmlns:i="http://schemas.microsoft.com/expression/2009/interactivity" </code></pre> <p>... to add my reference.</p> <p>Result ? I was already doing it this way.</p> <h2><strong>UPDATE</strong></h2> <p>Tried the reference to the schemas url only in Blend and still not working.</p> <p>Error : </p> <pre><code>"The specified value cannot be assigned to the collection. The following type was expected : "TriggerAction". </code></pre> <p>With this code : </p> <pre><code>&lt;interactivity:Interaction.Triggers&gt;&lt;interactivity:EventTrigger EventName="SelectionChanged" &gt;&lt;my:CommandAction Command="{Binding BreedingListSelectionChanged}" SyncOwnerIsEnabled="True" /&gt;&lt;/interactivity:EventTrigger&gt;&lt;/interactivity:Interaction.Triggers </code></pre> <hr> <p>Finally, I found <a href="http://forums.silverlight.net/forums/t/89257.aspx" rel="nofollow noreferrer">this post</a> 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. </p> <p>The fact is, I need it right now.</p> <p>Anyone faced this problem ?</p> <p>Thanks. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload