Click here to Skip to main content
15,914,163 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Custom Strtpage Namespace Problem Pin
Kevin Marois7-Oct-11 10:05
professionalKevin Marois7-Oct-11 10:05 
GeneralRe: Custom Strtpage Namespace Problem Pin
Kevin Marois7-Oct-11 10:41
professionalKevin Marois7-Oct-11 10:41 
QuestionUnable to click or select TextBox in WPF? [SOLVED] Pin
Alisaunder6-Oct-11 5:29
Alisaunder6-Oct-11 5:29 
AnswerRe: Unable to click or select TextBox in WPF? Pin
SledgeHammer016-Oct-11 6:33
SledgeHammer016-Oct-11 6:33 
GeneralRe: Unable to click or select TextBox in WPF? Pin
Alisaunder6-Oct-11 6:40
Alisaunder6-Oct-11 6:40 
GeneralRe: Unable to click or select TextBox in WPF? Pin
Pete O'Hanlon6-Oct-11 7:14
mvePete O'Hanlon6-Oct-11 7:14 
GeneralRe: Unable to click or select TextBox in WPF? Pin
Alisaunder6-Oct-11 8:04
Alisaunder6-Oct-11 8:04 
GeneralRe: Unable to click or select TextBox in WPF? Pin
SledgeHammer016-Oct-11 7:26
SledgeHammer016-Oct-11 7:26 
GeneralRe: Unable to click or select TextBox in WPF? Pin
Alisaunder6-Oct-11 8:02
Alisaunder6-Oct-11 8:02 
GeneralRe: Unable to click or select TextBox in WPF? Pin
SledgeHammer016-Oct-11 8:23
SledgeHammer016-Oct-11 8:23 
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 

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.