{"id":4505,"date":"2014-03-30T12:29:49","date_gmt":"2014-03-30T12:29:49","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/wpf-interchangable-user-controls-inheriting-interface-collection-of-common-programming-errors\/"},"modified":"2014-03-30T12:29:49","modified_gmt":"2014-03-30T12:29:49","slug":"wpf-interchangable-user-controls-inheriting-interface-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/wpf-interchangable-user-controls-inheriting-interface-collection-of-common-programming-errors\/","title":{"rendered":"WPF Interchangable User Controls inheriting interface-Collection of common programming errors"},"content":{"rendered":"<p>I have a number of user controls that implement video playback for different sources (Streaming, File, Network etc&#8230;)<\/p>\n<p>I have an IVideoPlayer interface that dictates the properties\/methods available on these controls.<\/p>\n<p>So if I have: UC1, UC2 and UC3 that all implement IVideoPlayer.<\/p>\n<p>I have my main app that needs to have an IVideoPlayer on it, but will only know at runtime which one it should be.<\/p>\n<p>I need to be able to bind to whatever IVideoPlayer is used from the main apps XAML.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a number of user controls that implement video playback for different sources (Streaming, File, Network etc&#8230;) I have an IVideoPlayer interface that dictates the properties\/methods available on these controls. So if I have: UC1, UC2 and UC3 that all implement IVideoPlayer. I have my main app that needs to have an IVideoPlayer on [&hellip;]<\/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-4505","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4505","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=4505"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4505\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}