xaml - Using EventToCommand spoils DesignView in Visual Studio 2015 -


i'm using latest visual studio:

microsoft visual studio professional 2015 version 14.0.24720.00 update 1 microsoft .net framework version 4.6.01038 

when create new wpf project (targetframeworkversion: v4.5.2) , add mvvmlightlibs (latest version: 5.2.0.0) nuget inside following xaml

<usercontrol x:class="mergeddirectoriestest.views.subview"          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"          xmlns:vm="clr-namespace:mergeddirectoriestest.viewmodels"          xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"          xmlns:command="http://www.galasoft.ch/mvvmlight">     ...     <textbox style="{staticresource formtextboxstyle}" text="{binding lastname, updatesourcetrigger=propertychanged}">         <i:interaction.triggers>             <i:eventtrigger eventname="keyup">                 <command:eventtocommand command="{binding textenteredcommand}" />             </i:eventtrigger>         </i:interaction.triggers>     </textbox> </usercontrol> 

eventtocommand marked error

cannot add instance of type 'eventtocommand' collection of type 'triggeractioncollection'. items of type 't' allowed. 

if change xml namespace to

<usercontrol ...          xmlns:command="clr-namespace:galasoft.mvvmlight.command;assembly=galasoft.mvvmlight.platform"> 

i this

the type 'eventtocommand' assembly 'galasoft.mvvmlight.platform' built older version of blend sdk, , not supported in windows presentation framework 4 project. 

for information: use system.windows.interactivity provided mvvmlight. far know it's newest version:

<reference include="system.windows.interactivity, version=4.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35, processorarchitecture=msil">   <hintpath>..\packages\mvvmlightlibs.5.2.0.0\lib\net45\system.windows.interactivity.dll</hintpath>   <private>true</private> </reference> 


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -