Click here to Skip to main content
15,885,365 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Unable to click or select TextBox in WPF? Pin
Alisaunder23-Oct-11 2:32
Alisaunder23-Oct-11 2:32 
QuestionPRISM - When is the module catalogue's modules registered with the container? Pin
Phillip Donegan4-Oct-11 22:13
Phillip Donegan4-Oct-11 22:13 
AnswerRe: PRISM - When is the module catalogue's modules registered with the container? Pin
Abhinav S5-Oct-11 2:04
Abhinav S5-Oct-11 2:04 
Questionxps file Pin
Aartemis4-Oct-11 5:41
Aartemis4-Oct-11 5:41 
AnswerRe: xps file Pin
Pete O'Hanlon4-Oct-11 5:50
mvePete O'Hanlon4-Oct-11 5:50 
QuestionSilverlight DataGrid - Get Each Row Issue Pin
NTheOne4-Oct-11 1:51
NTheOne4-Oct-11 1:51 
AnswerRe: Silverlight DataGrid - Get Each Row Issue Pin
Pete O'Hanlon4-Oct-11 1:54
mvePete O'Hanlon4-Oct-11 1:54 
QuestionDynamically Loaded Modules (.xap) with Build Server Versioning Pin
Phillip Donegan3-Oct-11 23:08
Phillip Donegan3-Oct-11 23:08 
Hi All,

I recently started working on a new project. One of my first tasks was to make the modules load dynamically. Basically the client would download the shell xap then when they required another module this modules xap file would be downloaded. Doing this doesn't force the user to download one massive xap file and therefore improve performance. I have this working without too much trouble however the problem I have is that once on the client I have no reference to the xap file that I have downloaded unless I hard code something. So at the moment I have solved this by creating an AvailableApplicationModule.shared.cs file which contains a list of all dynamic modules in the solution, then in the bootstrapper these are loaded into the module catalog. E.g.

C#
public static ApplicationModuleInfo SampleModule
{
    get
    {
        return new ApplicationModuleInfo
        {
            ModuleName = "SampleModule",
            ModuleType = GetModuleTypeForModule("SampleModule", "SampleModuleModule"),
            InitializationMode = InitializationMode.OnDemand,
            Ref = "Example.UI.SampleModule.xap"
        };
    }
}


The GetModuleTypeForModule will return the Fully qualified name like:

Example.UI.SampleModule.SampleModuleModule, Example.UI.SampleModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=537c3450b3658434

Then in the client tier I can access the module catalog get the typename and then create an instance of this ModuleType which will then initialise itself. Unfortunatly by doing this I have to specify a build version.

Now this is fine on a local machine as I can just override the build targets to force the version to 1.1.0.0 however once I commit this to TFS the actual build number will be used. Since I have to construct this fully qualified name in code it'll break as instead of getting 1.1.0.0 it'll be something like 1.0.15.1345. Which it won't be able to find as I need to specify the version number in code.

I guess this is a common problem so I'm just looking for some adivce on how you guys handle this?

Not sure if this is relevant but I'm using PRISM and Castle as the container.

Thanks
Phil
QuestionAdds in - MAF Pin
columbos149273-Oct-11 1:11
columbos149273-Oct-11 1:11 
AnswerRe: Adds in - MAF Pin
Pete O'Hanlon3-Oct-11 1:36
mvePete O'Hanlon3-Oct-11 1:36 
GeneralRe: Adds in - MAF Pin
columbos149273-Oct-11 1:42
columbos149273-Oct-11 1:42 
GeneralRe: Adds in - MAF Pin
Pete O'Hanlon3-Oct-11 2:17
mvePete O'Hanlon3-Oct-11 2:17 
QuestionNavigate between xaml page from aspx page Pin
yesu prakash2-Oct-11 20:00
yesu prakash2-Oct-11 20:00 
AnswerRe: Navigate between xaml page from aspx page Pin
Abhinav S2-Oct-11 22:28
Abhinav S2-Oct-11 22:28 
QuestionHelp me please Pin
Noor20112-Oct-11 3:03
Noor20112-Oct-11 3:03 
AnswerRe: Help me please Pin
Simon Bang Terkildsen2-Oct-11 8:14
Simon Bang Terkildsen2-Oct-11 8:14 
GeneralRe: Help me please Pin
Noor20112-Oct-11 18:03
Noor20112-Oct-11 18:03 
GeneralRe: Help me please PinPopular
Simon Bang Terkildsen2-Oct-11 18:18
Simon Bang Terkildsen2-Oct-11 18:18 
GeneralRe: Help me please Pin
Noor20112-Oct-11 22:34
Noor20112-Oct-11 22:34 
GeneralRe: Help me please Pin
Pete O'Hanlon3-Oct-11 0:36
mvePete O'Hanlon3-Oct-11 0:36 
GeneralCasting the net ... Pin
Gary Ranson1-Oct-11 22:32
Gary Ranson1-Oct-11 22:32 
GeneralRe: Casting the net ... Pin
Pete O'Hanlon3-Oct-11 0:50
mvePete O'Hanlon3-Oct-11 0:50 
QuestionSilverlight3, VS2008 Pin
DuttaSandip4U30-Sep-11 23:08
DuttaSandip4U30-Sep-11 23:08 
AnswerRe: Silverlight3, VS2008 Pin
Abhinav S30-Sep-11 23:24
Abhinav S30-Sep-11 23:24 
QuestionSilverlight slider - binding lost when value is out-of-range Pin
Wjousts29-Sep-11 8:41
Wjousts29-Sep-11 8:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.