{"id":5227,"date":"2014-03-30T19:56:58","date_gmt":"2014-03-30T19:56:58","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/getting-all-the-attached-event-handlers-for-a-wpf-control-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:56:58","modified_gmt":"2014-03-30T19:56:58","slug":"getting-all-the-attached-event-handlers-for-a-wpf-control-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/getting-all-the-attached-event-handlers-for-a-wpf-control-collection-of-common-programming-errors\/","title":{"rendered":"Getting all the attached event handlers for a WPF control-Collection of common programming errors"},"content":{"rendered":"<p>You can&#8217;t do that (fortunately. Just imagine, that some external code removes <em>your<\/em> event handler, and your code just stops working in silent manner).<\/p>\n<p>(Reflection isn&#8217;t an option here, because event implementation may be differ from type to type). Usually, if you want to remove all event handlers this way, this means design error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can&#8217;t do that (fortunately. Just imagine, that some external code removes your event handler, and your code just stops working in silent manner). (Reflection isn&#8217;t an option here, because event implementation may be differ from type to type). Usually, if you want to remove all event handlers this way, this means design error.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5227","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5227"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5227\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}