2013-01-13 15 views
10

En son MVVMLight Tookit'i 4.1.26.24928 sürümüyle kullanıyorum ve WPF 4.5 kullanarak bir program yazıyorum.;: "montaj = GalaSoft.MvvmLight.WPF45 GalaSoft.MvvmLight.Command clr-ad"EventToCommand, Mvvmlight araç setinde yok WPF4.5

Şimdi VS2012 XAML dosyasında EventToCommand kullanamazsınız, bu "EventToCommand" ad mevcut değildir diyor.

Benim dll referanslar şunlardır:

System.Windows.Interactivity (v4.5.0.0) 

Galasoft.MvvmLight.WPF45 (v4.1.26.24928) 

Galasoft.MvvmLight.Extras.WPF45 (v4.1.26.24928) 

Bu benim kodudur:

ad:

xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.WPF45" 

textblock:

<TextBlock> 
    <i:Interaction.Triggers> 
     <i:EventTrigger EventName="MouseDown"> 
      <cmd:EventToCommand></cmd:EventToCommand> 
     </i:EventTrigger> 
    </i:Interaction.Triggers> 
</TextBlock> 

Ben somthing yanlış yaptım mıyım? Teşekkür ederim!

+9

saçmalık, bu problemi benim slef'le çözüyorum, yanlış ad alanını ekledim, xmlns: cmd = "http://www.galasoft.ch/mvvmlight" idi ' – TinySnake

cevap

İlgili konular