(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .

Safe event detachment base class for Windows Phone 7 behaviors

(0 votes)
0 comments   /   posted by Silverlight Show on Nov 28, 2011
Tags:   windows-phone , wpf , joost-van-schaik

Read original post by Joost van Schaik at .NET by Example

Some time ago I blogged about the Safe Event Detachment ‘pattern’ for behaviors and even included a snippet that made implementing this pattern easier. When I started to use this pattern more often myself I observed quite some code duplication appearing and I don’t like that. What’s more – although the pattern works well under Silverlight and WPF, there are some unique situations in Windows Phone 7 that need some extra attention – particularly the situation in which the user is navigating back to a page containing such a behavior.


No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter