Visual Studio Development Bookmark and Share   
 index > Visual Studio WPF Designer > WPF Designer not working with Blend 3 Behaviours
 

WPF Designer not working with Blend 3 Behaviours

When I have made use of a Blend 3 Behaviour, the WPF Design reports and error saying that the attached property 'Bahaviors' was not found on type 'Interaction'.
John McCauley
John McCauley  Wednesday, August 19, 2009 3:55 PM
John,

Can you post a link to your application or post the XAML that will not load?

What version of Visual Studio are you using?

What any service packs installed?

What version of Blend are you using?


Cheers, Karl - Microsoft Product Team, Code Project MVP - http://karlshifflett.wordpress.com/
karl140.6  Wednesday, August 26, 2009 4:23 PM
I have the same problem on visual studio 2008 sp1 with blend 3.

when you use System.Windows.Interactivity in order to apply interaction behaviors or triggers

You 've got this error on the wpf designers : 'Behaviors' was not found on type 'Interaction'
However the project compiles and runs but you have no designer

<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    
	xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:il="clr-namespace:Microsoft.Expression.Interactivity.Layout;assembly=Microsoft.Expression.Interactions"
	x:Class="WpfApplication1.MainWindow"
	x:Name="Window"
	Title="MainWindow"
	Width="640" Height="480">

	<Grid x:Name="LayoutRoot">
		<Button Margin="188,161,202,0" VerticalAlignment="Top" Height="44" Content="Button">
			<i:Interaction.Behaviors>
				<il:MouseDragElementBehavior/>
			</i:Interaction.Behaviors>
			<i:Interaction.Triggers>
			</i:Interaction.Triggers>
		</Button>
	</Grid>
</Window>
  • Edited byCorneflex Thursday, August 27, 2009 7:51 AM
  •  
Corneflex  Thursday, August 27, 2009 7:47 AM
Corneflex  Friday, August 28, 2009 7:09 AM

You can use google to search for other answers

Custom Search

More Threads

• Beta 1 almost unusable for me...
• Visual studio 2008/expression Blend 2.0/2.5 hangs when trying to view xaml
• Chose default browser for xbap applications
• How to make images part of a Resource Dictionary?
• Unable to create New Web Application
• Attached properties VS designer
• How To: Rename Windows Application (WPF) Form Name & Class Name
• Vista business sp1, VS 2008 STD sp1 Wpf solution, crash on exit
• Cannot Write XML file in XBAP
• toolboxcontrolsinstaller WPF controls