MSDN Magazine - February 2008 - (Page 21) OnLoaded method defined in the Python code. It serves as a placeholder since Silverlight 1.1 Alpha apps are required to have one XAML file. (That is expected to change in future releases of Silverlight, which will allow for loading without requiring bootstrapping XAML files like DLRConsole.xaml.) The part to highlight is the x:Code tag—this is the hook into the DLR, causing Silverlight to load the file and execute it using the DLR. This allows any events defined in XAML to be bound to methods defined in a DLR language. The definition of Canvas is simply there to get the Python code running. 2 + 2 4 py> CLR Inside Out february2008 21 http://www.iocomp.com http://www.iocomp.com
For optimal viewing of this digital publication, please enable JavaScript and then refresh the page. If you would like to try to load the digital publication without using Flash Player detection, please click here.