windows phone:xaml中没有触发器?
我不知道如何在WindowsPhone8的xaml中使用触发器 但我见过一些人这样做,如下所示:windows phone:xaml中没有触发器?,xaml,triggers,windows-phone-8,Xaml,Triggers,Windows Phone 8,我不知道如何在WindowsPhone8的xaml中使用触发器 但我见过一些人这样做,如下所示: <toolkit:ListPicker Header="Background" ExpansionMode="FullscreenOnly" Template="{StaticResource ListPickerControlTemplate}"
<toolkit:ListPicker Header="Background"
ExpansionMode="FullscreenOnly"
Template="{StaticResource ListPickerControlTemplate}"
VerticalAlignment="Top"
ItemsSource="{Binding Path=Buildings.ObjectList}"
Margin="0"
x:Name="buldings"
Padding="0">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<i:InvokeCommandAction Command="{Binding Path=BuildingSelectionCommand}"
CommandParameter="{Binding Path=SelectedItem, ElementName=buldings}" />
</i:EventTrigger>
</i:Interaction.Triggers>
但我没有System.Windows.Interactive。
我没有通过Nuget找到一个兼容的包
谢谢你的耐心
右键单击参考->添加参考..->扩展->选择 System.Windows.Interactivity 程序集位于此处: C:\ProgramFiles(x86)\Microsoft SDK\Expression\Blend\Windows Phone\v8.0\Libraries\
右键单击参考->添加参考..->Wiin8.1(通用应用程序)的扩展->选择行为SDK(XAML)