No behavior in Blend and VS2013 for the XAML project, but present in the Javascript project

When I open the XAML project, a list of errors will report problems with all types of behavior on every page I open. Examples:

The name "EventTriggerBehavior" does not exist in the namespace "using:Microsoft.Xaml.Interactions.Core" The name "Interaction" does not exist in the namespace "using:Microsoft.Xaml.Interactivity" 

But I have and confirmed the link to BehaviorsXamlSDKManaged, and the project compiles and works fine.

enter image description here

If I open Blend by right-clicking on the solution explorer or open it in Windows Explorer - Blend will report the same errors, and when I go to the list of assets - the behavior will be empty

Blank asset list

If I create a version of Javascript, all actions will be found.

I'm at a standstill, having spent several days on this, any help will be very grateful to us.

---- EDIT: I tried reinstalling VS2013

+6
source share
6 answers

After upgrading to Visual Studio Update 2, the problem was resolved.

0
source

I resolved the error by adding a link to the XAML Behaviors for my Phone and Windows projects: Add Link → Windows 8.1 → Extensions → SDK Behavior (XAML). Microsoft.Xaml.Interactivity.Interaction is not part of the Windows 8.1 or Windows Phone 8.1 kernel.

 <Page x:Class="App1.BlankPage1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:App1" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:i="using:Microsoft.Xaml.Interactivity" xmlns:core="using:Microsoft.Xaml.Interactions.Core" mc:Ignorable="d"> <Page.Resources> <local:ItemClickedConverter x:Key="ItemClickedConverter" /> </Page.Resources> <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <GridView> <i:Interaction.Behaviors> <core:EventTriggerBehavior EventName="ItemClick"> <core:InvokeCommandAction Command="{Binding GoToContentCommand}" InputConverter="{StaticResource ItemClickedConverter}"> </core:InvokeCommandAction> </core:EventTriggerBehavior> </i:Interaction.Behaviors> </GridView> </Grid> 

+2
source

As I resolved it:

  • I deleted again
  • Removed any additional applications related to VS2013 (add-ons, libraries, Xamarin, etc.)
  • reboots
  • Ran Registry Cleaner
  • reboots

Then reinstall with the default settings.

For good measure, I considered the sacrifice to the cow to the programming gods, but decided to make them a strong pot of coffee.

Hope this helps someone else.

----- Updated Ran registry cleanup information

I used the free version of Wise Registry Cleaner http://www.wisecleaner.com/wiseregistrycleanerfree.html

He found numerous problems around components and several in Uninstaller. I often find that more complex applications leave the old registry settings that cause the reinstallation to not accurately reflect the new installation.

+1
source

Please make sure your project has a set of links for building Xaml Behaviors. Right click on the project -> add -> link. Check under Windows Phone 8.1 (or Assemblies) -> Extensions and check the Behaviors SDK (XAML). Hope this helps.

+1
source

Make sure your project targets 4.0 or 4.5. If you target structure 3.5, the behavior will not be shown.

0
source

I had a similar problem with a project in Blend 2015. The behavior reappeared after adding these links (from collections / extensions)

  • Microsoft.Expression.Interactions
  • Microsoft.Expression.Prototyping.Interactivity
  • System.Windows.Interactivity
0
source

All Articles