[IronPython] StaticResources + DLR + Silverlight
Jimmy Schementi
Jimmy.Schementi at microsoft.com
Tue May 6 00:04:23 PDT 2008
Dan,
It's a very good question, and I'm a little embarrassed not to have a solution for you. Give me some time to poke around and find the best way to do this.
~js
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] On Behalf Of Dan Eloff
> Sent: Monday, May 05, 2008 6:44 AM
> To: Discussion of IronPython
> Subject: [IronPython] StaticResources + DLR + Silverlight
>
> I notice if you use C#/VB, you have <Application> in your main xaml
> file. In there you can place resources that can be used from anywhere
> in your other xaml files. Using the {StaticResource foo} markup
> extension.
>
> If you are using a dynamic language, there is no <DynamicApplication>
> equivalent (please correct me if I'm wrong), most examples I've seen
> use <UserControl>.
>
> The trouble is placing your resources in <UserControl.Resources> makes
> them off limit to {StaticResource foo} in any other xaml files (again
> please correct me if I'm wrong)
>
> So I find myself in a nightmare of duplicating resources across files
> and setting styles in code from
> Application.Current.RootVisual.Resources['foo'], neither of which is
> pleasant. Are there really no better alternatives?
>
> -Dan
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Users
mailing list