Questions tagged [dynamically-loaded-xap]

12 questions
6
votes
2 answers

Silverlight: Cannot use reflection to GetValue of a field across XAPs?

I have a Silverlight application which has two different XAPs - an InitialXAP which is loaded statically by the HTML page and a DynamicXAP which is loaded from code within the initial XAP. The DynamicXAP is loaded with code similar to this: var asm…
Rohith
  • 2,043
  • 1
  • 17
  • 42
5
votes
1 answer

WCF service call within a dynamically-loaded-xap fails

I have a container/master Silverlight application. This container dynamically downloads xaps and calls out to specific user-controls within the downloaded xaps. Some of these user-controls call out to a WCF service hosted at server. The following…
3
votes
1 answer

Loading xap file on demand

I have Silverlight application called MyApp. During startup MyApp loads MyApp.Main.xap module using the following code: WebClient wc = new WebClient(); wc.OpenReadCompleted += new OpenReadCompletedEventHandler(onMainModuleLoaded); Uri uri = new…
synergetic
  • 7,756
  • 8
  • 65
  • 106
2
votes
1 answer

Silverlight JS API - loading a XAP on demand?

I have a hybrid javascript/Silverlight web app where I am using CreateFromXaml() to build a silverlight DOM from JS. Now I am trying to instantiate a new Control that lives in an external XAP file (up to this point I haven't loaded any XAPs, just…
gga80
  • 175
  • 1
  • 8
1
vote
0 answers

How get XAP name from Silverlight application with MEF?

I am writing Silverlight 4 application with Navigation framework and MEF. In my application each menu for navigation must load on MEF project and show it. But there are some problems. First of all I can't navigate to page of other XAP(see David…
1
vote
1 answer

Dynamically loading Silverlight XAPs

I have four Silverlight 4 apps, each in their own Visual Studio project, for which I want to write a "shell" to host them so they appear to the user as a single application. To minimize download times, I will download the XAPs and supporting DLLs…
Mike Chamberlain
  • 39,692
  • 27
  • 110
  • 158
1
vote
1 answer

Accessing external static resources placed in different assembly and XAP

My prism based silveright application is divided into multiple xaps to reduce initial download size and support multi tenant application. However, I cannot access the resource dictionaries defined in external assembly (i.e. the resource .xaml file…
1
vote
1 answer

Silverlight: how to handle standard assemblies (part 3)

When Silverlight4 application is build the 'Microsoft.Practices.Unity.Silverlight.dll' assembly is not putting into a separated file zip-file, it is in the XAP-file instead. To be consistent, here are links to previous questions of the 'How to…
Budda
  • 18,015
  • 33
  • 124
  • 206
1
vote
3 answers

how to add buttons dynamically in android?

I want to create a layout where buttons are added dynamically.In this the no of buttons to be added are decided on run time i.e depending upon the number of buttons return by server i want to add buttons. for (int k = 1; k < 100; k++) { …
Harish Koona
  • 189
  • 4
  • 16
0
votes
2 answers

How to export Application.Current with MEF in SL3?

I seem to be stuck. Is there a way to export Application.Current of a Silverlight project using MEF, so that when I load .XAP (my Silverlight component project) file I had access to the App of that .xap?
Masha
  • 327
  • 1
  • 6
  • 17
0
votes
1 answer

Silverlight assembly dynamic loading and unloading

Does silverlight provide a mechanism like full .NET framework's AppDomain for loading and unloading of assemblies? How can I unload an unused assembly?
0
votes
1 answer

django: Admin Ui: how to data dynamically into fileds based on selection option

I have django project, where in i have a drop down box and a multi-select list. The data in multi-selected list should be populated based on selection from drop down box. could some one help me here?