문제

I have a user control and I'm currrently trying to implement a custom routed event in it according to this tutorial: http://msdn.microsoft.com/en-us/library/ms752288.aspx

I get an error saying that "The name 'EventManager' does not exist in the current context".
I've tried to add it by writing using System.Windows.EventManager but there is no such namespace.
Question is if it's possible at all to create custom routed events in windows phone 8 applications?

도움이 되었습니까?

해결책

You can't make any custom routed events in WP8. Instead you can make use of dependency properties along with I command. So you can route your events according to you wish. Try this: handling event of user control in its holding page's code behind.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top