views:

277

answers:

0

I'm developing a cross-platform solution with an underlying mechanism for reading files, in Silverlight I still want to be able to use the same filename references as with the other platforms, these file references are relative to the path of execution. For Silverlight, the files are marked as resources and included in the Xap.

My question is; in Expression Blend for my code to work, I do not get access to the actual LayoutRoot when accessing Application.Current.LayoutRoot, I get a reference to a control instance within Blend. How can I actually find the LayoutRoot or the EntryPoint of the page/project being worked on in Blend?

More details: The place I load specifically for Silverlight I use the Application.GetResourceStream() - and relative URIs does not work, I need to be specific with "/[packagename];component/[path]" - the packagename is the thing I'm trying to resolve - in runtime I can go get the current application, in designtime current application is something blend specific.