[IronPython] WPF Controls with Ipy
Cronin, Ted
tcronin at asrclkrec.com
Mon Jun 7 14:52:08 PDT 2010
Yep, that's it, that's the behavior. Yes, it would be nice to have this behavior on by default for the Ipy templates. At least I have a workaround. Plans to streamline the AddRef process would be nice, too, looking forward to the next CTP, regardless of the aforementioned behaviors ;)
Thank You, Dino.
Ted Cronin
ACR ValueGIS
(951) 955 - 0487
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dino Viehland
Sent: Friday, June 04, 2010 11:50 AM
To: Discussion of IronPython
Subject: Re: [IronPython] WPF Controls with Ipy
Ted wrote:
> Trying to use third party controls with VS Tools for Ipy with WPF is not
> working as expected. I can add a third party control if the language is c#,
> but when I try and do the same thing using IronPython with WPF, the third
> party controls do not get added to the designer as I expect. The VS interface
> grays out for a second, and then it goes back to normal with nothing being
> added.
Could this be because we don't have a grid or canvas in the default template for
a window? With our default templates I get this same experience (grey out, nothing
happens) for both 3rd party and normal WPF controls. If I add a Canvas or a Grid
then I'm able to drag and drop controls onto the surface.
There's still issues at that point of not actually having the references added but
I think if I made sure the assemblies were deployable and did a clr.AddReference
then it'd work (we have plans to improve that).
So I think we just need to update the template to match the same sort of template
that C# produces by default.
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Users
mailing list