Possible Duplicate:
How do I Unregister ‘anonymous’ event handler
In my c# method i am using
this.Loaded+=(sender,e)=>{ my code };
for executing the code on load time. But my issue is that i don't how to un register this chained events. I tried something similar to
this.Loaded-=(sx,ex)=>{};
but the event is not un registering. Any one please help me to solve this issue.