1 / 26

Silverlight 4 Unpackaged

Let’s get it out of the browser!. Silverlight 4 Unpackaged. Daron Yöndem | Chief Architect @ DEVELOAD Microsoft Regional Director | Silverlight MVP. System.Bio.Current.ToString(). Founder @ DEVELOAD Writer –ASP.NET/AJAX Speaker –INETA MEA Speaker Bureau Lead Old ASP.NET MVP

nolan-moore
Download Presentation

Silverlight 4 Unpackaged

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Let’s get it out of the browser! Silverlight 4 Unpackaged Daron Yöndem | Chief Architect @ DEVELOAD Microsoft Regional Director | Silverlight MVP

  2. System.Bio.Current.ToString() • Founder @ DEVELOAD • Writer –ASP.NET/AJAX • Speaker –INETA MEA Speaker Bureau Lead • Old ASP.NET MVP • Current Silverlight MVP • Microsoft Regional Director

  3. DEMOOOB (Out Of Browser)

  4. Frequent players • App.Current.Install(); • System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable(); • System.Net.NetworkInformation.NetworkChange.NetworkAddressChanged • App.Current.IsRunningOutOfBrowser; • App.Current.HasElevatedPermissions;

  5. IsolatedStorage (Read) • using (System.IO.IsolatedStorage.IsolatedStorageFile Storage = • System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication()) { • if (Storage.FileExists("sample.txt")) { • System.IO.IsolatedStorage.IsolatedStorageFileStream MyFile = • Storage.OpenFile("sample.txt", System.IO.FileMode.Open, System.IO.FileAccess.Read); • System.IO.StreamReader MyReader = new System.IO.StreamReader(MyFile); • txtBox.Text = MyReader.ReadToEnd(); • MyReader.Close(); • } • else { • txtBox.Text = "File Not Found"; • } • }

  6. IsolatedStorage (Write) • using (System.IO.IsolatedStorage.IsolatedStorageFile Storage = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication()) • { • using (System.IO.IsolatedStorage.IsolatedStorageFileStream MyFile = Storage.CreateFile("sample.txt")) • { • System.IO.StreamWriter MyWriter = new System.IO.StreamWriter(MyFile); • MyWriter.Write(txtBox.Text); • MyWriter.Close(); • } • }

  7. DEMOOnline / Offline Data

  8. Full Trust • Change Window Chrome. • Get Access to the Disk • Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) • COM Interop • Unrestricted Socket / Web Cross Domain Request

  9. DEMOCustom Chrome Implementation

  10. DEMOCOM Interop

  11. Notification API • NotificationWindow Warning = new NotificationWindow(); • Warning.Content= new TextBlock { Text = "Sample Warning Text" }; • Warning.Show(2000);

  12. HTML Application = HTA! • Microsoft HTML Application Host Process • Full Trust HTML App • Just like a browser! • Create desktop experience!

  13. DEMOHTA

  14. LocalMessaging • LocalMessageReceiver MSGReceiver; • LocalMessageSender MSGSender; • void MainPage_Loaded(object sender, RoutedEventArgs e) • { • MSGReceiver = new LocalMessageReceiver("MyChannelName", ReceiverNameScope.Global,LocalMessageReceiver.AnyDomain ); • MSGReceiver.MessageReceived+=new EventHandler<MessageReceivedEventArgs>(MSGReceiver_MessageReceived); • } • void MSGReceiver_MessageReceived(object sender, MessageReceivedEventArgs e) • { • MessageBox.Show(e.Message); • } • private void button1_Click(object sender, RoutedEventArgs e) • { • MSGSender = new LocalMessageSender("MyChannelName", System.Windows.Messaging.LocalMessageSender.Global); • MSGSender.SendAsync("Message is here!"); • }

  15. Silent Install • "%ProgramFiles%\Microsoft Silverlight\sllauncher.exe" • /install:"D:\deploy\demoapp.xap" • /origin:"http://foocompany.com/apps/ClientBin/demoapp.xap" • /shortcut:desktop+startmenu • /overwrite

  16. DEMODrag&Drop From Desktop

  17. Windows Phone Series 7 • Silverlight and XNA ONLY! • Not inside the browser! It’s the APP MODEL! • Free Tools! For everyone! Including Blend and Visual Studio!!

  18. DEMOWP7 and Silverlight on the go!

  19. A Dream...

  20. Comes true!

  21. Summary • Out Of Browser Online / Offline Scenarios • IsolatedStorage or Disk Access • Customizing Full Trust Apps Interface • COM Interop Power • Notification API • HTA! • Local Messaging • Silent Installation • Desktop Drag&Drop • Windows Phone Support

  22. Q&A Questions and Answers (where possible :))

  23. Community Booth • Become part of our technological communities • Network with colleagues and experts • Ask the Experts sessions Exhibition AreaLevel -1 Photo (cc-by-sa) Chris Radcliff @ Flickr

  24. THANKS Daron Yöndem http://daron.yondem.com

More Related