WP8 MvvmLight namespace missing and EventToCommand doesn't exist
问题 I am using MVVM Light libraries only (from Nuget package) in my Windows Phone 8 project and I want to use EventToCommand in ToggleSwitch . I have these lines of codes: <toolkit:ToggleSwitch x:Name="LockSwitch" IsChecked="{Binding IsLock, Mode=TwoWay}"> <i:Interaction.Triggers> <i:EventTrigger EventName="Toggled"> <Command:EventToCommand Command="{Binding DataContext.NavigateToArticleCommand, ElementName=LayoutRoot}" CommandParameter="{Binding}" /> </i:EventTrigger> </i:Interaction.Triggers> <