WP7のPrismでInteractionRequest使うときにはまったのでメモ。
はじめに
出したい!と思って以下のエントリも参考にしつつ実装してみる。
そしたら、XAMLを書くところで、
エラー 2 The tag 'InteractionRequestTrigger' does not exist in XML namespace 'clr-namespace:Microsoft.Practices.Prism.Interactivity.InteractionRequest;assembly=Microsoft.Practices.Prism.Interactivity'.とかなってうまくいかない。困った。
Prism for Phone updated for Mango
調べてみたらPrism for Phone updated for Mangoでこんなことに。
Microsoft.Practices.Prism.Interactivity was also updated to a 7.1 SDK project as well as the following updates:そして。
- Removed BindingListener and InteractionRequestTrigger
- Updated ApplicationBarButtonCommand
InteractionRequestTrigger was deprecated in favor of EventTrigger provided by the Expression Blend SDK for Silverlight.ということでInteractionRequestTriggerがなくなってる。
そのかわりEventTrigger使えっていうことなので、EventTrigger使って書いたのがこちら↓。



