{"action":"closed","issue":{"url":"https://api.github.com/repos/IronLanguages/main/issues/937","labels_url":"https://api.github.com/repos/IronLanguages/main/issues/937/labels{/name}","comments_url":"https://api.github.com/repos/IronLanguages/main/issues/937/comments","events_url":"https://api.github.com/repos/IronLanguages/main/issues/937/events","html_url":"https://github.com/IronLanguages/main/issues/937","id":51459749,"number":937,"title":"Code behind functionality in Silverlight","user":{"login":"ironpythonbot","id":2897688,"avatar_url":"https://avatars.githubusercontent.com/u/2897688?v=3","gravatar_id":"","url":"https://api.github.com/users/ironpythonbot","html_url":"https://github.com/ironpythonbot","followers_url":"https://api.github.com/users/ironpythonbot/followers","following_url":"https://api.github.com/users/ironpythonbot/following{/other_user}","gists_url":"https://api.github.com/users/ironpythonbot/gists{/gist_id}","starred_url":"https://api.github.com/users/ironpythonbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironpythonbot/subscriptions","organizations_url":"https://api.github.com/users/ironpythonbot/orgs","repos_url":"https://api.github.com/users/ironpythonbot/repos","events_url":"https://api.github.com/users/ironpythonbot/events{/privacy}","received_events_url":"https://api.github.com/users/ironpythonbot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-09T17:53:53Z","updated_at":"2015-12-11T13:34:45Z","closed_at":"2015-12-11T13:34:45Z","body":"We are developing a kind of big pure Silverlight Application (with\nMicrosoft.Scripting.Silverlight.DynamicApplication EntryPoint) and really miss\nthe feature to have this \"code behind\" Conzept of pure C# DLLs.  \n  \nA funktion like f.e. :  \n  \nloadUserControl(MyCoolPythonClassToControl, \"xamlForThisControl.xaml\")  \n  \nwould be really great to implement bindings between the XAML and the Class\nbehind it.  \n  \nOr another way to put it: How could the Class attribute in the XAML file be\nusefull when loaded with XamlReader.  \n  \nFor .NET this is solved in this discussion ( [\nhttp://forums.silverlight.net/forums/t/11565.aspx):\n](http://forums.silverlight.net/forums/t/11565.aspx\\):)  \n\n##\n\nDim myXaml As String = \"<me:Class1 xmlns=\"\" [\nhttp://schemas.microsoft.com/client/2007\n](http://schemas.microsoft.com/client/2007) \"\" xmlns:me=\"\"clr-\nnamespace:SilverlightApplication13;assembly=SilverlightApplication13\"\" />\"  \n  \n\n##  Dim myObj As Class1 =\nDirectCast(System.Windows.Markup.XamlReader.Load(myXaml), Class1)\n\n  \nIt's not clear if this is adoptable to a pure dynamic application. Is there a\nway to make my IronPython class (which is essentialle a C# class anyhow) make\naware to .NET so that the XamlReader can assoziate it wiht the right class on\nloading?  \n\nWork Item Details\n--------------------\n**Original CodePlex Issue:**\t[Issue 30581](http://ironpython.codeplex.com/workitem/30581)\n**Status:**\tProposed\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tUnassigned\n**Reported on:**\tApr 20, 2011 at 12:27 PM\n**Reported by:**\tspassig\n**Updated on:**\tFeb 22, 2013 at 2:09 AM\n**Updated by:**\tjdhardy\n"}}