Improve your contact center performance. See how you can make a difference.
Watch Now
Engage and build your ICT audience with CIOL online advertising.
Know more
Here, we have created simple button, with an event on button click. In this example, button click will display a message box as shown in 'Page.xaml.cs':
using Microsoft.LiveFX.Client; using Microsoft.LiveFX.ResourceModel; namespace PCQ_Silver_MEWASilverlight { public partial class Page : UserControl { private MeshApplicationService meshApp; public Page() { InitializeComponent(); meshApp = Application.Current.GetMeshApplicationService(); meshApp.LoadCompleted += new EventHandler(meshAppLoaded); meshApp.LoadAsync();
} void meshAppLoaded(object sender, EventArgs e) { } private void Button_Click(object sender, RoutedEventArgs e) { MessageBox.Show("This application runs ONLINE as well as OFFLINE"); } } }
Fun part starts now. As soon as you debug this application, it will generate pop up window with three steps. First one needs to create a new project on 'Azure Services Developer Portal'. This can be done by clicking on the link provided in the pop up window. On developer portal, click on 'Live Services Live Framework Community Technology Preview', and fill in 'Project Label' and 'Project Decription'.
From next window, select 'Create a Mesh-enabled Web application'. One needs to upload application package by clicking on 'Upload Package' button. Simply go back to Visual studio and click on the link in pop up window to get path of package. Once package is uploaded, it will generate application self link under 'Web Site Embedding'. Copy this link and pase it in pop up window and click on 'OK'. This wil launch appliction in 'Live Desktop'. Now same application can also be launched on user machine using shortcut created on desktop.
This way, same application runs on web site as well as on local machine, and further changes made on this application can easly be synchronized with mesh.
<< PREVIOUS