Hello guys,
I'm getting to grips with 'gestalt', the new way of embedding IronPython
in Silverlight:
http://ironpython.net/browser/docs.html
It seems ok so far, I still need to package my app into a zip file and
serve it locally (doesn't work from the filesystem) so you don't gain
much in terms of workflow but it does seem a better way to structure
Silverlight apps (keeping the runtime separate from the application).
It doesn't seem to me that embedded xaml is working. An html file with
pretty much nothing but the following content doesn't show a Silverlight
control (Firefox and IE on Windows 7):
<script src="http://gestalt.ironpython.net/dlr-latest.js"
type="text/javascript"></script>
<script type="application/xaml+xml" id="inlineXAML" width="200" height="75">
<Canvas Background="Wheat">
<TextBlock Canvas.Left="20" FontSize="24" />
</Canvas>
</script>
When I attempt to use embedded xaml to create the Silverlight control
and add a Python script for the application I was hoping to use the
following to access the Silverlight UI:
root = Application.Current.RootVisual
root here is None and the Silverlight control is not displayed. Any ideas?
Thanks,
Michael
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of
your employer, to release me from all obligations and waivers arising from any
and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap,
clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and
acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your
employer, its partners, licensors, agents and assigns, in perpetuity, without
prejudice to my ongoing rights and privileges. You further represent that you
have the authority to release me from any BOGUS AGREEMENTS on behalf of your
employer.
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com