iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
Can anyone tell me how to share data across XAP's? We are dynamically loading XAPs on demand so we are adding them to UXShell. We have some data that we need to be accessed from anywhere in the application.
Does the XAP file have any reference to get back to some application wide settings in the main XAP file? i.e. if we have:
Public Shared sessGUID As String
declared in the App.xaml.vb of the main application, is there anyway the dynamically loaded XAP file can get this information?
Regards,
Mark
You could use the ApplicationPackage Tag property in order to share data across XAP. In the external XAP, get the ApplicationPackage which has the Tag information modified using the UXShell object. Here is the snippet:
string tag2 = UXShell.Current.GetApplication("ClientUIExternalApp2").Tag.ToString();string tag = UXShell.Current.GetApplication("ClientUIExternalApp1").Tag.ToString();uXTextBox1.Text = tag + " || " + tag2;
Good question. In addition to using Tag as Glenn's reply, you may want to save the application-level settings in isolated storage.
The ClientUI Application Framework enables you to do that pretty easily. Check out How-to: Save and Load Application-specific Settings.
Hope this helps,Jimmy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname