Allan Jiang
Allan Jiang

Reputation: 11331

Page resources in Silverlight

I am working on a Windows Phone application based on C# Silverlight. I am thinking if there is a way can let me keep all my pages in a res file that can help me reference to the pages?

I saw someone asked this kind of question here: Is this XAML code possible?
But the answer was too simple that I cannot understand the usage of it. So if anyone can share some idea or example that will be very helpful.

Thank you

Upvotes: 0

Views: 250

Answers (1)

Rafal
Rafal

Reputation: 12619

I also think your approach is a bit strange and it would need very good reason to do it this way.

In SO question that you reference to user declares resources that hold his ViewModels. If you are familiar with MVVM then you know that it is not exactly what you are asking about and his approach is also "not the way I would do it". It is possible in silverlight to load multiple xap files that can contain views or from some stream. But I would strongly recommend that you just stay in main stream of app development - it will be easier for you.

If you provide some more explanation for your concrete scenario I might be more helpful.

Upvotes: 1

Related Questions