VS 2013 と MVVM Light を使用して Windows 8.1 アプリを開発しています。
次のコードは、アプリバー内のフライアウトでの動作を示しています。
<AppBarButton.Flyout>
<Flyout x:Name="FlyoutCalculator"
Placement="Top"
FlyoutPresenterStyle="{StaticResource FlyoutPresenterBaseStyle}">
<uc:Calculator ApplyCommand="{Binding CancelCommand}"
CancelCommand="{Binding CancelCommand}"
Available="{Binding AvailableCounter, Mode=OneWay}"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"/>
<interactivity:Interaction.Behaviors>
<core:EventTriggerBehavior EventName="Opening">
<core:InvokeCommandAction Command="{Binding ShowCurrentCostsCommand}" />
</core:EventTriggerBehavior>
</interactivity:Interaction.Behaviors>
</Flyout>
</AppBarButton.Flyout>
残念ながら、アプリのコンパイル中に例外が発生します。
WinRT-Informationen: 型のインスタンスを型
Microsoft.Xaml.Interactions.Core.EventTriggerBehavior
のコレクションに追加できませんMicrosoft.Xaml.Interactivity.BehaviorCollection
ビューの他の動作は機能しますが、誰かがこれに対する解決策を知っていますか?