<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8492016573075353132</atom:id><lastBuildDate>Fri, 17 May 2013 06:37:27 +0000</lastBuildDate><title>Explore .NET with Vikram Pendse</title><description>Microsoft.NET for everyone !!</description><link>http://pendsevikram.blogspot.com/</link><managingEditor>noreply@blogger.com (Vikram Pendse)</managingEditor><generator>Blogger</generator><openSearch:totalResults>144</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ExplorenetWithVikramPendse" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="explorenetwithvikrampendse" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-5943016091642923908</guid><pubDate>Sun, 21 Apr 2013 13:47:00 +0000</pubDate><atom:updated>2013-04-21T19:17:38.583+05:30</atom:updated><title>Introduction to Speech Capabilities in Windows Phone 8 – Part 3</title><description>&lt;p&gt;Today I am going to post last part of this series, Hope &lt;a href="http://pendsevikram.blogspot.in/2013/04/introduction-to-speech-capabilities-in.html" target="_blank"&gt;Part1&lt;/a&gt; and &lt;a href="http://pendsevikram.blogspot.in/2013/04/introduction-to-speech-capabilities-in_2.html" target="_blank"&gt;Part2&lt;/a&gt; went well with you and hope you tried out the Speech Capabilities of Windows Phone 8. We already talked a lot about the different approaches of Text To Speech, In this we will see exactly reverse approach that its Speech To Text. Most of the time it is considered to be vary hard and difficult to implement, But with the given APIs in Windows Phone 8 makes them pretty easy to implement.So Lets see how you can build such app quickly.&lt;/p&gt; &lt;p&gt;Take a new Windows Phone 8 Application Project. Design I will leave that to you, Right now I have put this inside a Pivot item like this :&lt;/p&gt; &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&amp;lt;phone:PivotItem Header="Speech2Text" DoubleTap="LoadSpeechToText"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;lt;/phone:PivotItem&amp;gt;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;private async void LoadSpeechToText(object sender, RoutedEventArgs e)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SpeechRecognizerUI myspeechRecognizer = new SpeechRecognizerUI();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myspeechRecognizer.Settings.ExampleText = "Ex. Call,Search,Run";&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myspeechRecognizer.Settings.ListenText = "Listening...";&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ….&lt;/p&gt; &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt; &lt;p&gt;This will bring up the Popup where you need to suppose to talk or give command, To enable this functionality, you need to add two more lines of code&lt;/p&gt; &lt;p&gt;myspeechRecognizer.Settings.ReadoutEnabled = true; &lt;br&gt;myspeechRecognizer.Settings.ShowConfirmation = true;  &lt;p&gt;Once you run this you will see our regular Speech Popup like this :  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-wEC8yFp81Xc/UXPt17FuAkI/AAAAAAAADmQ/SpSQFztY-X4/s1600-h/Launching%25255B14%25255D.png"&gt;&lt;img title="Launching" style="border-top: 0px; border-right: 0px; border-bottom: 0px; float: none; margin-left: auto; border-left: 0px; display: block; margin-right: auto" border="0" alt="Launching" src="http://lh5.ggpht.com/-Uw-G8f-2jMA/UXPt3TNooSI/AAAAAAAADmY/tfME0pmvBEQ/Launching_thumb%25255B12%25255D.png?imgmax=800" width="271" height="434"&gt;&lt;/a&gt; &lt;p&gt;But just showing this screen is not sufficient, we need to capture the Text and display it to user, So for this we need to add few more lines of code &lt;/p&gt; &lt;p&gt;SpeechRecognitionUIResult Speechresult = await speechRecognizer.RecognizeWithUIAsync();&lt;br&gt;if (Speechresult.ResultStatus == SpeechRecognitionUIStatus.Succeeded) &lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(Speechresult.RecognitionResult.Text); &lt;br&gt; } &lt;p&gt;Now you can see the result on a MessageBox, While doing the test I said “Nokia” and you can see the result on the screen. &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-mZoCbSrlne4/UXPt4f81TQI/AAAAAAAADmg/8zPzLwRa4ow/s1600-h/Launching%25255B46%25255D.png"&gt;&lt;img title="Launching" style="border-top: 0px; border-right: 0px; border-bottom: 0px; float: none; margin-left: auto; border-left: 0px; display: block; margin-right: auto" border="0" alt="Launching" src="http://lh3.ggpht.com/-5v2552WuX_0/UXPt5tBBlUI/AAAAAAAADmo/5nuncmDjhCg/Launching_thumb%25255B42%25255D.png?imgmax=800" width="267" height="366"&gt;&lt;/a&gt;&lt;a href="http://lh4.ggpht.com/-Q4PI3oRPbTY/UXPt6R8fGAI/AAAAAAAADmw/uCoGTS6WwI8/s1600-h/heardsay%25255B14%25255D.png"&gt;&lt;img title="heardsay" style="border-top: 0px; border-right: 0px; border-bottom: 0px; float: none; margin-left: auto; border-left: 0px; display: block; margin-right: auto" border="0" alt="heardsay" src="http://lh4.ggpht.com/-g6zlPHTuEtA/UXPt7i-mIHI/AAAAAAAADm4/9RTSnX1itGM/heardsay_thumb%25255B12%25255D.png?imgmax=800" width="270" height="432"&gt;&lt;/a&gt; &lt;p&gt;And here you can see the Result on MessageBox.&amp;nbsp; &lt;a href="http://lh3.ggpht.com/-z4Jp7JXAuUI/UXPt9IdLjrI/AAAAAAAADnA/vpEC_iGaqKQ/s1600-h/final%25255B7%25255D.png"&gt;&lt;img title="final" style="border-top: 0px; border-right: 0px; border-bottom: 0px; float: none; margin-left: auto; border-left: 0px; display: block; margin-right: auto" border="0" alt="final" src="http://lh5.ggpht.com/-jwdf5gHp49Q/UXPt-LFZidI/AAAAAAAADnI/H59KpOW4LCw/final_thumb%25255B5%25255D.png?imgmax=800" width="266" height="425"&gt;&lt;/a&gt;Now its your decision where you want this piece of code to be use, There are lot of Business cases where you can use this kind of Speech Recognition. You can use this to launch certain Commands in your application or you can use to record voice as well and convert to text for any purpose.Hope you will find this useful and thus quick end of my Speech Capability series, I have kept it short but in coming days I am going to put detail article on these features by taking a Business Case.Till then Happy Coding, I will soon post a Calendar related article and we will see how we can use that API at our best. &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;  </description><link>http://pendsevikram.blogspot.com/2013/04/introduction-to-speech-capabilities-in_21.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/-Uw-G8f-2jMA/UXPt3TNooSI/AAAAAAAADmY/tfME0pmvBEQ/s72-c/Launching_thumb%25255B12%25255D.png?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-2723283995678411616</guid><pubDate>Tue, 02 Apr 2013 18:02:00 +0000</pubDate><atom:updated>2013-04-02T23:32:35.594+05:30</atom:updated><title>Introduction to Speech Capabilities in Windows Phone 8 – Part 2</title><description>&lt;p&gt;Hope you enjoyed my &lt;a href="http://pendsevikram.blogspot.in/2013/04/introduction-to-speech-capabilities-in.html"&gt;last article&lt;/a&gt; on Speech Capability in Windows Phone 8, Today I am posting another part or you can say little extension to what I did in Part 1.&lt;/p&gt; &lt;p&gt;In the first part we saw how we can incorporate the built in Speech Capability with the given set of Speech APIs in Windows Phone 8 SDK and how they have edge over earlier Windows Phone builds like 7 and above.We saw I simple Hello World kind of demo, Today I am going to demonstrate how we can leverage the SSML (Speech Synthesis Markup Language) using Speech APIs in Windows Phone.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;What is SSML ? :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;As per W3C, SSML can be defined as :&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;SSML is part of a larger set of markup specifications for voice browsers developed through the open processes of the W3C. It is designed to provide a rich, XML-based markup language for assisting the generation of synthetic speech in Web and other applications.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;strong&gt;Possible Scenarios of SSML Implementation : &lt;/strong&gt;This is very useful in a multilingual app where you need to implement Text to Speech of the content in different languages. Also it provides high level control over the grammer, choice of language, voice of male or female etc. with the help of tags defined in SSML.So let’s see a simple demo of incorporating SSML in Windows Phone 8, Then how you will use that in your app, Its your call !&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Namespaces :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;using Windows.Phone.Speech.Synthesis;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Design (XAML) :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&amp;lt;phone:PivotItem Header="SSML" DoubleTap="LoadSSML"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock x:Name="TTSSSML" HorizontalAlignment="Left" Height="500" Margin="33,26,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="389"/&amp;gt;&lt;br&gt;&amp;lt;/phone:PivotItem&amp;gt;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;  &lt;p&gt;private async void LoadSSML(object sender,RoutedEventArgs e)&lt;br&gt;{ … }  &lt;p&gt;I am using an async method here which have 2 parts, First will just display the Text on the Textblock and second part will actually reading of that SSML markup using Speech Synthesizer, Here is the first part :  &lt;p&gt;//Speech Synthesis Markup Language for Display&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TTSSSML.Text = @"&amp;lt;speak version=""1.0""&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns=""&lt;a href="http://www.w3.org/2001/10/synthesis&amp;quot;&amp;quot;"&gt;http://www.w3.org/2001/10/synthesis""&lt;/a&gt; xml:lang=""ja-JP""&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;voice gender=""male""&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 趣味は日本語を勉強することです&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 趣味はいろんな新しい食べ物に挑戦することです&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; パソコンいじりが得意なので、何か手伝えることがありましたら声をかけて下さい。&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/voice&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/speak&amp;gt;";  &lt;p&gt;Here you can see the SSML Markup, I agree, I am not SSML Expert and I have taken this piece of SSML tags by doing some research over internet and I spend little time to convert it to Japanese (I actually can read and write Japanese :) ..its a different story ) instead of keeping it in simple English. In your scenario all you need to do is change the “ja-JP” attribute to your own language like en-US etc and try out with that specific language content.You can also change gender to male or female with &amp;lt;voice gender=”&amp;lt;value&amp;gt;&amp;gt; attribute. All assumption is you have Speech enabled on your phone and also you have marked or enabled Speech in manifest file as I have demonstrated in my first article. Then rest is just routine coding nothing else.Now I am showing part two of this snippet, After looking at it, you will realize that I hardly making any changes here :&lt;/p&gt; &lt;p&gt;//Actual Speech in Japanese Language using SSML&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ttsJP = new SpeechSynthesizer();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await ttsJP.SpeakSsmlAsync(@"&amp;lt;speak version=""1.0""&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns=""&lt;a href="http://www.w3.org/2001/10/synthesis&amp;quot;&amp;quot;"&gt;http://www.w3.org/2001/10/synthesis""&lt;/a&gt; xml:lang=""ja-JP""&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;voice gender=""male""&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 趣味は日本語を勉強することです&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 趣味はいろんな新しい食べ物に挑戦することです&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; パソコンいじりが得意なので、何か手伝えることがありましたら声をかけて下さい。&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/voice&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/speak&amp;gt;");  &lt;p&gt;All set ! Now just press F5 and Enjoy ! here are few screenshots if you are trying to visualize how it will look on device.&lt;/p&gt; &lt;p&gt;In English version of SSML :&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-JRDkrjegeOg/UVsdLntFZZI/AAAAAAAADlo/M-epb0n8MKI/s1600-h/SSML%25255B20%25255D.png"&gt;&lt;img title="SSML" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="SSML" src="http://lh5.ggpht.com/-NufiwmT1Ozc/UVsdMZh0eqI/AAAAAAAADlw/QB-LIWsKsUI/SSML_thumb%25255B18%25255D.png?imgmax=800" width="267" height="376"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;In Japanese version of SSML&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-aOKI9f6_k6A/UVsdNavEQeI/AAAAAAAADl4/3EbuwJsOkkM/s1600-h/JPSSML%25255B7%25255D.png"&gt;&lt;img title="JPSSML" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="JPSSML" src="http://lh3.ggpht.com/-EQR4R_GBiIg/UVsdOLq_ZRI/AAAAAAAADmA/h-avUE2OUh8/JPSSML_thumb%25255B5%25255D.png?imgmax=800" width="268" height="411"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;That’s all ! Hope you like this part, Till now in both parts we actually saw Text To Speech Capability in a nutshell, In my next article which might be last in the short speech capability series, I am going to talk on Speech To Text. Post these parts, I will move to Maps for a while and then will come back with few more interesting and deep dive articles.Till then..enjoy Windows Phone 8 &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2013/04/introduction-to-speech-capabilities-in_2.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/-NufiwmT1Ozc/UVsdMZh0eqI/AAAAAAAADlw/QB-LIWsKsUI/s72-c/SSML_thumb%25255B18%25255D.png?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-293893965009451530</guid><pubDate>Mon, 01 Apr 2013 18:54:00 +0000</pubDate><atom:updated>2013-04-02T00:24:41.980+05:30</atom:updated><title>Introduction to Speech Capabilities in Windows Phone 8 – Part 1</title><description>&lt;p&gt;After a long..I am writing blog, I hope and I wish I will resume blogging like I use to in past. Lots of things happened in past few months. I changed my job,got married and what not ! Well, Life !&lt;/p&gt; &lt;p&gt;Today I am going to share few things about Speech Capabilities in Windows Phone 8, Although I haven’t talked about it in past for Windows Phone 7-7.5 just because there were lots of limitations in this area in terms of APIs and Accuracy as well.With Phone 8 things are totally different. Earlier till 7.5 it was totally dependent on Bing Service which has to be online and network or internet connection was mandatory to have.Now it works offline without having any data/internet connection. Thanks to Microsoft for this improvement. Little Thanks to Microsoft MVPs like me ! (little pat on back)..surprised? Well I was a volunteer and part of a Secret mission, Proud to get associated with it, Although our contribution was small compare to efforts taken by Microsoft Product Group Members but it was got recognized in recent Microsoft TechEd 2013 at Pune, India by Sanket Akerkar,Managing Director, Microsoft India at Microsoft.&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-R9J2HsXr-X8/UVnXqpobyuI/AAAAAAAADkA/iCsOIYb3uGk/s1600-h/SanketAkerkar%25255B21%25255D.png"&gt;&lt;img title="SanketAkerkar" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="SanketAkerkar" src="http://lh6.ggpht.com/-KcmqOK_w02k/UVnXs4ZNwxI/AAAAAAAADkI/1aMyvtwh6DQ/SanketAkerkar_thumb%25255B19%25255D.png?imgmax=800" width="474" height="229"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Well, Lets come back to main topic, So I am actually planning to write a big article but now plan to break it in few,So today let’s build a Hello World type App to understand TTS (Text To Speech) Capabilities.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Initial Work : &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Open a brand new Windows Phone Project from Visual Studio 2012&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-eig524T0KLA/UVnXvPQV3XI/AAAAAAAADkQ/yiOAnPIwlmE/s1600-h/Open%25255B10%25255D.png"&gt;&lt;img title="Open" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="Open" src="http://lh6.ggpht.com/-lPruTgn-mL4/UVnXwpVuk1I/AAAAAAAADkY/kv8xya-c6r8/Open_thumb%25255B8%25255D.png?imgmax=800" width="500" height="348"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Choose Windows Phone OS 8.0&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-Ztp_bt7C7o8/UVnXxy_K37I/AAAAAAAADkg/j6M5_DI6xsE/s1600-h/OSChoice%25255B8%25255D.png"&gt;&lt;img title="OSChoice" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="OSChoice" src="http://lh5.ggpht.com/-vy3_A6MLRi4/UVnXzLsjEhI/AAAAAAAADko/zMiIiENnbIc/OSChoice_thumb%25255B6%25255D.png?imgmax=800" width="422" height="217"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Design :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&amp;lt;phone:Pivot Title="Speech Capability"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--Pivot item one--&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phone:PivotItem Header="howdy"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button x:Name="TTSHowdy" Content="Hello World !" HorizontalAlignment="Left" Width="456" Height="87" VerticalAlignment="Top" Margin="0,82,0,0" Click="TTSHowdy_Click"/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/phone:PivotItem&amp;gt;&lt;/p&gt; &lt;p&gt;&amp;lt;/phone:Pivot&amp;gt;&lt;/p&gt; &lt;p&gt;I am actually putting it in a Pivot Navigation as I wish to demonstrate couple of more features of Speech within a single app, In your design you can very well change the layout.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Namespace Required :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;using Windows.Phone.Speech.Synthesis;&lt;br&gt;using Windows.Phone.Speech.Recognition;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;private async void TTSHowdy_Click(object sender, RoutedEventArgs e)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var TTS = new SpeechSynthesizer();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await TTS.SpeakTextAsync("Welcome to Microsoft TechEd India 2013 in Pune");&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;So SpeakTextAsync basically an async method which take 2 parameters as Content and Content and ObjectState. So similarly we can pass big string or textblock data to this method so that it will speak the content for you with the default voices installed on your phone.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Here is the output : (On actual device/emulator, you can hear the Sound )&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-QWIot0FwUZw/UVnX0vcCHMI/AAAAAAAADkw/xuFfHchqDVI/s1600-h/howdy%25255B9%25255D.png"&gt;&lt;img title="howdy" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="howdy" src="http://lh6.ggpht.com/-qjTGB6E-Peo/UVnX116BnzI/AAAAAAAADk4/_BzFlWo0M9c/howdy_thumb%25255B7%25255D.png?imgmax=800" width="235" height="374"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Now after this Hello World, Lets build another Pivot which will display as well as play all the voices installed on your phone. To showcase this, I am making use of “Long List Selector” on my UI.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Design :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&amp;lt;phone:PivotItem Header="voices" DoubleTap="LoadTTSAllVoices"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phone:LongListSelector&amp;nbsp; x:Name="llstNames" HorizontalAlignment="Left" Width="456" Height="232" VerticalAlignment="Top" Margin="0,3,0,0"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/phone:PivotItem&amp;gt;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;List&amp;lt;string&amp;gt; lstVoices = new List&amp;lt;string&amp;gt;();  &lt;p&gt;private async void LoadTTSAllVoices(object sender, RoutedEventArgs e)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Get all the Voices&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var voice in InstalledVoices.All)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lstVoices.Add(voice.DisplayName + ", " + voice.Language + ", " + voice.Gender);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (var text2speech = new SpeechSynthesizer())&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text2speech.SetVoice(voice);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await text2speech.SpeakTextAsync("Hello world! I'm " + voice.DisplayName + ".");&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }  &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; llstNames.ItemsSource = lstVoices.ToList();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }  &lt;p&gt;Basically, This async methods loops over collection of Voices installed and add each one to the List&amp;lt;T&amp;gt;. So once the voice is picked and set in the SetVoice Method, We can then use the same method SpeakTextAsync which we used above to read the text content.So after reading via each of the voice, We add the voice reader information to a List&amp;lt;T&amp;gt; and bind it further to Long List Selector. So it reads the content and add each voice to the list one after the another.  &lt;p&gt;&lt;strong&gt;Here is the Output : (On actual device/emulator, you can hear the Sound )&lt;/strong&gt;  &lt;p&gt;&lt;strong&gt;&lt;a href="http://lh4.ggpht.com/-KOP_hojChwU/UVnX38xbFZI/AAAAAAAADlA/Y1BmJUC8Ob4/s1600-h/voices%25255B7%25255D.png"&gt;&lt;img title="voices" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="voices" src="http://lh5.ggpht.com/-HH5EG45mYe8/UVnX5SqG9XI/AAAAAAAADlI/GrLv-zFGcBs/voices_thumb%25255B5%25255D.png?imgmax=800" width="246" height="394"&gt;&lt;/a&gt; &lt;/strong&gt; &lt;p&gt;So that all I want to cover in Part –1, I will post another interesting stuff in upcoming parts, I am actually planning to post 2-3 more.Meanwhile you can try this and check the point to remember or conclusion :&lt;/p&gt; &lt;p&gt;1. Your PC/Laptop Speakers should be on to experience the voices coming out&lt;/p&gt; &lt;p&gt;2. There is no separate SDKs or Tools to be installed, These Speech APIs comes by default with the Phone SDK.&lt;/p&gt; &lt;p&gt;3. You need to Turn On Microphone and Speech Capability option from WMAppManifest.xml like this :&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-D02ux1bzQgQ/UVnX6WgKPFI/AAAAAAAADlQ/Y9JZVDg87gg/s1600-h/Capabilities%25255B12%25255D.png"&gt;&lt;img title="Capabilities" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; float: none; margin-left: auto; display: block; border-top-width: 0px; margin-right: auto" border="0" alt="Capabilities" src="http://lh4.ggpht.com/-7d6OBGKYGSQ/UVnX8NZaG7I/AAAAAAAADlY/vB29Y7UffsY/Capabilities_thumb%25255B10%25255D.png?imgmax=800" width="316" height="389"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;So that all I want to cover in Part –1 , I am already in progress for Part 2 and expect few more deep dive stuff on Speech Capabilities in coming parts as we progress. Do enjoy and try out the above capabilities and feel free to share your feedbak.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2013/04/introduction-to-speech-capabilities-in.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/-KcmqOK_w02k/UVnXs4ZNwxI/AAAAAAAADkI/1aMyvtwh6DQ/s72-c/SanketAkerkar_thumb%25255B19%25255D.png?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-9187803659911356668</guid><pubDate>Sun, 29 Jul 2012 18:04:00 +0000</pubDate><atom:updated>2012-07-29T23:34:29.886+05:30</atom:updated><title>MCTS : Microsoft Silverlight 4 Development Exam Guide (70-506) by Packt Publishing</title><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Hello, After a long time I got chance to come back here.I will soon resume blogging in month of August. Last 4-5 months were horrible due to workload and some family commitments,but now everything is coming to normal and soon I will start posting some amazing Windows 8 and Windows Phone 8 stuff here.&lt;/p&gt; &lt;p&gt;Today I am talking about a nice handy and in depth Microsoft Certification Exam Guide for Silverlight 4 Development exam written by Johnny Tordgeman for Pack Publishing.&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-lL__mI4CFAM/UBV7GoCBCaI/AAAAAAAADhs/cEsorpr_kJ8/s1600-h/image%25255B10%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-7RIcOG8bcLw/UBV7IlbTh4I/AAAAAAAADh0/5H-MG05j8xU/image_thumb%25255B8%25255D.png?imgmax=800" width="325" height="436"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Johnny who own expertise on various Web Technologies within Microsoft Platform and who is also a Community Contributor and active Speaker in various events done very amazing write-up in this title.He done a great hard work to give a high quality Exam Guide on Silverlight 4 Development to the Developers,Designers and Others who are doing Certification in Silverlight Track or wish to pursue Silverlight Certification.&lt;/p&gt; &lt;p&gt;This book is a complete Exam Guide in all terms, Great Content with clear Screenshots wherever applicable along with Samples and Questions at the end of each Chapter.These Sample Questions gives Reader a feel of how the actual questions might be in Microsoft Silverlight 4 Exam with “Test your knowledge” section.&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-nVQpgl7Nl4Y/UBV7KK2kvMI/AAAAAAAADh8/rH67kiK5HjY/s1600-h/image%25255B28%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-XajALmAJRxY/UBV7LHqPX_I/AAAAAAAADiE/egi3yIWS7cI/image_thumb%25255B22%25255D.png?imgmax=800" width="202" height="240"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;This book is not only Exam Guide but a complete Book with very unique content that each Silverlight Developer and Designers should have with them today.There are total 8 Chapters in this book which covers all the important aspects of Silverlight 4.&lt;/p&gt; &lt;p&gt;Before this book got published for people, it was also reviewed by my friend and fellow Silverlight MVP Kunal Chowdhury (&lt;a href="http://www.kunal-chowdhury.com/)"&gt;http://www.kunal-chowdhury.com/)&lt;/a&gt; and Evan Hutnick from Telerik.&lt;/p&gt; &lt;p&gt;So if you are planning for this Silverlight 4 Certification or already doing study for this exam or even if you are Silverlight Developer, Then I highly recommend this book and you should get a copy for yourself right today !&lt;/p&gt; &lt;p&gt;&lt;a title="http://www.packtpub.com/mcts-microsoft-silverlight-4-development-70-506-certification-guide/book#overview" href="http://www.packtpub.com/mcts-microsoft-silverlight-4-development-70-506-certification-guide/book#overview"&gt;http://www.packtpub.com/mcts-microsoft-silverlight-4-development-70-506-certification-guide/book#overview&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Wish you all the best for your exam !&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2012/07/mcts-microsoft-silverlight-4.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/-7RIcOG8bcLw/UBV7IlbTh4I/AAAAAAAADh0/5H-MG05j8xU/s72-c/image_thumb%25255B8%25255D.png?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-5971612898835557336</guid><pubDate>Wed, 21 Mar 2012 19:08:00 +0000</pubDate><atom:updated>2012-03-22T00:38:44.029+05:30</atom:updated><title>The little Story of “I Unlock Joy” event by Microsoft and Pune User Group</title><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;This post is about recent “I Unlock Joy” event happened in Pune which was conducted by Microsoft and Pune User Group.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Little History :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;I remember I got myself a HTC HD7 in early January 2011. I even did a big post here with fire saying “&lt;a href="http://pendsevikram.blogspot.in/2011/01/windows-phone-7-white-elephant-in-india.html" target="_blank"&gt;Its White Elephant&lt;/a&gt;” in India.When I saw Tweets,Photos and Mails by people in US who showing off their Windows Phones in early days of Windows Phone, Frankly I was very angry thinking why each and every thing comes to India when Entire US and Europe people about to throw that piece of technology and switch to its version next.I even had fight at various level to get a Test Device for me but my all attempts result was “Fail”, so finally I got HD7 for myself from local shop, by the time few of my friends from User Group ordered it via some online site and got their shipment before me.Neither me or my friends who ordered it online even before it was made available in India officially bothered about Money and what will happen to it. That time even Mango build was not available.&lt;/p&gt; &lt;p&gt;I was already going through lot of frustrating moments due to Silverlight and HTML5 issues around year back and thanks to Windows Phone, It pulled me back on track.Me,Mayur and few other folks from Community started talking about this device from last year.Frankly, early response was very low since most of the people was not having device and was not sure about future of Windows Phone since it was not made available in India. &lt;/p&gt; &lt;p&gt;&lt;strong&gt;First call on “&lt;a href="http://www.microsoft.com/india/developer/windowsphone/" target="_blank"&gt;I Unlock Joy&lt;/a&gt;” :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;I remember that around October 2011,I was taking snaps of some Star Fishes near Tarkarli Beach in Sindhudurga and all of a sudden I got a call from Aviraj saying “You are in conference with Mayur Mahesh and Dhaval for upcoming Windows Phone event” ..I replied “What??..Microsoft is planning event on Windows Phone??”..Trust me call went for 5 minutes where each one just saying “what”, “when”,”ok lets see”,”keep us posted”.Then nothing happened on this till Mid December.&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-slib3-Di8z0/T2ompyXKpQI/AAAAAAAADPE/7kZz-qw9fvE/s1600-h/fishy%25255B10%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="fishy" border="0" alt="fishy" src="http://lh4.ggpht.com/-YD2UF3TEF8k/T2omrbY4P5I/AAAAAAAADPM/Fts9M6RZrMM/fishy_thumb%25255B8%25255D.jpg?imgmax=800" width="400" height="313"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Trust me..before this call..no one was sure about this event.Even we were not sure whether we will be able to host such event or not, Even for Microsoft, it was very first such event in India.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The Plan :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Earlier I was not happy with the event plan just because I misunderstood agenda and found it too much professional, I raise this concern to Mahesh (@maheshmitkari),Mayur (@mayur_tendulkar) and Aviraj (@aviraj111)saying “There are people in Pune, who don’t know what is Windows Phone,How it looks like or they have not even saw or touch that device and how they can build apps for that?”, Thanks to Aviraj Mayur and Mahesh who simplified it for me and told me that its from Hello World to Get Certify from Marketplace over span of 4 Full Days.So after that call on next weekend we started talking more about this event.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Wait..but will people come to this event by paying App Hub Fees?? :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Humm..another 1 hour just went on this discussion,Frankly among our Team, only Mayur was aware of AppHub process since he had account and submitted one or two apps in Marketplace.He and Mahesh and Aviraj show confidence then with 50-50 mind I also said to myself..lets do it people will come ! So Aviraj then given inputs on I Unlock Joy and how it works (MS people really work hard for each of their things,that I re-realize again on that day).He also told about Prizes and how overall things should go if we as Pune User Group want to do it with Microsoft.&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-qEGUqlgFfRg/T2omtEjgnWI/AAAAAAAADPU/6mhjA-NTOVM/s1600-h/imgthink%25255B7%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="imgthink" border="0" alt="imgthink" src="http://lh4.ggpht.com/-YDTuTN4tt7k/T2omuYYQkwI/AAAAAAAADPc/AsLmAPSbGtY/imgthink_thumb%25255B5%25255D.jpg?imgmax=800" width="400" height="313"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Execution of Plan :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Here comes our UG Manager Mahesh Mitkari, He drafted overall plan including Days of Trainings,Venue etc.Thanks to Microsoft, This time there was no “Mission :Find Venue” for us ! As usual my all time favorite question came for discussion “What about Food??..are we giving and not giving??” ..Suddenly Mahesh replied “Food later ! First think about event”..I said “Rest is Ok,but Food is equally important” ..Mayur said “If possible do it or people have to eat somewhere around the venue” ..Aviraj was on bit silent mode during this discussion since Budget for this was already allocated and now it was our turn to manage all in that amount.Finally with the years of experience Mahesh have in community, He managed the food for us. Since we took it up this event under support of MS, Content and Speaker for event was from Pune User Group. Mayur took the ownership of this speaking engagement and hence that pain part was already taken care.&amp;nbsp; &lt;/p&gt; &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-c8nFnEZBXus/T2omwjurq-I/AAAAAAAADPk/jNbH_EGREJk/s1600-h/HD7s%25255B7%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="HD7s" border="0" alt="HD7s" src="http://lh5.ggpht.com/-7r8PiJh4KJc/T2omyNMCoqI/AAAAAAAADPs/Rr3g1-gZZQE/HD7s_thumb%25255B5%25255D.jpg?imgmax=800" width="369" height="289"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Then there was lot of confusion about allowing “Individual”,”Students” and “Business” types of AppHub Account holders.But we decided that aim of this event is to “Empower individuals with great skills and great device”, so we decided to cut off Students and Companies and fixed our agenda accordingly.&lt;/p&gt; &lt;p&gt;Since this was very first event so we decided to keep the number of attendees equal with the capacity of hall or even less will do.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Registration Process and getting people to Venue : Mission Impossible &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;We hosted a lovely Website using ASP.NET MVC + Cloud for this event using shiny logos and stuff.&lt;/p&gt; &lt;p&gt;For first week, there was not a single registration, all we had is test records entered by us for testing of that portal.Week went bad for us.No one turn to site for registration.We were almost feeling dead at that moment since it was January 1st week and we were about to kick off the event from end of January 2012, we paid for venue, book food counters, done all formalities with MS,ok but where are attendees??&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-e6E8tjzgpWs/T2om1Mh515I/AAAAAAAADP0/H2CgJaMcSeo/s1600-h/WP_000307%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="WP_000307" border="0" alt="WP_000307" src="http://lh5.ggpht.com/-yJs9SDFQca0/T2om2hxksRI/AAAAAAAADP8/9H_7GTTGtS0/WP_000307_thumb%25255B5%25255D.jpg?imgmax=800" width="328" height="257"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Mahesh Me,Mayur and Aviraj come back to our old conclusion “Its paid event so people are not coming ..maybe?” since Pune User Group events are never paid.So how to solve this problem??&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Meetings Meetings..Calls Calls .. :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;We decided to do quick analysis of this thing and jumped to a conclusion that it was not about spending money but we came to know about following concerns :&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Its Credit Card thing..is it safe?&lt;/li&gt; &lt;li&gt;Will they pull some extra money from Background?&lt;/li&gt; &lt;li&gt;Do they will come to know whether I am using illegal software?&lt;/li&gt; &lt;li&gt;I will seriously get Windows Phone if I build apps for I Unlock Joy?&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Ok ! we got our answers, the very first thing we did is added a big “FAQ” section on our site and made publicity of the same, we captured most common uncommon and unique Questions,As a result, in last week of Registration count went to almost 40+ and we closed registration.We are all set for First ever such event by any User Group in India..Get Set Go !&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-Fw5jIKznZoo/T2om4uQ7D2I/AAAAAAAADQE/Hyz05mN2Gb4/s1600-h/Four%25255B13%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Four" border="0" alt="Four" src="http://lh6.ggpht.com/-DRLkMJ-sgBM/T2om6HoLriI/AAAAAAAADQM/Kt4gC_Rw1rY/Four_thumb%25255B9%25255D.jpg?imgmax=800" width="411" height="322"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Overall Event :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Now the next tension on mind was, whether people will adopt the skills and able to build and submit apps or not,else again everything will go waste !&lt;/p&gt; &lt;p&gt;Kudos to Mayur Tendulkar and Amol Vaidya ( and me as a Backup Speaker with full support from MSPs Omkar,Sneha and Apporva) who carried out training successfully.4 Days were full of gyan and not like typical sessions happens around where speaker comes in drag drop things and execute. Some real code and real stuff happened here in Pune.Thanks to AKant (Abhishek Kant who was our Ex-MVP Lead and now Country Manager for Telerik in India) for his valuable time at Keynote session and giving Telerik Controls for free to all attendees there at event.&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-k7sJujQR9-8/T2om9hT4wDI/AAAAAAAADQU/qrFkZZe5e1o/s1600-h/IMG_0308%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="IMG_0308" border="0" alt="IMG_0308" src="http://lh6.ggpht.com/-hzf6njIRZto/T2om-xnwYDI/AAAAAAAADQc/7-m-CwktJss/IMG_0308_thumb%25255B5%25255D.jpg?imgmax=800" width="340" height="266"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Very Special Thanks to Harish Vaidyanathan (@harishv ), Girish Joshi, Aditee Rele (@aditeerele ) and our big brother from Microsoft (@aviraj111), without these people it was impossible to unlock the joy !&lt;/p&gt; &lt;p&gt;&lt;strong&gt;What went wrong in this event :&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Shortage of Power Plugs and less power extensions at Venue on Day1, From Day 2 we fixed that by adding more plugs-extensions&lt;/li&gt; &lt;li&gt;Delay in distribution of Pen Drives, instead of day 1 people got that on day 4&lt;/li&gt; &lt;li&gt;Connectivity and WiFi was not available due to infra issues&lt;/li&gt; &lt;li&gt;1 Test Device out of 2 was not Mango, we updated that to Mango from Day 2&lt;/li&gt;&lt;/ul&gt;         &lt;p&gt;&lt;strong&gt;What people went home with :&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Some amazing knowledge about Windows Phone Application Development&lt;/li&gt; &lt;li&gt;Confidence to build Windows Phone Apps&lt;/li&gt; &lt;li&gt;Joy and Fun moment during all 4 Days and great device experience with Test Devices kept for them &lt;/li&gt; &lt;li&gt;Some even went away with Nokia Lumia 800&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-AL6P9CYCHLE/T2onBCBGUBI/AAAAAAAADQk/KSAJhSvdhTc/s1600-h/WP_000379%25255B12%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="WP_000379" border="0" alt="WP_000379" src="http://lh5.ggpht.com/-t4FrieJCsWw/T2onCv9ELOI/AAAAAAAADQo/ktpbeDBIRrE/WP_000379_thumb%25255B6%25255D.jpg?imgmax=800" width="363" height="284"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;What’s the outcome of all this 4 month story from October 2011 to January 2012 ? :&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Some 30+ Quality Apps already in Marketplace from this event&lt;/li&gt; &lt;li&gt;Around 45+ are due for Certification &lt;/li&gt; &lt;li&gt;Around 20+ new apps getting developed from people who already submitted apps&lt;/li&gt; &lt;li&gt;Me, Mahesh and Mayur declared officially from Microsoft as “Agents of Joy” and now visible on Microsoft’s I Unlock Joy Portal &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;a title="http://www.microsoft.com/india/developer/windowsphone/" href="http://www.microsoft.com/india/developer/windowsphone/"&gt;http://www.microsoft.com/india/developer/windowsphone/&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Click on “Agents of Joy” tile at the bottom !&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-G6mqIpc7cIY/T2onEZiYg2I/AAAAAAAADQ0/AIflH7uM-08/s1600-h/IUnlockJoy%25255B7%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="IUnlockJoy" border="0" alt="IUnlockJoy" src="http://lh5.ggpht.com/-QP5m5umjHHg/T2onFs04UhI/AAAAAAAADQ4/KQm1LzCy_EI/IUnlockJoy_thumb%25255B5%25255D.jpg?imgmax=800" width="402" height="253"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Final Day :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;I Unlock Joy Members snap with Harish Vaidyanathan at Pune&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-nPm-r_GxA9k/T2onHwJCV_I/AAAAAAAADRE/soEiLJVqSk8/s1600-h/Team%25255B7%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Team" border="0" alt="Team" src="http://lh5.ggpht.com/-AKNRwlQo0Tk/T2onJbbt-hI/AAAAAAAADRM/JdRvYdlzf9I/Team_thumb%25255B5%25255D.jpg?imgmax=800" width="446" height="349"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Conclusion :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Its for the “Community” by the “Community” to build more better and better “Community”, so despite of all challenges we faced.The passion of working towards “Community” made all things easy.&lt;/p&gt; &lt;p&gt;There are so many things happen in those 4 months, so its difficult for me to put down all things here,still I tried my best to cover up the entire story.&lt;/p&gt; &lt;p&gt;I am proud that I am associated with such a wonderful community in Pune. Microsoft and Pune User Group Rocks !! &lt;/p&gt; &lt;p&gt;Thanks to all who are directly or indirectly involved in this activity, its difficult to take all names since its very big community effort.so thanks to all !&lt;/p&gt; &lt;p&gt;After this event, Girish Joshi from Microsoft asked Me and Mahesh to give a snap of ours and we given below snap :&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-nM1odbAhzw8/T2onMAEFllI/AAAAAAAADRU/ppCt0uzNaDs/s1600-h/people-with-ph2%25255B7%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="" border="0" alt="" src="http://lh6.ggpht.com/-OoMrMImSRFw/T2onOHFbpQI/AAAAAAAADRc/7d9OS97eurw/people-with-ph2_thumb%25255B5%25255D.png?imgmax=800" width="393" height="229"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Well ! There is again a Big story behind this photo which we took at midnight at Mahesh’s home..that story..well..some other time !&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2012/03/little-story-of-i-unlock-joy-event-by.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-YD2UF3TEF8k/T2omrbY4P5I/AAAAAAAADPM/Fts9M6RZrMM/s72-c/fishy_thumb%25255B8%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-3532249941682768432</guid><pubDate>Thu, 08 Mar 2012 18:41:00 +0000</pubDate><atom:updated>2012-03-09T00:11:10.242+05:30</atom:updated><title>Resolving Prohibited Applications 2.7.2 Issue in Windows Phone Application Certification Process</title><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;If you are building a Windows Phone Application especially which deals with Location based Services or Location related information share,then this blogpost might come to your help.&lt;/p&gt; &lt;p&gt;Recently,I submitted one Windows Phone Application titled as "&lt;a href="http://www.windowsphone.com/en-IN/apps/5303f653-b20c-4c09-83f0-436a03068266" target="_blank"&gt;LocateMe&lt;/a&gt;" to Microsoft Windows Phone Marketplace as a normal procedure of Marketplace of Microsoft, After 2-3 Days I got email as follows :&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-PAZyncOwWmY/T1j9ET5DOsI/AAAAAAAADMI/i95ZIw5DFEQ/s1600-h/certierr%25255B13%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="certierr" border="0" alt="certierr" src="http://lh4.ggpht.com/-C9jtDCsNRPg/T1j9F9V0EJI/AAAAAAAADMQ/750gpIyqA40/certierr_thumb%25255B11%25255D.jpg?imgmax=800" width="396" height="363"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;When I logged into AppHub account, I got one PDF file having detail description of above mail along with complete error details. When I saw that PDF, It was written like :&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-91nabyHWRCs/T1j9H3g4SzI/AAAAAAAADMY/Tu4ONgZtm58/s1600-h/police1%25255B13%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="police1" border="0" alt="police1" src="http://lh3.ggpht.com/-VqoOglTVKA8/T1j9JwnnFgI/AAAAAAAADMg/X7yfyskWSU0/police1_thumb%25255B9%25255D.jpg?imgmax=800" width="401" height="416"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Since such kind of rejection is very new to me,For day or two I was wondering what to do and resolved so that my application can clear certification.Since comments was clear on the test result like this :&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-phTlgulhhDc/T1j9LEbPHFI/AAAAAAAADMo/UFkGjh_SSG8/s1600-h/police2%25255B14%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="police2" border="0" alt="police2" src="http://lh3.ggpht.com/-_wa3c3fQZsU/T1j9NLcyA0I/AAAAAAAADMw/4VuoDDMI_Qc/police2_thumb%25255B12%25255D.jpg?imgmax=800" width="466" height="81"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;One of my friend Mayur Tendulkar suggested that my application is using Location Service without User Consent or User's permission which indirectly crossing Privacy of the User of that application, In other way its like taking or using User's location without giving him any intimation or notification. This was the issue which my application was doing.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Solution :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;I came across this &lt;a href="http://blog.jerrynixon.com/2012/02/wp7-sample-use-location-services-and.html" target="_blank"&gt;blogpost&lt;/a&gt; which exactly states the above problem, Solution suggested there is to create a Custom Page with On/Off Switch which can Enable or Disable Location which will be provided by User of the application.&lt;/p&gt; &lt;p&gt;Somehow I felt it as little extra work in terms of coding and navigation to user.So I given a try to a very simple solution and I am happy that it worked for me and my application came out of this Privacy issue and got certified. I just given a message box like this :&lt;/p&gt; &lt;p&gt;MessageBoxResult result = MessageBox.Show("For Tracking on Map you need to Enable Location,For More Information Read Privacy Statement,Are you sure you want to enable Tracking?", "LocateMe", MessageBoxButton.OKCancel);&lt;br&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (result == MessageBoxResult.OK)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Turn On the Location&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Turn Off the Location&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&lt;/p&gt; &lt;p&gt;This saved me from that extra step of navigating to Location Setup Page and Set Reset location and come back to application.This helped me to get consent of user to use Location on his/her device.This allows user to choose to Turn On or Off the location service and does not force the user anyway and does not disclose any location data of user anywhere.&lt;/p&gt; &lt;p&gt;To be on safer side, I added a Privacy Statement Page in Application Bar Menu so that User can know more about in what way and terms the User location which is his/her private data is getting used.This page looks like below :&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-8oGHFjqLnC0/T1j9O-rpsVI/AAAAAAAADM4/_yebDQp7AO0/s1600-h/loc3%25255B10%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="loc3" border="0" alt="loc3" src="http://lh5.ggpht.com/-sCQq42Xm2tY/T1j9Q7VV4yI/AAAAAAAADNA/wl9XmXlQi4Y/loc3_thumb%25255B8%25255D.jpg?imgmax=800" width="245" height="425"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;What I learn from this problem :&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Its not always mandatory to have a separate page just for turning On or Off the location but it can just be done by a message box since its all about giving notification to the user and asking his/her permission to use and or share his/her location in any way.&lt;/p&gt; &lt;p&gt;Since I didn't came across any valid or legal solution for this problem,hence I thought I should share my experience with you all, So in future any of you got into such problem, should not be a big issue for your application during the Certification Process of Microsoft Marketplace.&lt;/p&gt; &lt;p&gt;Although in terms of legal aspect, this is not a valid or legal solution which is full proof,however I will claim this only as "work around" to get ride of Prohibited Applications 2.7.2 Issue in Windows Phone Application Certification.If you want More information about 2.7.2 section,I encourage you to go through following MSDN Documentation available on this subject :&lt;/p&gt; &lt;p&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/hh184841%28v=VS.92%29.aspx" href="http://msdn.microsoft.com/en-us/library/hh184841%28v=VS.92%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/hh184841%28v=VS.92%29.aspx&lt;/a&gt;&lt;/p&gt; &lt;p&gt;With this, I conclude this post, The only intention of this post is to make you aware of this issue and not get lost anywhere like I got in initial go of my application development.This might help you to be extra careful while you are building your app especially location based.So make sure you keep these things in your mind and while building such kinds of apps, think from all aspects and build your own Privacy Statement or Policy according to need of your application.&lt;/p&gt; &lt;p&gt;Well, I recently submitted few apps and in my next post I am talking some interesting things happen last month in my town where me and my User Group friends conducted Windows Phone Training Program, till that time, Just check out my "&lt;a href="http://www.windowsphone.com/en-IN/apps/5303f653-b20c-4c09-83f0-436a03068266" target="_blank"&gt;LocateMe&lt;/a&gt;" app and let me know your feedback.Take care and see you soon.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Warning : Above post and solution given came out of my own experience and might not applicable as a general solution to all generic location based applications on Windows Phone Marketplace,Hence use this post as just a guideline and not as a final and/or Legal solution in any way.Only intention of this post is to create awareness about this&amp;nbsp; Prohibited Applications 2.7.2 Issue in Windows Phone Application Certification Process.&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2012/03/resolving-prohibited-applications-272.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-C9jtDCsNRPg/T1j9F9V0EJI/AAAAAAAADMQ/750gpIyqA40/s72-c/certierr_thumb%25255B11%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-684222780971673531</guid><pubDate>Sat, 21 Jan 2012 13:43:00 +0000</pubDate><atom:updated>2012-01-21T19:13:37.803+05:30</atom:updated><title>Share Status and Link on Socials in Windows Phone</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Hope you all doing good.Sorry for the great delay here,I am almost working for all 7 days in week and that too on SQL Server – SSIS which is totally Alien to me but now I have good hands-on (In future you might get to see few post on that as well) for a critical project in my company. Due to this I couldn’t meet you here.&lt;/p&gt;  &lt;p&gt;Today finally I got sometime to spend here and on Windows Phone and Silverlight, So I thought I can share something quickly with you before I get to other big topics.Our today’s topic is small but very unique and useful. Today I am going to talk about 2 set of Tasks and how to use them effectively available with new Windows Phone SDK as &lt;strong&gt;ShareStatusTask&lt;/strong&gt; and &lt;strong&gt;ShareLinkTask&lt;/strong&gt;&amp;#160; which comes under Microsoft.Phone.Tasks Namespace.So lets start with it.&lt;/p&gt;  &lt;p&gt;So all we need is a simple Textbox and Button like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-yGt9QGt0uTQ/TxrAqEkxqTI/AAAAAAAADJ8/ZHSZLpeAciw/s1600-h/UITaskShare%25255B15%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="UITaskShare" border="0" alt="UITaskShare" src="http://lh4.ggpht.com/-3f84XYRtMPc/TxrArpWHLQI/AAAAAAAADKE/PohPmFF_S9E/UITaskShare_thumb%25255B13%25255D.jpg?imgmax=800" width="260" height="458" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML Code :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Grid x:Name=&amp;quot;ContentPanel&amp;quot; Grid.Row=&amp;quot;1&amp;quot; Margin=&amp;quot;12,0,12,0&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBox x:Name=&amp;quot;txtStatus&amp;quot; Height=&amp;quot;100&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Button x:Name=&amp;quot;btnShare&amp;quot; Height=&amp;quot;100&amp;quot; Width=&amp;quot;200&amp;quot; Margin=&amp;quot;0,358,0,149&amp;quot; Click=&amp;quot;btnShare_Click&amp;quot;&amp;gt;Share&amp;lt;/Button&amp;gt;    &lt;br /&gt; &amp;lt;/Grid&amp;gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Namespace :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;using Microsoft.Phone.Tasks;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;private void btnShare_Click(object sender, RoutedEventArgs e)   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; ShareStatusTask mySocialTasks = new ShareStatusTask();&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; mySocialTasks.Status = txtStatus.Text.ToString() + System.DateTime.Now.ToString();&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; mySocialTasks.Show();   &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;Above code is simple, We have a &lt;strong&gt;ShareStatusTask &lt;/strong&gt;which comes with Property &lt;strong&gt;Status &lt;/strong&gt;like this in &lt;strong&gt;ShareStatusTask&lt;/strong&gt; which is Inherited from &lt;strong&gt;ShareTaskBase &lt;/strong&gt;whose &lt;strong&gt;Show() &lt;/strong&gt;method Causes the sharing dialog to be displayed to the user. &lt;/p&gt;  &lt;p&gt;public string Status { get; set; }&lt;/p&gt;  &lt;p&gt;public void Show();&lt;/p&gt;  &lt;p&gt;So we are passing our/user defined Status message from Textbox txtStatus and appending DateTime with it (You can append anything or customize as per your need), Once you click on Share you will get Share Dialog like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-dMoyud2br98/TxrAtxkab0I/AAAAAAAADKM/SvMdCLbIiUs/s1600-h/WP_000005%25255B4%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="WP_000005" border="0" alt="WP_000005" src="http://lh4.ggpht.com/-Qy1G6TeeJCw/TxrAvR30idI/AAAAAAAADKU/C2X90QeGIZM/WP_000005_thumb%25255B2%25255D.jpg?imgmax=800" width="264" height="364" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Sorry for bit low screenshot, but you can see the list of Socials available on your device as &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Windows Live&lt;/li&gt;    &lt;li&gt;Facebook&lt;/li&gt;    &lt;li&gt;Twitter&lt;/li&gt;    &lt;li&gt;LinkedIn&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;If something new comes up tomorrow might get added to list, So all you need to do is pick the Socials and go ahead and share. &lt;strong&gt;Please note that this does not work on Windows Phone Emulator so you need to port this on actual Windows Phone Device.Also note that availability of Socials on your phone depends on your configuration and choice to have.&lt;/strong&gt;So Don’t waste your time in emulator since it will not give any output or will not give any response.&lt;/p&gt;  &lt;p&gt;On similar lines, we can implement &lt;strong&gt;ShareLinkTask &lt;/strong&gt;Class like this :&lt;/p&gt;  &lt;p&gt;private void btnShare_Click(object sender, RoutedEventArgs e)   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ShareLinkTask mySocialLinks = new ShareLinkTask();&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; mySocialLinks.Title = &amp;quot;Explore .NET with Vikram Pendse&amp;quot;;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; mySocialLinks.LinkUri = new Uri(&amp;quot;&lt;a href="http://pendsevikram.blogspot.com&amp;quot;"&gt;http://pendsevikram.blogspot.com&amp;quot;&lt;/a&gt;, UriKind.Absolute);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; mySocialLinks.Message = txtStatus.Text.ToString() + System.DateTime.Now.ToString();&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; mySocialLinks.Show();   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Choose “Windows Phone Device” and hit F5, you can see in Output window how it ports to Device and confirm the same like this it got displayed in my VS Output Window : (Observe lines in Bold)&lt;/p&gt;  &lt;p&gt;------ Deploy started: Project: Demo_ShareStatus_Task, Configuration: Debug Any CPU ------   &lt;br /&gt;Deploying D:\Silverlight_On_Mobile\Demo_ShareStatus_Task\Demo_ShareStatus_Task\Bin\Debug\Demo_ShareStatus_Task.xap...    &lt;br /&gt;&lt;strong&gt;Connecting to Windows Phone Device...     &lt;br /&gt;The application is already installed on the device. Checking if an incremental deployment is possible...      &lt;br /&gt;&lt;/strong&gt;Doing incremental deployment...    &lt;br /&gt;Updating information related to modified files...    &lt;br /&gt;Deployment of D:\Silverlight_On_Mobile\Demo_ShareStatus_Task\Demo_ShareStatus_Task\Bin\Debug\Demo_ShareStatus_Task.xap succeeded.    &lt;br /&gt;========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========&lt;/p&gt;  &lt;p&gt;Now your app is ready to test on your WP Device, But make note of 2 things before you deploy :&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Phone is ON and at Home Screen is visible and not pin locked&lt;/li&gt;    &lt;li&gt;Zune instance is up and running&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Now start from App list like this : (Demo_ShareStatus Icon)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-Wjp3zYcFUzI/TxrAxYqG0nI/AAAAAAAADKc/MPVQSRyHEI8/s1600-h/WP_000003%25255B7%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="WP_000003" border="0" alt="WP_000003" src="http://lh3.ggpht.com/-ywjZvLkvwls/TxrAy7MJANI/AAAAAAAADKk/CPKHLZ6h4_8/WP_000003_thumb%25255B5%25255D.jpg?imgmax=800" width="300" height="413" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Type your Message :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-TffBT1a8GaA/TxrA0kRYt8I/AAAAAAAADKs/EuDD3q95O3I/s1600-h/WP_000004%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="WP_000004" border="0" alt="WP_000004" src="http://lh5.ggpht.com/-trSx0qUWacI/TxrA2ADO12I/AAAAAAAADK0/_SFsfIfiUro/WP_000004_thumb%25255B6%25255D.jpg?imgmax=800" width="285" height="393" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Share Link and Select Social Networks like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-oy65JIG9j-g/TxrA3iOtJDI/AAAAAAAADK8/QC5oHRp-yOM/s1600-h/WP_000006%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="WP_000006" border="0" alt="WP_000006" src="http://lh5.ggpht.com/-hkM8cFOAo5w/TxrA47DTfnI/AAAAAAAADLE/nUCvfNLuJuA/WP_000006_thumb%25255B6%25255D.jpg?imgmax=800" width="281" height="387" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Finally you can see this happening in real on your respective Social Networks, Like in my case this got posted on my Facebook,Twitter and LinkedIn in one shot and at same time at all place like this :&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Facebook :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-G2uAV1KhvTc/TxrA6S21gII/AAAAAAAADLM/PEkEhzeeWUY/s1600-h/Facebook%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Facebook" border="0" alt="Facebook" src="http://lh3.ggpht.com/-_Axf6mKibpc/TxrA7pR65PI/AAAAAAAADLU/BBxYTxR9bd0/Facebook_thumb%25255B6%25255D.jpg?imgmax=800" width="406" height="113" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Twitter :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-ANqeE5TQK9E/TxrA8y7Q3KI/AAAAAAAADLc/LW1xDqKIxx4/s1600-h/Twitter%25255B11%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Twitter" border="0" alt="Twitter" src="http://lh3.ggpht.com/-4Txjcdbk364/TxrA-_O5ZhI/AAAAAAAADLk/2coHD9yeYo8/Twitter_thumb%25255B9%25255D.jpg?imgmax=800" width="389" height="174" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;LinkedIn :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-MHDGZz2yv0c/TxrBASlc3YI/AAAAAAAADLs/_l4zPYfkEQ0/s1600-h/LinkedIn%25255B7%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="LinkedIn" border="0" alt="LinkedIn" src="http://lh5.ggpht.com/-7JPp_4sbv_0/TxrBB9vbt2I/AAAAAAAADL0/jan5TXL3MUY/LinkedIn_thumb%25255B5%25255D.jpg?imgmax=800" width="372" height="237" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So this is how you can share Status or Link in very short piece of Code by making use of &lt;strong&gt;ShareStatusTask&lt;/strong&gt; and &lt;strong&gt;ShareLinkTask&lt;/strong&gt; given by Windows Phone Development Environment. Now how to make use of these tasks in your app,I leave this for you to decide,Let me know if you need any help using this and also let me know your feedback.I hope you will enjoy this small post after a long time here. Now since I am bit relax from work schedule so I will be back soon with some more interesting posts on Windows Phone, WinRT and Silverlight soon.So keep visiting this place now.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2012/01/share-status-and-link-on-socials-in.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-3f84XYRtMPc/TxrArpWHLQI/AAAAAAAADKE/PohPmFF_S9E/s72-c/UITaskShare_thumb%25255B13%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-2259106445981611688</guid><pubDate>Fri, 09 Dec 2011 18:15:00 +0000</pubDate><atom:updated>2011-12-09T23:45:29.687+05:30</atom:updated><title>I am speaking at 13th Edition of Microsoft Virtual Tech Days from 14 to 16 December 2011</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;First of all very sorry for not posting anything from last month or more than that. I am actually totally occupied with some interesting Windows Phone 7 Project and also some amazing .NET &amp;amp; SQL BI assignments including SSIS and SSRS.This kept me extremely busy for last two months.But I kept on exploring the things and I will very soon resume blogging and very soon going to post some good stuff.&lt;/p&gt;  &lt;p&gt;Out of all this,&lt;strong&gt; I am glad to announce that I will be speaking at 13th Edition of Microsoft Virtual Tech Days which will be hosted by Microsoft India.&lt;/strong&gt; This is a complete online event with tons of good sessions for all 3 Days starting from &lt;strong&gt;14th December to 16th December 2011.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.virtualtechdays.com/" target="_blank"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="VTD" border="0" alt="VTD" src="http://lh4.ggpht.com/-ZQsDcty6hZ8/TuJQM4wOQvI/AAAAAAAADJc/zeQgEjtsxrU/VTD%25255B8%25255D.jpg?imgmax=800" width="464" height="191" /&gt;&lt;/a&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I will be speaking on &lt;strong&gt;Day 3 inside “Windows Phone”&lt;/strong&gt; Track on a very interesting topic titled as &lt;a href="http://www.virtualtechdays.com/agendaDay3.aspx#"&gt;Best practices of designing apps for Windows Phone&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I will be taking various design related topics in this discussion followed by Questions and Answers, Its scheduled at 01:45 PM IST, So Mark your calendars right away ! &lt;/p&gt;  &lt;p&gt;For more information about Microsoft Virtual Tech Days, Registration and Agenda for all 3 days,Visit &lt;a title="http://www.virtualtechdays.com/" href="http://www.virtualtechdays.com/"&gt;http://www.virtualtechdays.com/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Do participate in Quiz and Questions and Answers sessions actively since there are lot of goodies to win for you :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-DcKA8G1GMx4/TuJQNyW6eVI/AAAAAAAADJk/QdrWvSRXV5A/s1600-h/VTDPrizes%25255B4%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="VTDPrizes" border="0" alt="VTDPrizes" src="http://lh6.ggpht.com/-c2c5d_VtNlk/TuJQP-DwOpI/AAAAAAAADJs/wUoA4lxMFiM/VTDPrizes_thumb%25255B2%25255D.jpg?imgmax=800" width="366" height="227" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So block your calendar right away ! I wish to meet you all there at my session. Also after that week, I assure not to take any logical or physical breaks and will resume postings here. So do make a visit here in coming weeks, some really exciting stuff is on your way.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/12/i-am-speaking-at-13th-edition-of.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-ZQsDcty6hZ8/TuJQM4wOQvI/AAAAAAAADJc/zeQgEjtsxrU/s72-c/VTD%25255B8%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-8675264729587064591</guid><pubDate>Wed, 21 Sep 2011 16:51:00 +0000</pubDate><atom:updated>2011-09-21T22:21:45.660+05:30</atom:updated><title>Building your First Windows Metro style Application using Visual Studio 2011 on Windows 8</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;For a while keeping aside the hot topic of&amp;#160; “Silverlight is dead”,I am coming back to normal activities and doing part of that I am putting a small post here just for those who have installed Windows 8 and wondering how overall things will work on their Windows 8 box.&lt;/p&gt;  &lt;p&gt;I assume here that you have done with Windows 8 Developer Preview setup,For me,I installed Visual Studio 2011 as a separate installation.Frankly, it was not that smooth compare to Windows 8,it crashed 2-3 times.Well,with the assumption of successful installation, lets move ahead with our first “Hello World” kind of a Metro UI Application.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Our First Metro UI style App using Visual Studio 11 on Windows 8:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Once you installed Visual Studio,you will find the shortcut of the same on your Metro UI interface which is default in Windows 8 Developer Preview, so by clicking on that it will throw you with the Visual Studio 2011 IDE in Desktop mode which is very similar to your normal Windows Desktop in Windows 7 &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-OBfkr12o0IA/TnoVsdKdLrI/AAAAAAAADHs/_SeSq54pyM8/s1600-h/MetroLight%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="MetroLight" border="0" alt="MetroLight" src="http://lh3.ggpht.com/-TO9MzsMM2gM/TnoVtssCEvI/AAAAAAAADHw/1DYtugxsoDo/MetroLight_thumb%25255B7%25255D.jpg?imgmax=800" width="462" height="304" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once Visual Studio 2011 is open,Click on File&amp;gt;&amp;gt;New Project&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-RrqHCVYh8Vw/TnoVvJd1khI/AAAAAAAADH0/TM1IIl-5yCM/s1600-h/SLVS11%25255B13%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="SLVS11" border="0" alt="SLVS11" src="http://lh4.ggpht.com/-82ahnKvz3BM/TnoVwPlNNDI/AAAAAAAADH4/488_sp3rko0/SLVS11_thumb%25255B9%25255D.jpg?imgmax=800" width="464" height="311" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;Please see in the above snap, The one which is in red circle is your &lt;strong&gt;Windows Metro style&lt;/strong&gt; Project template.Since this our first post,so I am not pushing too much content on you and leaving you in a state of confusion,so for other project templates in this category and what they do,that I will share in upcoming posts.So after selecting this template and giving a relevant name to your app, Click on OK to move ahead.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Visual Studio 2011 :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;There are significant improvements in IDE and new features are there but right now I am purposefully not pulling them here just to keep our focus on App.So if you are familiar with Visual Studio 2010 then you will not struggle much with the Designer and Code Window.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-MKgPvAgFpnE/TnoVzFSRHmI/AAAAAAAADH8/qTmTl6-qS4s/s1600-h/Design%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Design" border="0" alt="Design" src="http://lh4.ggpht.com/--HVjGy1QPk4/TnoV0C0BicI/AAAAAAAADIA/aeSXxGwRLPM/Design_thumb%25255B7%25255D.jpg?imgmax=800" width="454" height="299" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;Our First App using RichTextBlock :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;As you know that &lt;strong&gt;XAML &lt;/strong&gt;is the backbone of Metro style app,So I will be using XAML as UI and C# to code. I will talk about other ways to code using other languages in my upcoming posts.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-pnNZfeEb47c/TnoV1ByfXXI/AAAAAAAADIE/3MQr_5Bbfsw/s1600-h/XAML%25255B7%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="XAML" border="0" alt="XAML" src="http://lh6.ggpht.com/-5Pcbj_yOccc/TnoV2iYpmRI/AAAAAAAADII/zKoT_D1WjfI/XAML_thumb%25255B5%25255D.jpg?imgmax=800" width="443" height="177" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Make sure you set x:Name to the RichTextBlock control (which is very similar to our Silverlight 5 RichTextBox control)&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-_eqvgQTDtpg/TnoV4IHGEMI/AAAAAAAADIM/c8IhBTa_2fM/s1600-h/CSharp%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="CSharp" border="0" alt="CSharp" src="http://lh4.ggpht.com/-JjBwTV77Fi8/TnoV5AndRaI/AAAAAAAADIQ/GJtwVggUJpg/CSharp_thumb%25255B6%25255D.jpg?imgmax=800" width="448" height="349" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So on visibility of each RichTextBlock I am controlling the UI via Button Click event. Idea is to show Japanese,Arabic and English content on each of the button click and similarly hide other two at the same time.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Output :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Oh wait ! what in case I don’t have Metro UI or for that matter I am running Visual Studio 11 on other box then?, well life is good ! you have a build in and fully functional simulator of Windows 8 which is very realistic in look and feel and behavior of Windows 8 Metro UI,so you will find that option once you wish to start debugging the application like shown here :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/--oSPnBwz_po/TnoV54_FB6I/AAAAAAAADIU/0UKeOr61r7I/s1600-h/Debug%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Debug" border="0" alt="Debug" src="http://lh5.ggpht.com/-ylWFR69kcGg/TnoV68lDd9I/AAAAAAAADIY/7aLV2o5QGhI/Debug_thumb%25255B7%25255D.jpg?imgmax=800" width="454" height="240" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;and now you are all set to see the output like shown below ! :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-SopdD3PmRLU/TnoV8eBMn8I/AAAAAAAADIc/HuToTt68bdY/s1600-h/HomeMetro%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="HomeMetro" border="0" alt="HomeMetro" src="http://lh6.ggpht.com/-F8mU-5tR2UI/TnoV9ZfOsOI/AAAAAAAADIg/MBP4RumUbWA/HomeMetro_thumb%25255B7%25255D.jpg?imgmax=800" width="456" height="296" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You can see shortcut of your Metro UI Style App on the Windows 8 Metro Desktop like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-e0dCZ7Bw0YA/TnoV-2WFYXI/AAAAAAAADIk/PU6nZB3Mb-g/s1600-h/Shortcut%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Shortcut" border="0" alt="Shortcut" src="http://lh6.ggpht.com/-QGVV9LeeLNc/TnoV_-60SBI/AAAAAAAADIo/RGCl_zl-XbY/Shortcut_thumb%25255B7%25255D.jpg?imgmax=800" width="463" height="311" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You can do much more configuration related settings with &lt;strong&gt;package.appmanifest &lt;/strong&gt;file inside your project,it will help you to get settings like below :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-5zlr8P_32K0/TnoWBdoml1I/AAAAAAAADIs/mxo2Xs3zNbA/s1600-h/packagedotappmanifest1%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="packagedotappmanifest1" border="0" alt="packagedotappmanifest1" src="http://lh5.ggpht.com/-H0OL_vdPVFM/TnoWCXqBqBI/AAAAAAAADIw/a6GQcslAr5c/packagedotappmanifest1_thumb%25255B7%25255D.jpg?imgmax=800" width="468" height="320" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Since this is our first app, I am not going into much more details on the each of the sectional tab shown above, that I will address in my upcoming posts, so now let’s see the final output :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-Sx4h180CNfQ/TnoWDT1CWFI/AAAAAAAADI0/SN2Jr9Vv7C8/s1600-h/Japs%25255B11%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Japs" border="0" alt="Japs" src="http://lh4.ggpht.com/-9CoGrAfcZec/TnoWEH6R0HI/AAAAAAAADI4/oRFoGKUaAmQ/Japs_thumb%25255B9%25255D.jpg?imgmax=800" width="471" height="306" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Yahooo ! Our first ever app is ready on Windows 8 using Metro UI style inside Visual Studio 2011. Once you click on each of the button,you will see some language specific text. Well though its very basic, but idea behind is to get familiar with the environment, In upcoming post, I assure to have much more high level apps.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Something about Simulator :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Like Windows Phone 7 emulator, you can rotate this Tab and see app from various angles. It also provides you option to interact app with Mouse and even using Touch like I have shown in the second diagram.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-wJnuFbJ-tsY/TnoWFH8PGmI/AAAAAAAADI8/vEFKfsj6hJ8/s1600-h/DegNinty%25255B11%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="DegNinty" border="0" alt="DegNinty" src="http://lh3.ggpht.com/-xX1LYw3k3ME/TnoWGINw2GI/AAAAAAAADJA/eHxbn8cKAlU/DegNinty_thumb%25255B9%25255D.jpg?imgmax=800" width="268" height="403" /&gt;&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;a href="http://lh3.ggpht.com/-7joyDTFMI7w/TnoWHBLoq6I/AAAAAAAADJE/a6Q8NBQCu58/s1600-h/Toolbar%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Toolbar" border="0" alt="Toolbar" src="http://lh5.ggpht.com/-GKKcoYVXBGY/TnoWIAU6NrI/AAAAAAAADJI/A3ser4BNi2Q/Toolbar_thumb%25255B6%25255D.jpg?imgmax=800" width="255" height="423" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;In this way, its very useful and fully functional simulator and helps us a lot and saves lot of efforts,It gives best feel of your app on Windows 8 environment.&lt;/p&gt;  &lt;p&gt;So, This is our first “Hello World !” kind of Metro UI style app using Visual Studio 2011 on Windows 8. I hope after reading this post, you will be in position to understand overall environment,better you that, so that you can easily understand my upcoming posts.&lt;/p&gt;  &lt;p&gt;Do try this out, Build a small app,meanwhile I will go back to Windows 8 and Visual Studio 2011 and will try to build more solid app integrating some more good,jazzy business related stuff.So stay tuned ! keep visiting here for more !&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/09/building-your-first-windows-metro-style.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/-TO9MzsMM2gM/TnoVtssCEvI/AAAAAAAADHw/1DYtugxsoDo/s72-c/MetroLight_thumb%25255B7%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-6961033018552631651</guid><pubDate>Sun, 18 Sep 2011 13:41:00 +0000</pubDate><atom:updated>2011-09-18T19:11:35.067+05:30</atom:updated><title>Silverlight is dead…and our thought process too !</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;People says that when you dream about someone who you see going to die in your dreams,In reality he/she lives a long ! ..Something similar is going for Silverlight these days.More people saying bad about and more the core platform is growing better day after day.&lt;/p&gt;  &lt;p&gt;My post here today is not to shout that I am Silverlight MVP and We are not dead but I just want to trigger a positive thought process so that we will not go dead with current “Silverlight dead” discussions in near future.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Just to clarify :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Thought I love Microsoft technologies a lot and especially Silverlight that does not mean that I am Fanboy and in this post I am defending something. I have equal love and passion towards other MS and Non MS technologies as well. From last 2 yrs I am working in IBM and executing large WPF Projects and also using some Open Source tools and technologies.&lt;/p&gt;  &lt;p&gt;I am not employee or decision maker at Microsoft nor I am a complete Windows 8 Master or Metro UI Geek etc. So following stuff is purely based on my personal analysis, Being a community chap I am always open for feedback and do correct me if something I mentioned here is totally wrong.I would love to hear that and add more to me.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;“Silverlight is dead !” ..The new story on Internet … :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;This all started in last PDC when Microsoft showcase strength of HTML5 + JS on their own platform.I know even initially I was also wondering why they are doing such hype of this platform but then realize and understood entire Development Ecosystem.&lt;/p&gt;  &lt;p&gt;I have also wrote a biggie article on that situate here and got positive response from all of you :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://pendsevikram.blogspot.com/2011/06/silverlight-html5-windows-8-where-we.html" target="_blank"&gt;Silverlight, HTML5 &amp;amp; Windows 8 : Where we are heading to ?&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So before making any final thought,do read that and this article..after that its your call !&lt;/p&gt;  &lt;p&gt;Coming back to the subject :&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Build event and reactions after keynote : &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Few points I would like to take up for discussion -&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Why people want every time a commitment from Microsoft Senior representatives like Scott Gu or Steve Ballmer to come on stage and explicitly say that “Silverlight is not dead !!” ? – Same for WPF and other technologies.&lt;/li&gt;    &lt;li&gt;Unless one technology is not dead, New and enhanced things never comes up..I mean do you still want Visual Basic 6 if I show you strength of VB.NET or WPF for that matter. Why people are not shouting when Classical ASP,VB6 etc gone dead ? Because there was a need of .NET/WPF somewhere and that’s why they are present today. Same is the case for HTML5,Metrofy Apps and WinRT&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Windows 8 as OS and Windows 8 Tablets :&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Today I installed Win8 Dev Preview on my Dell XPS and frankly,with Mouse it does not give any feel like it gives on Touch supporting devices.But UI is amazing rather outstanding !&lt;/li&gt;    &lt;li&gt;There is a Desktop mode which is similar to normal Windows,So MS is not forcing you to be on Metro all the time,you have choice !&lt;/li&gt;    &lt;li&gt;Microsoft is now head to head with other vendors especially to compete devices like iPad.&lt;/li&gt;    &lt;li&gt;There are still millions and billions of Windows XP,Windows 7 Users. It takes years to migrate OS for big organizations.(My employer IBM India is still on Windows XP).So entire world will not change in one night time after complete Windows 8 is available.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Some random thoughts on HTML5 Native Apps :&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;They are amazing ! Something worth to learn and try out.&lt;/li&gt;    &lt;li&gt;I don’t think they are true cross platform and will run on Mac ! Correct me here if I am wrong (Silverlight is Cross platform and same code with small modify runs on WP7 as well)&lt;/li&gt;    &lt;li&gt;At this moment I am not sure how many will adopt Metrofy or HTML5 + JS platform for “Enterprise Application Development” where we usually plug WCF,WF,MEF,Microsoft Enterprise Library etc.&lt;/li&gt;    &lt;li&gt;With Blend Support, Now job is easy to design these HTML5 apps, So Designers will be happy for sure.&lt;/li&gt;    &lt;li&gt;Performance and tooling support for HTML5 is in great progress but then same question again..Is it full functional like WPF or Silverlight, Just having similar features and capabilities does not change game totally.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;If Microsoft declare death of Silverlight : Think over this..&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Do you think people will keep their mouth shut and just obey ? I mean think from WP7 perspective.Think over this..&lt;/li&gt;    &lt;li&gt;There are Thousands of App in WP7 Marketplace Up and Running on millions of devices, what will happen to them if Silverlight is dead ?&lt;/li&gt;    &lt;li&gt;Do you think Microsoft is just making fun of people from past few years by launching different versions of Silverlight? Today we are in version 5.So think over this..&lt;/li&gt;    &lt;li&gt;Do you think Microsoft will say one day that “Silverlight is dead totally..now rollback your apps which are there on your WP7/Marketplace/Web or OOB state” …crazy ! It will not happen like that anyway..think carefully when you say its dead !&lt;/li&gt;    &lt;li&gt;What to develop,which language to use : Usually this totally depends on one’s comfort level with the technology.Think over this..&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Current Silverlight situation and what to do in future ? :&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;There is no official statement from Microsoft saying “Silverlight is dead”, So stop right there and don’t follow those garbage and nonsense blogs/posts/discussions/videos/thoughts saying “Silverlight is dead”&lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Read the feature set of Silverlight 5 Carefully !&lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Windows 8 / WinRT /.NET 4.5 etc are in “preview” and not&amp;#160; even in “Beta&amp;quot; or “RC”..so some features can be added or removed,its common thing in Product development.So it will be too early to make judgments on availability of Silverlight on Windows 8 or with WinRT, Metrofication etc.&lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Keep track of happening changes in the new Windows 8 Platform, start building small small apps using Visual Studio 2011.&lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Do more visualization than actual migration.This is not right time to decide whether the new development should be a Metrofy or normal one since entire platform is in preview stage.So even not ideal time to create PoCs since many things will be changing/breaking up/crashing because of preview state.&lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Follow correct and official Microsoft resources which can be : Microsoft Representatives, Silverlight MVPs and Insiders, DPE Evangelists etc. &lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Now “XAML” + Code behind of your choice is the buzz word instead of just casually saying its WPF’s XAML or Silverlight’s XAML&lt;/strong&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;What’s the benefit of investing in Silverlight from last few years then ? :&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;XAML ! Those who are working on WPF and Silverlight..its party time for them since they already have one Rich and Demanding Skillset of XAML&lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Not much learning curve since Silverlight Developers are already aware of C#,VB.NET and XAML with tools like Expression Blend etc. So they can easily upgrade themselves to Metro UI App Development.&lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Windows Phone 7.5 aka Mango coming up, Silverlight is the core Application Development platform on phone,So keep your Silverlight skills with you.&lt;/strong&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Silverlight on Windows 8, Metro Plug-in less browser and other stuff :&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Agree and accepted that Silverlight does not work in “Metro IE” in Windows 8 but it does in Windows 8 Desktop mode and again Windows 8 is in preview stage and it will be too early to comment.&lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;See the picture below : Silverlight is still there on those blocks&lt;/strong&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-CbyRHx05iAU/TnX00y-9DoI/AAAAAAAADG8/FjPysDjMq4g/s1600-h/windows8-platform-tools_2%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="windows8-platform-tools_2" border="0" alt="windows8-platform-tools_2" src="http://lh3.ggpht.com/-rlpm-AWwBns/TnX02FiB92I/AAAAAAAADHA/VD2QFdvntRo/windows8-platform-tools_2_thumb%25255B6%25255D.jpg?imgmax=800" width="459" height="281" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Visual Studio 11 do comes up with default project template for Silverlight, Check this out :&lt;/strong&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-A_FHY9XEJp4/TnX03XONVeI/AAAAAAAADHE/8Nv1IcJ6uPc/s1600-h/MetroLight%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="MetroLight" border="0" alt="MetroLight" src="http://lh6.ggpht.com/-jFntXS6ERAM/TnX04Vt7C7I/AAAAAAAADHI/b6vCB0RJJCw/MetroLight_thumb%25255B7%25255D.jpg?imgmax=800" width="459" height="302" /&gt;&lt;/a&gt;&lt;a href="http://lh6.ggpht.com/-rsER_O19MS4/TnX05tZm4yI/AAAAAAAADHM/_FLFwi1OK5M/s1600-h/SLVS11%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="SLVS11" border="0" alt="SLVS11" src="http://lh5.ggpht.com/-sYZBMRC1h2c/TnX06pSld7I/AAAAAAAADHQ/Et_LhGfeLRQ/SLVS11_thumb%25255B6%25255D.jpg?imgmax=800" width="455" height="305" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;I tried running my current SL5 apps and they got executed successfully,see this :&lt;/strong&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-xvebOiOTTrc/TnX08ftAq3I/AAAAAAAADHU/6DVwhwbndpc/s1600-h/SL5Compatibility%25255B24%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="SL5Compatibility" border="0" alt="SL5Compatibility" src="http://lh6.ggpht.com/-iu2cKZ2bFHc/TnX09e83R6I/AAAAAAAADHY/L_fEdxBdUcc/SL5Compatibility_thumb%25255B22%25255D.jpg?imgmax=800" width="461" height="303" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-C4l7lTWFXHk/TnX0_CTJfTI/AAAAAAAADHc/6Hozr88kgio/s1600-h/SL5OldApps%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="SL5OldApps" border="0" alt="SL5OldApps" src="http://lh6.ggpht.com/-rtv28IhlxPE/TnX1AM1oRPI/AAAAAAAADHg/eSzF6RgpkM8/SL5OldApps_thumb%25255B6%25255D.jpg?imgmax=800" width="461" height="303" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-lUgBQ_kdThA/TnX1CTboj2I/AAAAAAAADHk/rEKSEpYu-CM/s1600-h/SLOOBinDesktopMode%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="SLOOBinDesktopMode" border="0" alt="SLOOBinDesktopMode" src="http://lh4.ggpht.com/-8wbPCwE-oUc/TnX1DZf9ssI/AAAAAAAADHo/M91WEWq10uU/SLOOBinDesktopMode_thumb%25255B6%25255D.jpg?imgmax=800" width="463" height="305" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Conclusion :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I wrote all this to just trigger positive thought process instead of just shouting and spreading death news of Silverlight. Some things I know you have in mind and which are not clear,but frankly for some of the things even I also don’t have answers and clear vision since this is all a preview platform.&lt;/p&gt;  &lt;p&gt;Picture will be more clear when entire platform will go to Beta and then RTM mode.So till the time instead of wasting time in nonsense discussion..lets focus and new Metro UI App using XAML, New HTML5 + JS platform,New Visual Studio 2011 and .NET 4.5 and lets get some good hold on that before making final judgment on Silverlight’s future.&lt;/p&gt;  &lt;p&gt;In some of the section above I may sound arrogant and away from subject, but intention of this post is to keep positive focus about platform and build healthy and non biased thought process.&lt;/p&gt;  &lt;p&gt;So..Silverlight is dead ? Look back..Think again..Do analysis,spend some time on new platform and then jump to conclusion.&lt;/p&gt;  &lt;p&gt;Remember ! Blogs,Forum comments or News blogs people does not deal with your actual client, They are not real decision maker. Its only you and you and you who will take a call on your App Development platform and for Silverlight..lets Microsoft decide on that..It will be better !&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/09/silverlight-is-deadand-our-thought.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/-rlpm-AWwBns/TnX02FiB92I/AAAAAAAADHA/VD2QFdvntRo/s72-c/windows8-platform-tools_2_thumb%25255B6%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-7340490791628138790</guid><pubDate>Wed, 07 Sep 2011 17:15:00 +0000</pubDate><atom:updated>2011-09-07T22:45:31.572+05:30</atom:updated><title>Silverlight 5 : Implement “Run” functionality using Platform Invoke (PInvoke)</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I hope you like my last article on &lt;a href="http://pendsevikram.blogspot.com/2011/09/silverlight-5-platform-invoke-pinvoke.html" target="_blank"&gt;PInvoke feature introduced in Silverlight 5 RC&lt;/a&gt;. As I mentioned in my last post that I will be posting more and more advance demos of PInvoke in coming days.Well, Today I am going to show you that how you can build “Run” kind of functionality using PInvoke in Silverlight 5 RC,Not getting this idea? Here is “Run” in our Windows look like :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-ayzorBuSeGE/TmemiIO4wTI/AAAAAAAADGU/3I8wjzxo3OM/s1600-h/WindowsR%25255B7%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="WindowsR" border="0" alt="WindowsR" src="http://lh6.ggpht.com/-fw8ivyq-_ak/Tmemi02Xr4I/AAAAAAAADGY/LjNv5yzcEM8/WindowsR_thumb%25255B5%25255D.jpg?imgmax=800" width="407" height="222" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Something similar we are going to develop using PInvoke in terms of look and feel and functionality.Idea is to make use of Shell32.dll’s ShellExecute( ).&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;I kept UI similar to Windows “Run” for better understanding,It is not exact replica or replacement for Windows “Run”, Idea is to demonstrate the functionality of ShellExecute( ) so I am not trying to break any copyright stuff of original Windows OS.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;As discussed in my last article &lt;a href="http://pendsevikram.blogspot.com/2011/09/silverlight-5-platform-invoke-pinvoke.html" target="_blank"&gt;here&lt;/a&gt;,following the same steps lets build this component.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Namespace :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;using System.Runtime.InteropServices;&lt;/p&gt;  &lt;p&gt;This is the primary namespace used to develop PInvoke apps.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Image Source=&amp;quot;Run.jpg&amp;quot; Height=&amp;quot;42&amp;quot; Width=&amp;quot;46&amp;quot; Canvas.Left=&amp;quot;0&amp;quot; Canvas.Top=&amp;quot;11&amp;quot; /&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Text=&amp;quot;Type the name of Program,Folder,document,or Internet resource and Windows will open it for you.&amp;quot; TextAlignment=&amp;quot;Left&amp;quot; Height=&amp;quot;44&amp;quot; Width=&amp;quot;319&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Canvas.Left=&amp;quot;50&amp;quot; Canvas.Top=&amp;quot;8&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Text=&amp;quot;Open:&amp;quot; Height=&amp;quot;20&amp;quot; Width=&amp;quot;46&amp;quot; Canvas.Top=&amp;quot;62&amp;quot; Canvas.Left=&amp;quot;6&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBox Height=&amp;quot;23&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; x:Name=&amp;quot;txtValue&amp;quot; Width=&amp;quot;311&amp;quot; Canvas.Left=&amp;quot;50&amp;quot; Canvas.Top=&amp;quot;62&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Button x:Name=&amp;quot;btnSubmit&amp;quot; Click=&amp;quot;btnSubmit_Click&amp;quot; Content=&amp;quot;Ok&amp;quot; Width=&amp;quot;76&amp;quot; Height=&amp;quot;22&amp;quot; Canvas.Left=&amp;quot;50&amp;quot; Canvas.Top=&amp;quot;100&amp;quot; d:LayoutOverrides=&amp;quot;VerticalAlignment&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Button x:Name=&amp;quot;btnCancel&amp;quot; Click=&amp;quot;btnCancel_Click&amp;quot;&amp;#160; Content=&amp;quot;Cancel&amp;quot; Width=&amp;quot;76&amp;quot; Height=&amp;quot;22&amp;quot; Canvas.Left=&amp;quot;150&amp;quot; Canvas.Top=&amp;quot;100&amp;quot; d:LayoutOverrides=&amp;quot;VerticalAlignment, Width&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;Note that like in Real “Run” box, I am skipping editable dropdown control and Browse button,Here I am taking Textbox to enter parameters and Ok and Cancel Button to handle the same.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;UI will look like this after running :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/--fqXyVTsDU4/Tmemj2SxhMI/AAAAAAAADGc/LWiCcmvZuVM/s1600-h/RunOP%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="RunOP" border="0" alt="RunOP" src="http://lh4.ggpht.com/-jEdXQQKMiRg/Tmemk3PZLSI/AAAAAAAADGg/yI8JZcc0_MU/RunOP_thumb%25255B6%25255D.jpg?imgmax=800" width="447" height="231" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;public MainPage()   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; InitializeComponent();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; App.Current.MainWindow.Title = &amp;quot;Run&amp;quot;;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;}&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;#region Shell Execute&lt;/p&gt;  &lt;p&gt;[DllImport(&amp;quot;shell32.dll&amp;quot;)]   &lt;br /&gt;static extern IntPtr ShellExecute(    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IntPtr hwnd,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; string lpOperation,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; string lpFile,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; string lpParameters,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; string lpDirectory,    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ShowCommands nShowCmd);&lt;/p&gt;  &lt;p&gt;#endregion&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;private void btnSubmit_Click(object sender, RoutedEventArgs e)   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ShellExecute(System.IntPtr.Zero, &amp;quot;open&amp;quot;, Convert.ToString(txtValue.Text), string.Empty, string.Empty, ShowCommands.SW_SHOWNOACTIVATE);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; private void btnCancel_Click(object sender, RoutedEventArgs e)   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (App.Current.IsRunningOutOfBrowser)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; App.Current.MainWindow.Close();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Note that you need to build ShowCommands enum, for more information you can visit ShellExecute Documentation on MSDN &lt;a href="http://msdn.microsoft.com/en-us/library/bb762153%28v=vs.85%29.aspx" target="_blank"&gt;here&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;txtValue does the job of taking parameters and passing to ShellExecute.&lt;/p&gt;  &lt;p&gt;That’s it ! We are done with our own “Run” box build using Silverlight 5 RC P/Invoke Feature using Shell32.dll ‘s ShellExecute( )&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;OOB Settings :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Kindly refer my last post where I have given all information about setting trust and what kind of possible exceptions you might get.So read more over there.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Output :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Here are some screenshots I took with our Silverlight 5 based “Run” :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Calling Calculator,Command Prompt and MS Paint from our “Run” box&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-kLxgE_2C2uA/TmemmUFoApI/AAAAAAAADGk/W67JJk9MEO4/s1600-h/WinRun%25255B12%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="WinRun" border="0" alt="WinRun" src="http://lh5.ggpht.com/-iC6m86qD4GE/Tmemnnp77QI/AAAAAAAADGo/STXMcbHDXdI/WinRun_thumb%25255B10%25255D.jpg?imgmax=800" width="455" height="310" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Visit my blog / any URL using our “Run” box &amp;quot;:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-ZeYsgTOTteo/Tmempb8wKsI/AAAAAAAADGs/rJXbvSF7TPg/s1600-h/RunBlog%25255B11%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="RunBlog" border="0" alt="RunBlog" src="http://lh3.ggpht.com/-wMijiMqhCAU/TmemqYA6wzI/AAAAAAAADGw/PU0bZxx-nqQ/RunBlog_thumb%25255B9%25255D.jpg?imgmax=800" width="445" height="289" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;So if we compare Windows’s Run box and our in terms of looks..here we go !&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-HezeAdyPhDY/TmemrYWBGWI/AAAAAAAADG0/MPc2iAkgaDI/s1600-h/ShellPInvoke%25255B14%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ShellPInvoke" border="0" alt="ShellPInvoke" src="http://lh4.ggpht.com/-cEWu4MPxabQ/TmemsTy3RAI/AAAAAAAADG4/Ke1uKb9Gji8/ShellPInvoke_thumb%25255B12%25255D.jpg?imgmax=800" width="412" height="449" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Where this can be applicable in Real life applications ? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Idea in this demo is to use ShellExecute( ) in Silverlight application,UI can be different or in different formatting.Core idea is to use ShellExecute( ) and make use of that using P/Invoke, Do you want me to share what can be done with ShellExecute( ) ? I know I don’t need to..there are lot of business scenarios where this can be used,For example : Open instances of Word,Excel,Powerpoint,MS Paint,Calculator as I have shown above, Run Command Prompt and run scripts etc.&lt;/p&gt;  &lt;p&gt;So I hope you will like this sample once you build and run this. Let me know your feedback and I will soon going to post one more P/Invoke sample in coming weeks along with other good and fun stuff on Silverlight 5 RC and then few interesting things on Windows Phone 7 as well.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/09/silverlight-5-implement-run.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/-fw8ivyq-_ak/Tmemi02Xr4I/AAAAAAAADGY/LjNv5yzcEM8/s72-c/WindowsR_thumb%25255B5%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-7282849234269464767</guid><pubDate>Sat, 03 Sep 2011 09:06:00 +0000</pubDate><atom:updated>2011-09-03T14:36:31.447+05:30</atom:updated><title>Silverlight 5 : Platform Invoke (PInvoke) in Silverlight</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Two days back Microsoft announced availability of Silverlight 5 RC,I encourage you to download bits from &lt;a href="http://www.silverlight.net/downloads" target="_blank"&gt;here&lt;/a&gt;, My friend Pete Brown already given very good information on Silverlight 5 RC &lt;a href="http://10rem.net/blog/2011/09/01/silverlight-5-rc-now-available" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;PInvoke (some type this as p/Invoke) that is Platform Invoke is most awaited feature in Silverlight since the announcement of Roadmap of Silverlight 5.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;There are lot of talks in the community about Native HTML5 Apps using JavaScript,I am sure with this feature of PInvoke,Silverlight is now equally powerful player in App Development.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Why I kept above text in Bold? This is because there is lot of HTML5 talks around and sometime people unnecessarily without judging pulling Silverlight down for no good reason.For those who think we are Dead or we are just Animation technology..well by this feature you folks must have realize the potential of this Silverlight platform and where we are heading towards.&lt;/p&gt;  &lt;p&gt;Coming back to PInvoke,So today to start with,I am putting forward a very simple and basic demo of PInvoke for you to understand and grab the topic and get hold of it.Then in next article I will be putting some advance samples and also in coming days I will be covering few more Silverlight 5 topics as well.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;This demo is based on calling a “Beep” functionality from kernel32.dll file from Windows&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;If your fundas of PInvoke are not clear,In that case I encourage you to have a look at this article on Wikipedia which talks about PInvoke&lt;/p&gt;  &lt;p&gt;&lt;a title="http://en.wikipedia.org/wiki/PInvoke" href="http://en.wikipedia.org/wiki/PInvoke"&gt;http://en.wikipedia.org/wiki/PInvoke&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Our First Silverlight PInvoke Demo :&amp;#160; Beep !!..Beep !!…&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Namespace :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;using System.Runtime.InteropServices;&lt;/p&gt;  &lt;p&gt;This is the primary namespace used to develop PInvoke apps.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Grid x:Name=&amp;quot;LayoutRoot&amp;quot; Background=&amp;quot;Black&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image Source=&amp;quot;Beep.jpg&amp;quot;/&amp;gt;&amp;lt;/Grid&amp;gt;&lt;/p&gt;  &lt;p&gt;I just taken a Road Runner Image as name of the demo is Beep Beep&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Now what we are going to do is that we will invoke Beep function which is a System Beep function from kernel32.dll&lt;/p&gt;  &lt;p&gt;#region Beep Module   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [DllImport(&amp;quot;kernel32.dll&amp;quot;, SetLastError = true)]    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [return: MarshalAs(UnmanagedType.Bool)]    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; static extern bool Beep(uint dwFreq, uint dwDuration);    &lt;br /&gt;#endregion&lt;/p&gt;  &lt;p&gt;[DllImport…] specified which dll file we are invoking.”SetLastError” is actually a Named Parameter in the signature which indicate whether the callee calls the SetLastError Win32 API function before returning from attribute method.&lt;/p&gt;  &lt;p&gt;So we are all set to call Beep function from kernel32.dll in our Silverlight app like shown below :&lt;/p&gt;  &lt;p&gt;public MainPage()   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; InitializeComponent();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; this.Loaded += new RoutedEventHandler(MainPage_Loaded);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; void MainPage_Loaded(object sender, RoutedEventArgs e)   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for (uint i = 100; i &amp;lt;= 200; i=i+10)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Beep(i,100);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;  &lt;p&gt;Done ! We have just develop our first PInvoke Sample using Silverlight 5 RC !&lt;/p&gt;  &lt;p&gt;Now turn on your speakers and get ready to hear Beep !! Beep !! from Road Runner ..I mean you will get some sound / default sound from system.If you want to change bits and duration then go ahead and feel free to tune the code.&lt;/p&gt;  &lt;p&gt;Oh ! Wait ! What’s this error about? :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-IjIy6IvSbo4/TmHt7w8PKtI/AAAAAAAADF0/tX5hAvRNDL8/s1600-h/pinvokeerror%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="pinvokeerror" border="0" alt="pinvokeerror" src="http://lh6.ggpht.com/-iEHQIpLkDTY/TmHt9ItwcnI/AAAAAAAADF4/TKIfjNwnqfc/pinvokeerror_thumb%25255B7%25255D.jpg?imgmax=800" width="454" height="229" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This is Runtime Exception because of lacking of trust,so you need to turn on that in OOB setting like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-ztGrq4QLpPE/TmHt9zxFyxI/AAAAAAAADF8/P4Wau-7nkbk/s1600-h/pinvoketrust%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="pinvoketrust" border="0" alt="pinvoketrust" src="http://lh6.ggpht.com/-SZukVtpCeKc/TmHt-5GNt7I/AAAAAAAADGA/8w1sTOtmV1Y/pinvoketrust_thumb%25255B7%25255D.jpg?imgmax=800" width="452" height="113" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To know more on this Trust part I encourage you to read my friend Kunal’s article &lt;a href="http://www.kunal-chowdhury.com/2011/09/what-new-in-silverlight-5-rc-elevated.html" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Output : (Turn On the Speakers for Beep)&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;a href="http://lh5.ggpht.com/-VzMSSX4W_XY/TmHuEWIy74I/AAAAAAAADGE/RyuXJOGc13E/s1600-h/pinvkop%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="pinvkop" border="0" alt="pinvkop" src="http://lh5.ggpht.com/-hTvnEVZYnTg/TmHuFV5CqeI/AAAAAAAADGI/QnUcGngzeWY/pinvkop_thumb%25255B7%25255D.jpg?imgmax=800" width="222" height="240" /&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;This ends our first ever PInvoke functionality using Silverlight 5 RC.I request you to download new RC bits and try out this demo,meanwhile I will prepare my next advance demo of PInvoke and other few articles.So with this PInvoke I can say again that ..Future is Bright ! Future is Silverlight !!&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.     &lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/09/silverlight-5-platform-invoke-pinvoke.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/-iEHQIpLkDTY/TmHt9ItwcnI/AAAAAAAADF4/TKIfjNwnqfc/s72-c/pinvokeerror_thumb%25255B7%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-5089037040423976282</guid><pubDate>Wed, 31 Aug 2011 17:46:00 +0000</pubDate><atom:updated>2011-08-31T23:16:22.078+05:30</atom:updated><title>Silverlight 5 : Low-Latency Sound Effects</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I just keep switching between Windows Phone and Silverlight and in office its WPF,so many technical flavors in a week I taste,Well today I am going to talk on Silverlight back again.Lot many features announced with Silverlight 5 beta.Few weeks back I did share few things with you like Text improvement and Window class etc. and I got very good response for that from all of you.Thanks for that.&lt;/p&gt;  &lt;p&gt;Today I am going to talk on some interesting feature set of Low-Latency Sound Effects and how you can incorporate that inside your application.This feature is useful especially in Media and Entertainment related apps and bit away from actual Line of Business apps.For example, Gun shots,Game Over-Game Start sounds,Level change sounds,Notifications etc.For XNA developers who write games for Windows Phone 7 are in good position to understand this since there they use this SoundEffects heavily.&lt;/p&gt;  &lt;p&gt;For this you need to take help of XNA library which will give you SoundEffect class,so you need Namespace :&lt;/p&gt;  &lt;p&gt;using Microsoft.Xna.Framework.Audio;&lt;/p&gt;  &lt;p&gt;Structure of SoundEffect class is like this :&lt;/p&gt;  &lt;p&gt;public sealed class SoundEffect : IDisposable   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [SecuritySafeCritical]    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public SoundEffect(byte[] buffer, int sampleRate, AudioChannels channels);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [SecuritySafeCritical]    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public SoundEffect(byte[] buffer, int offset, int count, int sampleRate, AudioChannels channels, int loopStart, int loopLength);&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public TimeSpan Duration { get; }   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public bool IsDisposed { get; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static float MasterVolume { get; set; }&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public SoundEffectInstance CreateInstance();   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public void Dispose();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static SoundEffect FromStream(Stream stream);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static TimeSpan GetSampleDuration(int sizeInBytes, int sampleRate, AudioChannels channels);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static int GetSampleSizeInBytes(TimeSpan duration, int sampleRate, AudioChannels channels);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public bool Play();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public bool Play(float volume, float pitch, float pan);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Demo :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I am not a hardcore Game developer but being movie buff,I am putting one Horror Image and on loading of that I am playing some scary music and on clicking on that image some more sound effects will be played.So this is background of this demo,first let me share how it will look like, well its simple image of ghost and rest is game of sound effects.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-U32bhEb-QkY/Tl5zWuuxUOI/AAAAAAAADFk/Xfjfe3B5TP8/s1600-h/Horror1%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Horror1" border="0" alt="Horror1" src="http://lh4.ggpht.com/-AS7e3K612-M/Tl5zX24uSGI/AAAAAAAADFo/qQ0hpty8D8Q/Horror1_thumb%25255B7%25255D.jpg?imgmax=800" width="456" height="342" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;font size="1"&gt;*Note : Image used here is taken from internet and used here just for demo purpose,Image have its own respective copyrights.&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Design : &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;For this demo you can use any design of your choice,I am just putting one scary image,I was actually planning to make some short movie with animations and change opacity etc, but I am leaving that creative part for you. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/--w_BccPC_4M/Tl5zZ3I4tXI/AAAAAAAADFs/imOnIKlk03o/s1600-h/Horror2%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Horror2" border="0" alt="Horror2" src="http://lh3.ggpht.com/-f_uySU-5dkU/Tl5zbAlgb0I/AAAAAAAADFw/eIgpwuB3Ffc/Horror2_thumb%25255B6%25255D.jpg?imgmax=800" width="459" height="289" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So I am just focusing on playing sound effect.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Namespace :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;using Microsoft.Xna.Framework.Audio;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;private void img_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; var ScramStream = Application.GetResourceStream(new Uri(&amp;quot;Shot.wav&amp;quot;, UriKind.RelativeOrAbsolute));    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ScreamEffect = SoundEffect.FromStream(ScramStream.Stream);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ScreamEffect.Play();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;  &lt;p&gt;This will load “Shot.wav” file and play the same once you click on that Image. Make sure that the “wav” file is PCM encoded file and falls between 22.5,48.5khz sample rate else your “wav” format will not get load and hence you will not have any sound effect.Also it should be 8 or 16 bit mono or stereo. &lt;/p&gt;  &lt;p&gt;If you want to play effect and tweak the things then SoundEffectInstance will help you to do this.Sound.You can use properties like Pitch,Pan Volume etc.See code below, you will get idea how you can do things with SoundEffectInstance&lt;/p&gt;  &lt;p&gt;SoundEffectInstance HorrorSound = ScreamEffect.CreateInstance();   &lt;br /&gt;HorrorSound.Pitch = 3.0f;    &lt;br /&gt;HorrorSound.Pan = 1.5f;    &lt;br /&gt;HorrorSound.Play();&lt;/p&gt;  &lt;p&gt;What you can do more is to put this code in Timer (Instance of DispatcherTimer) and play the same.If you want to dig further you can visit MSDN for more on SoundEffect Class here &lt;a title="http://msdn.microsoft.com/en-us/library/dd282429.aspx" href="http://msdn.microsoft.com/en-us/library/dd282429.aspx"&gt;http://msdn.microsoft.com/en-us/library/dd282429.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So, This is all about the Low-Latency Sound Effect in Silverlight 5 beta.Soon I will share few more Multimedia related features in coming days and will try to cover remaining features of Silverlight 5 Beta in coming weeks on which I haven’t discuss anything here.Till then you can try this demo and let me know your feedback for the same.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.     &lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/08/silverlight-5-low-latency-sound-effects.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-AS7e3K612-M/Tl5zX24uSGI/AAAAAAAADFo/qQ0hpty8D8Q/s72-c/Horror1_thumb%25255B7%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-5974176190415912602</guid><pubDate>Sat, 20 Aug 2011 15:32:00 +0000</pubDate><atom:updated>2011-08-20T21:02:36.610+05:30</atom:updated><title>Silverlight for Windows Phone Toolkit for ‘Mango’ : Getting Started</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;After a long time rather after a month got some free time to look at this place.Horrible work at office as usual.Well,before I start posting some cool stuff on Windows Phone 7.1 and Silverlight 5 again.Lets get ready with tools again.&lt;/p&gt;  &lt;p&gt;Microsoft announced Silverlight for Windows Phone Toolkit recently and its worth downloading since it is now revised with some bug fixes, smooth performance and decent controls by which you can build good quality apps for your Mango Platform aka WP 7.1&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Name :&lt;/strong&gt; Silverlight for Windows Phone Toolkit SDK 7.1 (“Mango”) August 2011&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Downloads :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;msi : &lt;/strong&gt;&lt;a title="&amp;#13;&amp;#10;http://silverlight.codeplex.com/releases/view/71550#DownloadId=270984" href="http://silverlight.codeplex.com/releases/view/71550#DownloadId=270984"&gt;http://silverlight.codeplex.com/releases/view/71550#DownloadId=270984&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;nuget&lt;/strong&gt; : &lt;a title="http://nuget.org/List/Packages/SilverlightToolkitWP" href="http://nuget.org/List/Packages/SilverlightToolkitWP"&gt;http://nuget.org/List/Packages/SilverlightToolkitWP&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Some new in this Toolkit :&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;ExpanderView - for building expanding and collapsing items&lt;/li&gt;    &lt;li&gt;PhoneTextBox - for enhanced text box with action icon support, watermarking, etc.&lt;/li&gt;    &lt;li&gt;DateTimePickers - for Date and Time into apps&lt;/li&gt;    &lt;li&gt;HubTitle- for building animated and informative tiles&lt;/li&gt;    &lt;li&gt;LockablePivots - for displaying current item only&amp;#160; usually used with multiple selection&lt;/li&gt;    &lt;li&gt;MultiSelectList - for multiple selection with lists of data scenarios&lt;/li&gt;    &lt;li&gt;LongListSelector - redesigned for Mango to give smooth scroll&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Where to Report Bugs, feedback suggestions for this Toolkit ? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="http://silverlight.codeplex.com/workitem/list/basic" href="http://silverlight.codeplex.com/workitem/list/basic"&gt;http://silverlight.codeplex.com/workitem/list/basic&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So this is sufficient for you people to get ready with the tools and very soon I will start posting samples and quick demos on top of this toolkit.Not much break now and I will be back here soon.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Why I &amp;amp; this blog was on silent mode for last couple of weeks :&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Done some presentations on Silverlight &amp;amp; Windows Phone 7 in community last month&lt;/li&gt;    &lt;li&gt;Building some cool demos on Silverlight 5,Work in Progress &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Some random snaps from my recent Silverlight &amp;amp; Windows Phone 7 sessions in community at Pune, India :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;a href="http://lh5.ggpht.com/-L1RUCKSGKj8/Tk_TXNNRYhI/AAAAAAAADFE/jGSWw1SXSqU/s1600-h/DSC00003%25255B17%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="" border="0" alt="" src="http://lh3.ggpht.com/-G8dqVHfXct8/Tk_TYkJRtBI/AAAAAAAADFI/4eDG-qLEBow/DSC00003_thumb%25255B15%25255D.jpg?imgmax=800" width="221" height="173" /&gt;&lt;/a&gt;&lt;a href="http://lh3.ggpht.com/-bNdW5ynQWk0/Tk_TbSmeKTI/AAAAAAAADFM/cNCNEaHc7rQ/s1600-h/DSC00006%25255B10%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="" border="0" alt="" src="http://lh4.ggpht.com/-UU4-Qz4PoCI/Tk_TcGdMXYI/AAAAAAAADFQ/suKFgFSqTTs/DSC00006_thumb%25255B8%25255D.jpg?imgmax=800" width="220" height="172" /&gt;&lt;/a&gt;&lt;a href="http://lh6.ggpht.com/-o2JTPcCIOgc/Tk_TfpBcCsI/AAAAAAAADFU/hGCOB9LxsSk/s1600-h/DSC00016%25255B11%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="" border="0" alt="" src="http://lh3.ggpht.com/--bTx3G4onW4/Tk_Tg-Ew_5I/AAAAAAAADFY/dyzEud7JmIw/DSC00016_thumb%25255B9%25255D.jpg?imgmax=800" width="219" height="187" /&gt;&lt;/a&gt;&lt;a href="http://lh4.ggpht.com/-pbycQMzI9oM/Tk_Tj_jheDI/AAAAAAAADFc/5h-ECI4Uak0/s1600-h/DSC00018%25255B10%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="" border="0" alt="" src="http://lh5.ggpht.com/-HpEDqt-LO4I/Tk_Tk2waYBI/AAAAAAAADFg/28Xgrt7xuPI/DSC00018_thumb%25255B8%25255D.jpg?imgmax=800" width="226" height="185" /&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;      &lt;p&gt;So folks, see you very soon with some good quality stuff on Silverlight 5 and Windows Phone 7.1 here,have a great week ahead !&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/08/silverlight-for-windows-phone-toolkit.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/-G8dqVHfXct8/Tk_TYkJRtBI/AAAAAAAADFI/4eDG-qLEBow/s72-c/DSC00003_thumb%25255B15%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-5647544389994012469</guid><pubDate>Mon, 04 Jul 2011 16:19:00 +0000</pubDate><atom:updated>2011-07-04T21:49:54.793+05:30</atom:updated><title>I am Silverlight MVP and I am still here for Silverlight</title><description>&lt;p&gt;&lt;strong&gt;I am Microsoft Most Valuable Professional (MVP) for Silverlight Year 2011-2012&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;This is my 4th time to won Microsoft MVP Award and 3rd time for Silverlight.On 1st July 2011 I got following Email from Microsoft MVP Award Program :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-BqP-CpilqLk/ThHoJSB9AuI/AAAAAAAADEg/8jhmasbghto/s1600-h/MVPHeader%25255B14%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="MVPHeader" border="0" alt="MVPHeader" src="http://lh5.ggpht.com/-Pk_at_bL95U/ThHoKSLml8I/AAAAAAAADEk/85CDMFNkstw/MVPHeader_thumb%25255B12%25255D.jpg?imgmax=800" width="461" height="167" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Things which I am doing from last few years made me MVP again :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I am doing Blog posts here for you and you only,I love this activity. Also I delivered few sessions on Silverlight and Windows Phone 7 in my local community,More you can see at my Public Microsoft MVP Profile here :&lt;/p&gt;  &lt;p&gt;&lt;a title="https://mvp.support.microsoft.com/default.aspx/profile/vikram.pendse" href="https://mvp.support.microsoft.com/default.aspx/profile/vikram.pendse"&gt;https://mvp.support.microsoft.com/default.aspx/profile/vikram.pendse&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I keep on updating things on this portal as soon as I contribute something towards you, A log kind of thing you can say. This is helpful for me especially when I become lazy, It’s a wake up call for me and reminds me to drop all laziness and start working on again.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What went wrong for me in Year 2010 and early 2011 :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I recently rather now 4-5 months back went under 2 surgeries on my kidney,it was nothing critical health issue though but because of that there was some gap in my work and activities. It took almost 2-3 months to come things on track again.Hence during Early December to Mid March I was bit idle and isolated from technology, In month of April and May also I suffer from high fever for 2 weeks which again kept me away from Computer.&lt;/p&gt;  &lt;p&gt;Well, I am very much thankful to my family,close friends and off course you people,my readers ! with your support from July 2010 I was able to come out of this unhealthy scenario and what I did from July 2010 to December 2010 given me big energy to contribute by which I was able to contribute again in last couple of months like from April to July 2011.&lt;/p&gt;  &lt;p&gt;My MVP Lead Abhishek Kant is also a key person throughout my MVP awards from year 2008, without his guidance it was not possible to come to this stage and win MVP Award for 4 times in a row. Thanks to him as well.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Year 2010 was not easy ! &lt;strong&gt;Year 2011-2012 - Difficult life ahead, Be ready :&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Beside my Health, there was loads of fumes and fire flames, Horrifying pain which cause due to that “Silverlight will not be focus” kind of announcement made by Microsoft. Growing giant of HTML5 not only kept me on fire but it was like a cold war. It was difficult time wherein most of my time went to define Silverlight and HTML5 and their capabilities to Customer, Now somehow I can see things coming to normal.&lt;/p&gt;  &lt;p&gt;In India, Microsoft Windows Phone 7 ecosystem didn’t made any significant progress in terms of availability of Marketplace and overall development in year 2010. So I took decision and gamble a bit to focus also on Windows Phone 7 beside Silverlight. It worked well for me as Silverlight was mutual platform. I am very happy now that I did my best to initiate Windows Phone 7 moment from my end towards community at my best.&lt;/p&gt;  &lt;p&gt;I am very clear with my role on Silverlight and HTML5 which I blogged recently &lt;a href="http://pendsevikram.blogspot.com/2011/06/silverlight-html5-windows-8-where-we.html" target="_blank"&gt;here&lt;/a&gt;. With the rumors of HTML5 + JS will be one of the stake holders for developing Windows 8 Apps,Now its time to identify and define Role of Silverlight. Microsoft may define role of Silverlight after Build event but we must start defining role of Silverlight for our work from this very day.&lt;/p&gt;  &lt;p&gt;Uncertainty is just next door,yes I am serious,See this post :&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.zdnet.com/blog/microsoft/microsoft-to-retire-refocus-windows-phone-mvp-program/9897" href="http://www.zdnet.com/blog/microsoft/microsoft-to-retire-refocus-windows-phone-mvp-program/9897"&gt;http://www.zdnet.com/blog/microsoft/microsoft-to-retire-refocus-windows-phone-mvp-program/9897&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Sad and painful news but its truth, So you will never know where you will be next year ! &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;We will be together for Silverlight Today,Tomorrow and in future :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;As Microsoft MVP for Silverlight and as Silverlight Insider, I assure you all that I will give my best in year 2011-12 and I will try my best to spend more and more time in with you in terms of Blog posts, Code Samples and Videos.&lt;/p&gt;  &lt;p&gt;Silverlight 5 and Windows Phone 7 will be my prime focus, but beside that there is a wild and crazy plan to start looking into HTML5 and WPF as well.&lt;/p&gt;  &lt;p&gt;So thanks once again for all your love,feedback,support and wish you will continue the same in year 2011-12 as well.Keep visiting this place and keep me buzzing,I am here for you all the time for Silverlight.&lt;/p&gt;  &lt;p&gt;Thanks once again and Keep our quote in mind always :&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Future is Bright because future is Silverlight !!&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/07/i-am-silverlight-mvp-and-i-am-still.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/-Pk_at_bL95U/ThHoKSLml8I/AAAAAAAADEk/85CDMFNkstw/s72-c/MVPHeader_thumb%25255B12%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-2037627324517155145</guid><pubDate>Sat, 18 Jun 2011 15:16:00 +0000</pubDate><atom:updated>2011-06-18T20:46:36.134+05:30</atom:updated><title>Prototyping Windows Phone 7 Applications using SketchFlow</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I should actually say “Prototyping Windows Phone 7 / 7.1 Applications using SketchFlow” since let it be ver. 7 or 7.1, The way we are going to do prototyping will remain the same.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What is Prototyping and SketchFlow and why to use that? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Those hardcore developers who are not involved in Designing phase of application usually not much aware of Prototyping and SketchFlow and power of both.Like we see Movie Trailer before actual Movie comes to Cinema Hall, There we get glimpse of Movie and what it will be all about. On the same line, SketchFlow which is the new way of doing Prototypes using Microsoft Expression Blend give glimpse of your application and how it will look like. So being a developer question may come to your mind that why we should use this? Well to answer you, I have already done a series on Prototyping and SketchFlow for Silverlight in past, Those articles will give you more better idea about these,so take some time out and visit those articles as well, you can find them below :&lt;/p&gt;  &lt;p&gt;Part 1: &lt;/p&gt;  &lt;p&gt;&lt;a title="http://pendsevikram.blogspot.com/2009/10/expression-blend-3-sketch-flow-new-era.html" href="http://pendsevikram.blogspot.com/2009/10/expression-blend-3-sketch-flow-new-era.html"&gt;http://pendsevikram.blogspot.com/2009/10/expression-blend-3-sketch-flow-new-era.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Part 2:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://pendsevikram.blogspot.com/2009/10/expression-blend-3-sketchflow-new-era.html" href="http://pendsevikram.blogspot.com/2009/10/expression-blend-3-sketchflow-new-era.html"&gt;http://pendsevikram.blogspot.com/2009/10/expression-blend-3-sketchflow-new-era.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Part 3:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://pendsevikram.blogspot.com/2009/11/expression-blend-3-sketchflow-new-era.html" href="http://pendsevikram.blogspot.com/2009/11/expression-blend-3-sketchflow-new-era.html"&gt;http://pendsevikram.blogspot.com/2009/11/expression-blend-3-sketchflow-new-era.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;SketchFlow for Windows Phone :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;When you install Expression Blend Designer for Windows Phone or Expression Blend in general you will not get any special or additional Project Template for SketchFlow which you usually get for Silverlight. So I am using the SketchFlow Project Template published on Codeplex site here :&lt;/p&gt;  &lt;p&gt;&lt;a title="http://wp7sketchflow.codeplex.com/" href="http://wp7sketchflow.codeplex.com/"&gt;http://wp7sketchflow.codeplex.com/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Creating SketchFlow for your Windows Phone Application :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;After installing you will find Windows Phone SketchFlow Project Template inside your Microsoft Expression Blend 4 instance like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-FANVpSt2Rn4/TfzA-iVpMDI/AAAAAAAADCI/GVgmuQ7bmGY/s1600-h/NewSketchFlowWP%25255B12%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="NewSketchFlowWP" border="0" alt="NewSketchFlowWP" src="http://lh3.ggpht.com/-LiahmDlYQeo/TfzA_lScT1I/AAAAAAAADCM/ZqIv9wDiZLo/NewSketchFlowWP_thumb%25255B10%25255D.jpg?imgmax=800" width="400" height="352" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;Once you select this template, Then your design works start,To start with, You can pick few Mockups from Mockup option and also can make use of Controls in sketchflow like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/--M-eHUPyNX4/TfzBAsMhGeI/AAAAAAAADCQ/lPU2ZDReN2Y/s1600-h/MockupsWP7%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="MockupsWP7" border="0" alt="MockupsWP7" src="http://lh4.ggpht.com/-Ryyem8Aq24w/TfzBB0-UncI/AAAAAAAADCU/aE3f_cfUjPM/MockupsWP7_thumb%25255B6%25255D.jpg?imgmax=800" width="371" height="409" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;For my demo, I am making use of Pivot Control and Pivot Item, you can always connect multiple screens to each other and navigate between them. Designer will look like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-uRdmNB9dVlg/TfzBDF5SzxI/AAAAAAAADCY/w9Li3qO2XK0/s1600-h/HomeMockup%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="HomeMockup" border="0" alt="HomeMockup" src="http://lh5.ggpht.com/-yNhVc0fDpwE/TfzBEGIs5hI/AAAAAAAADCc/rM2Hf2bfOtI/HomeMockup_thumb%25255B6%25255D.jpg?imgmax=800" width="352" height="400" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;Once I took Pivot it was looking like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-tjXhVvIQ6ec/TfzBGMKjItI/AAAAAAAADCg/p9f6sgz58LM/s1600-h/StartMockup%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="StartMockup" border="0" alt="StartMockup" src="http://lh6.ggpht.com/-_GJWiJnG4UY/TfzBHKihtEI/AAAAAAAADCk/lqEytz2dZkY/StartMockup_thumb%25255B6%25255D.jpg?imgmax=800" width="421" height="265" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;If you have multiple screens, you can always track them with the help of SketchFlow Map given with Expression Blend 4 SketchFlow,It will help you to give Macro view of your Design / Prototype, It looks like :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-zZzKzde_lxs/TfzBIcUmFsI/AAAAAAAADCo/TKmOf3zkX_o/s1600-h/MapWP7%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="MapWP7" border="0" alt="MapWP7" src="http://lh6.ggpht.com/-KSwutN93fOc/TfzBJT-wPgI/AAAAAAAADCs/xi5q-hcogEk/MapWP7_thumb%25255B6%25255D.jpg?imgmax=800" width="422" height="183" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once you are done with the Design you can Press F5 and Run that in Browser and it will look like this in your Browser :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-mMUkVpLpLb0/TfzBKkTojNI/AAAAAAAADCw/XfKR2uTU9eA/s1600-h/Output1%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Output1" border="0" alt="Output1" src="http://lh3.ggpht.com/-IgMLOojYqiw/TfzBL9GbKlI/AAAAAAAADC0/Wvhk15lDVyY/Output1_thumb%25255B7%25255D.jpg?imgmax=800" width="410" height="256" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Inside that, you have various options like Map,Feedback etc. You can give feedback like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-rV7sFJRhnC4/TfzBNeMjeHI/AAAAAAAADC4/Aa2R3y6jLuM/s1600-h/Output2%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Output2" border="0" alt="Output2" src="http://lh3.ggpht.com/-zXIe7k1x8gQ/TfzBO1d7eNI/AAAAAAAADC8/EFKUHWNtlAc/Output2_thumb%25255B6%25255D.jpg?imgmax=800" width="426" height="268" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;If above things I mentioned looks difficult for you to understand, Take a look at 5 mins Video below which I have recorded via Microsoft Expression Encoder Screen Capture Utility (Check this &lt;a href="http://pendsevikram.blogspot.com/2009/11/expression-encoder-3-screen-capture.html" target="_blank"&gt;post&lt;/a&gt; which will guide you how to use that utility)&lt;/p&gt;  &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:09c89096-4016-4823-95f0-5af6c0863d67" class="wlWriterEditableSmartContent"&gt;&lt;div id="3895ebe9-137c-4d67-8f1d-e46955c63e14" style="margin: 0px; padding: 0px; display: inline;"&gt;&lt;div&gt;&lt;a href="http://www.youtube.com/watch?v=Pma-Lr4zufQ" target="_new"&gt;&lt;img src="http://lh5.ggpht.com/-dn3DG8s7cjo/TfzBPvJW_6I/AAAAAAAADDA/502HyMA2ero/videoeea02ae9d032%25255B15%25255D.jpg?imgmax=800" style="border-style: none" galleryimg="no" onload="var downlevelDiv = document.getElementById('3895ebe9-137c-4d67-8f1d-e46955c63e14'); downlevelDiv.innerHTML = &amp;quot;&amp;lt;div&amp;gt;&amp;lt;object width=\&amp;quot;448\&amp;quot; height=\&amp;quot;252\&amp;quot;&amp;gt;&amp;lt;param name=\&amp;quot;movie\&amp;quot; value=\&amp;quot;http://www.youtube.com/v/Pma-Lr4zufQ?hl=en&amp;amp;hd=1\&amp;quot;&amp;gt;&amp;lt;\/param&amp;gt;&amp;lt;embed src=\&amp;quot;http://www.youtube.com/v/Pma-Lr4zufQ?hl=en&amp;amp;hd=1\&amp;quot; type=\&amp;quot;application/x-shockwave-flash\&amp;quot; width=\&amp;quot;448\&amp;quot; height=\&amp;quot;252\&amp;quot;&amp;gt;&amp;lt;\/embed&amp;gt;&amp;lt;\/object&amp;gt;&amp;lt;\/div&amp;gt;&amp;quot;;" alt=""&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="width:448px;clear:both;font-size:.8em"&gt;Using SketchFlow for Windows Phone by Vikram Pendse–MVP Silverlight&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;The beauty of SketchFlow is that it allows you to export your project as “Word Document” So for that all you need to do is go to File-&amp;gt;Export to MS Word option and you are done ! The word document generated by SketchFlow looks like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-tV_1v19nAOc/TfzBROgn6pI/AAAAAAAADDE/QYZxHxmVgPo/s1600-h/Worddoc1%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Worddoc1" border="0" alt="Worddoc1" src="http://lh3.ggpht.com/-pegj4UPPsA8/TfzBSZOZI5I/AAAAAAAADDI/FlG0WyB8KUc/Worddoc1_thumb%25255B6%25255D.jpg?imgmax=800" width="436" height="274" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-haY3UNeoGT0/TfzBThJTS-I/AAAAAAAADDM/B6peGdZQeXI/s1600-h/Worddoc2%25255B8%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Worddoc2" border="0" alt="Worddoc2" src="http://lh3.ggpht.com/-QhlRje_jHNk/TfzBUt_YZGI/AAAAAAAADDQ/gflZ-zEmisQ/Worddoc2_thumb%25255B6%25255D.jpg?imgmax=800" width="434" height="271" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Well, That all today from me, Hope you like this post and I am sure you will try this out and make best use of the same in your Windows Phone 7 Projects. I am going for weekend Bike Ride and will back from there with great ideas for upcoming posts, Till that time you guys enjoy and try this out,See you soon.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/06/prototyping-windows-phone-7.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/-LiahmDlYQeo/TfzA_lScT1I/AAAAAAAADCM/ZqIv9wDiZLo/s72-c/NewSketchFlowWP_thumb%25255B10%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-483168890264437592</guid><pubDate>Sun, 12 Jun 2011 17:02:00 +0000</pubDate><atom:updated>2011-06-12T22:32:08.091+05:30</atom:updated><title>Mango : Using DeviceStatus in Windows Phone 7.1</title><description>&lt;p&gt;First of all “Thank You” for your wonderful response and comments on my last article on &lt;a href="http://pendsevikram.blogspot.com/2011/06/silverlight-html5-windows-8-where-we.html" target="_blank"&gt;Silverlight Vs HTML5&lt;/a&gt; ,I hope you like the points I raised there and I will soon write more about it in future.Today I am going to share information on DeviceStatus API and how it helps to give more information about Windows Phone Device. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Information :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;DeviceStatus is a static class and you can find the same in Microsoft.Phone.Info Namespace. DeviceStatus exposes bunch of static properties and two events of keyboard and powersource respectively. Properties are like below :&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;ApplicationCurrentMemoryUsage&lt;/li&gt;    &lt;li&gt;ApplicationPeakMemoryUsage&lt;/li&gt;    &lt;li&gt;DeviceFirmwareVersion&lt;/li&gt;    &lt;li&gt;DeviceHardwareVersion&lt;/li&gt;    &lt;li&gt;DeviceManufacturer&lt;/li&gt;    &lt;li&gt;DeviceName&lt;/li&gt;    &lt;li&gt;DeviceTotalMemory&lt;/li&gt;    &lt;li&gt;PowerSource&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;and two more boolean properties with events I mentioned above.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-dkXHm2ZH9as/TfTw8K2ZXOI/AAAAAAAADBU/g7iHFkNXG-c/s1600-h/DeviceStatusDesign%25255B6%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="DeviceStatusDesign" border="0" alt="DeviceStatusDesign" src="http://lh4.ggpht.com/-BacLos9OZpI/TfTxCX7Wz6I/AAAAAAAADBY/XVUwQmgNoyM/DeviceStatusDesign_thumb%25255B4%25255D.jpg?imgmax=800" width="248" height="399" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I have taken TextBlocks to display information as shown above which I am assigning from Code Behind,So XAML will be like this :&lt;/p&gt;  &lt;p&gt;&amp;lt;!--ContentPanel - place additional content here--&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Grid x:Name=&amp;quot;ContentPanel&amp;quot; Grid.Row=&amp;quot;1&amp;quot; Margin=&amp;quot;12,0,12,0&amp;quot;&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtApplicationCurrentMemoryUsage&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;0,62,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtApplicationPeakMemoryUsage&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;0,118,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtDeviceFirmwareVersion&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;0,172,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtDeviceHardwareVersion&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;2,227,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtDeviceManufacturer&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;0,281,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtDeviceName&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;6,331,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtDeviceTotalMemory&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;6,383,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtPowerSource&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;6,435,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Grid&amp;gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;General Declaration :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;DispatcherTimer dptm = new DispatcherTimer();&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Constructor :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;// Constructor   &lt;br /&gt;public MainPage()    &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; InitializeComponent();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; dptm.Interval = new TimeSpan(0, 0, 5);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; dptm.Tick += new EventHandler(dptm_Tick);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; dptm.Start();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; this.Loaded += new RoutedEventHandler(MainPage_Loaded);    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;I have added DispatcherTimer just to get real time memory status and nothing else.&lt;/p&gt;  &lt;p&gt;void dptm_Tick(object sender, EventArgs e)   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtApplicationCurrentMemoryUsage.Text = &amp;quot;Application Current Memory Usage : &amp;quot; + Microsoft.Phone.Info.DeviceStatus.ApplicationCurrentMemoryUsage.ToString();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtApplicationPeakMemoryUsage.Text = &amp;quot;Application Peak Memory Usage : &amp;quot; + Microsoft.Phone.Info.DeviceStatus.ApplicationPeakMemoryUsage.ToString();    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;void MainPage_Loaded(object sender, RoutedEventArgs e)   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; WP7DeviceStatus();    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;public void WP7DeviceStatus()   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtDeviceFirmwareVersion.Text = &amp;quot;Firmware Version : &amp;quot; + Microsoft.Phone.Info.DeviceStatus.DeviceFirmwareVersion.ToString();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtDeviceHardwareVersion.Text = &amp;quot;Hardware Version : &amp;quot; + Microsoft.Phone.Info.DeviceStatus.DeviceHardwareVersion.ToString();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtDeviceManufacturer.Text = &amp;quot;Manufacturer : &amp;quot; + Microsoft.Phone.Info.DeviceStatus.DeviceManufacturer.ToString();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtDeviceName.Text = &amp;quot;Device Name : &amp;quot; + Microsoft.Phone.Info.DeviceStatus.DeviceName.ToString();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtDeviceTotalMemory.Text = &amp;quot;Total Memory : &amp;quot; + Microsoft.Phone.Info.DeviceStatus.DeviceTotalMemory.ToString();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtPowerSource.Text = &amp;quot;Power Source : &amp;quot; + Microsoft.Phone.Info.DeviceStatus.PowerSource.ToString();&amp;#160; &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;finally this will look like this on Device, As it is running on Emulator hence most of the information will be change after it goes on actual device.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Output :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-lwY0AmWF5A8/TfTxC1ZCywI/AAAAAAAADBc/3WK0Fe1fZhI/s1600-h/DeviceStatus%25255B6%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="DeviceStatus" border="0" alt="DeviceStatus" src="http://lh4.ggpht.com/-RiG-6VFnIn8/TfTxD3KcZ2I/AAAAAAAADBg/BiziaO3X-cg/DeviceStatus_thumb%25255B4%25255D.jpg?imgmax=800" width="261" height="505" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Remember that its always good to notify user that your application is recording this information if at all your application is storing this information somewhere for some kind of analysis is getting perform on the same or using this data for application. Soon I will be posting full end to end application there I will be showing the exact use of this DeviceStatus.However I hope you will explore it and start using it in your Windows Phone application.As I shown above,it is very simple to implement. I am soon posting some advance tutorials on Mango in coming days. I don’t want to push to much which will create confusion for you, So I am posting basic articles to start with and then we will slowly go ahead at different higher levels.&lt;/p&gt;  &lt;p&gt;So try out this API and I will be back soon with some more interesting demos on Mango, There is lot to show and talk on Mango and I am at background exploring lot many things,so keep visiting here as I will be posting some good stuff on Mango in coming days.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/06/mango-using-devicestatus-in-windows.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-BacLos9OZpI/TfTxCX7Wz6I/AAAAAAAADBY/XVUwQmgNoyM/s72-c/DeviceStatusDesign_thumb%25255B4%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-5024666124885927398</guid><pubDate>Mon, 06 Jun 2011 19:52:00 +0000</pubDate><atom:updated>2011-06-07T01:22:11.348+05:30</atom:updated><title>Silverlight, HTML5 &amp; Windows 8 : Where we are heading to ?</title><description>&lt;p&gt;This is not the post or yet another post on most happening debate of Silverlight and HTML5, This is just a visit to all of them to realize the potential in each and see what we can make best out of it.&lt;/p&gt;  &lt;p&gt;I recently attended Microsoft MVP Open Day 2011 organized for South Asia in Microsoft IDC at Hyderabad, India. It was amazing to meet fellow MVPs and we had lot of learning and too much fun. During my visit, I met many glorious minds who are doing amazing stuff for Web and we had some discussions on this topic especially Silverlight and HTML5.By points raised in this discussion and overall stuff came out during my last year Communities and Customer interactions that I am going to put down for you.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Silverlight : Past,Present and Future &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I have already posted about my thoughts on Silverlight Vs HTML5 &lt;a href="http://pendsevikram.blogspot.com/2010/11/silverlight-vs-html5-you-and-me.html" target="_blank"&gt;here&lt;/a&gt;. Day by day situation is getting worst and confusing, So I thought to write this post actually. Initially even I was confused and frustrated about what happened in last PDC event. With recent Video which came up for Windows 8 added more fuel to the discussion of HTML5 and Silverlight. If you have not seen this video,please do once :&lt;/p&gt;    &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:2d315e4d-0efb-4e01-b48c-6fcfaffad489" class="wlWriterEditableSmartContent"&gt;&lt;div id="e5d7d524-b3d4-4601-91ae-d58196c0ff46" style="margin: 0px; padding: 0px; display: inline;"&gt;&lt;div&gt;&lt;a href="http://www.youtube.com/watch?v=p92QfWOw88I" target="_new"&gt;&lt;img src="http://lh3.ggpht.com/-L7E_LIOSwoE/Te0vukmH4-I/AAAAAAAADA4/P2mtr4DAMyo/video7d721182a9e8%25255B101%25255D.jpg?imgmax=800" style="border-style: none" galleryimg="no" onload="var downlevelDiv = document.getElementById('e5d7d524-b3d4-4601-91ae-d58196c0ff46'); downlevelDiv.innerHTML = &amp;quot;&amp;lt;div&amp;gt;&amp;lt;object width=\&amp;quot;448\&amp;quot; height=\&amp;quot;252\&amp;quot;&amp;gt;&amp;lt;param name=\&amp;quot;movie\&amp;quot; value=\&amp;quot;http://www.youtube.com/v/p92QfWOw88I?hl=en&amp;amp;hd=1\&amp;quot;&amp;gt;&amp;lt;\/param&amp;gt;&amp;lt;embed src=\&amp;quot;http://www.youtube.com/v/p92QfWOw88I?hl=en&amp;amp;hd=1\&amp;quot; type=\&amp;quot;application/x-shockwave-flash\&amp;quot; width=\&amp;quot;448\&amp;quot; height=\&amp;quot;252\&amp;quot;&amp;gt;&amp;lt;\/embed&amp;gt;&amp;lt;\/object&amp;gt;&amp;lt;\/div&amp;gt;&amp;quot;;" alt=""&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="width:448px;clear:both;font-size:.8em"&gt;Building “Windows 8”–Video #1&lt;/div&gt;&lt;/div&gt;    &lt;p&gt;After this video and when there was mention of HTML5 + JS, Fumes started coming up and people’s reactions and anger was spontaneous.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-b_i21WuQbBs/Te0vwRzkcHI/AAAAAAAADA8/PlnViGOHU04/s1600-h/angry-mob5.jpg"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="angry-mob" border="0" alt="angry-mob" src="http://lh4.ggpht.com/-VZvgfU5zCmI/Te0vx7hjAxI/AAAAAAAADBA/z8QDnUbJBl4/angry-mob_thumb3.jpg?imgmax=800" width="408" height="340" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I saw some deadly thread on Silverlight.net forums talking about the same, Check &lt;a href="http://forums.silverlight.net/forums/p/230502/562113.aspx" target="_blank"&gt;this&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What’s happening to Developers with this cold war of Silverlight &amp;amp; HTML5 :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-iWkUQ6TV8Ww/Te0vzAZJmLI/AAAAAAAADBE/Kq7rWQaZeOU/s1600-h/confused-baby5.jpg"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto; padding-top: 0px" title="confused-baby" border="0" alt="confused-baby" src="http://lh4.ggpht.com/-eQRtujW8poc/Te0v4V59XrI/AAAAAAAADBI/hCDDJNCJYvI/confused-baby_thumb3.jpg?imgmax=800" width="295" height="365" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;With the Previews of HTML5 shown by Microsoft with IE9 and IE10 Platform preview and from other vendors, There is a great confusion among people that Microsoft is no longer focusing on Silverlight or they have stop investments on the same. We all agree that HTML5 came up with some jazzy stuff which can do better things with less lines of codes and without plugin.&lt;/p&gt;  &lt;p&gt;There are so many things one can pick up for Web Development these days.&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;ASP.NET MVC&lt;/li&gt;    &lt;li&gt;PHP&lt;/li&gt;    &lt;li&gt;HTML5 + JS&lt;/li&gt;    &lt;li&gt;Silverlight | RIA Services&lt;/li&gt;    &lt;li&gt;Adobe Flash | Air&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;JQuery goes well with many of them. If you look at cost wise effective solution, HTML and PHP comes out as a natural choice, If you look at flexibility, Value added features and rich tooling then ASP.NET and Silverlight are good choice. So as far as Web Apps which will get into use via Browser, There is less confusion. For very rich apps either one can go for Silverlight or Flash depending upon the client requirement and business scenarios.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Advantages :&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Silverlight comes here as Advantage due to its Out Of Browser capabilities along with similar availability from Flash/Air but they are clear winner over other languages.&lt;/li&gt;    &lt;li&gt;With Rich Tools like Expression Studio and features like Sketch Flow, Overall experience is way better&lt;/li&gt;    &lt;li&gt;Rich UI, Managed Code, Cross Browser and Cross Platform, Easy Development&lt;/li&gt;    &lt;li&gt;Great Capabilities and features for designing and developing Line of Business applications.&lt;/li&gt;    &lt;li&gt;Support with various new patters and frameworks like MVVM, MEF etc.&lt;/li&gt;    &lt;li&gt;Sandbox Architecture, Secure and lightweight framework&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Some Disadvantages :&lt;/strong&gt; I am not biased here…&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Plug-in based Architecture and dependent on Plug-in&lt;/li&gt;    &lt;li&gt;Cost involved in Tooling&lt;/li&gt;    &lt;li&gt;Not truly Cross Platform (See later section)&lt;/li&gt;    &lt;li&gt;Limitations due to Size of Plug-in and CoreCLR functionalities&lt;/li&gt;    &lt;li&gt;Learning Curve is bit high compare to HTML&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Where exactly things are getting wrong ! :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-HU_0lCbFDHc/Te0v5cyBjfI/AAAAAAAADBM/eAz4fo1F560/s1600-h/confusion%25255B5%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="confusion" border="0" alt="confusion" src="http://lh4.ggpht.com/-1kcwW_GELO4/Te0v6d6tZtI/AAAAAAAADBQ/AVqKm61IZrE/confusion_thumb%25255B3%25255D.jpg?imgmax=800" width="265" height="300" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;From IE9 and IE10 Platform Previews, People assumed that Silverlight is near death.&lt;strong&gt;Reality :&lt;/strong&gt; Silverlight 5 is announced with tons of new features,Currently its in Beta stage.&lt;/li&gt;    &lt;li&gt;Microsoft created more Hype of HTML5 while showcasing IE9 and IE10 Preview.&lt;strong&gt;Reality: &lt;/strong&gt;Yes ! Even I was confused that what they are exactly promoting Browser or HTML5 ? but the idea behind showing HTML5 is nothing but to showcase the Power of IE9 and 10 and how better they support HTML5,That’s it !&lt;/li&gt;    &lt;li&gt;HTML5 will replace many things that Silverlight is capable of giving. &lt;strong&gt;Reality : &lt;/strong&gt;Yes ! ..but Wait ! for some of the functionalities and stuff it will really be less effort,I mean what you do in 10 lines of Code in Silverlight,HTML5 might do it in 3-4 lines/Tags or vice versa !&lt;/li&gt;    &lt;li&gt;HTML5 Standardization,OOB and LOB Apps capability.&lt;strong&gt;Reality : &lt;/strong&gt;Till whatever little I heard of HTML5 and its capabilities, Nothing beats Silverlight here in first shot ! HTML5 may ease the overall process of Designing and Developing Business Apps, but the current feature set provided by Silverlight and RIA Services is far way Rich in all aspects.&lt;/li&gt;    &lt;li&gt;Silverlight OOB Vs WPF. &lt;strong&gt;Reality :&lt;/strong&gt; Both have 2 common things, XAML and C# that does not mean they are equal,One is .NET Framework of around 200+MB and one is CoreCLR of around 6MB, Should I tell more differences? I don’t think so ! WPF is more strong especially on Desktop Apps (XBAP Story we all know ! ), So Role of OOB is always different and it was never to compete or replace WPF&lt;/li&gt;    &lt;li&gt;Availability on Tablets with upcoming Windows 8.&lt;strong&gt;Reality :&lt;/strong&gt; Currently Microsoft is saying that you can design and develop Windows 8 Apps with HTML5 + JS (How they are going to give support to build native Windows apps using HTML5 + JS is also a puzzle for me) but during the course they never said that you cannot Design,Develop and Run Silverlight Apps on it or Silverlight is blocked or something. So let’s wait and let’s not waste time in thinking what will happen in near future, Since even if you think still you don’t know what will happen when.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Where HTML5 is getting ahead ? &lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;There are set of people who do not want Plug-in based development for their own reasons&lt;/li&gt;    &lt;li&gt;There are set of people (end users) who don’t wish to download any plug-in on their machines&lt;/li&gt;    &lt;li&gt;There are set of people who do not wish to invest in heavy tooling and want to get things done quickly with less cost&lt;/li&gt;    &lt;li&gt;HTML5 like its earlier versions runs smoothly in all browsers&lt;/li&gt;    &lt;li&gt;HTML5 support is available in Visual Studio 2010&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;This is big one ! :&lt;/strong&gt; You cannot view,read,watch Silverlight sites in Windows Phone 7’s IE Browser even after Mango Update but you can view,read and interact with HTML5 + JS pages on Windows Phone 7’s Browser.So if you develop Jazzy Silverlight Website and if your customer wish to view that on his Windows Phone 7..I have no words here !&lt;/li&gt;    &lt;li&gt;Silverlight presence on Windows 8 is not clear to anyone since Windows 8 itself is in very early stage,even its pre-preview stage you can say,So it will not good to comment on that at this point of time.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;My 0.02$ on this situation :&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;As I said in my earlier Silverlight Vs HTML5 post, Customer is King ! Understand his business,Understand his requirements, Match them with technologies you have and go ahead, No matter if you may have to adopt HTML5 if it comes out to be better solution.&lt;/li&gt;    &lt;li&gt;If someone says in some event that HTML5 is future or we have change or shifted our focus that does not mean that Silverlight is dead after completing that statement. So keep your cool ! Microsoft Silverlight Team is working at their best (I am Silverlight MVP and Insider, So who else know better? :) ) &lt;/li&gt;    &lt;li&gt;Do not worry about Windows 8 and what will happen, focus on your current development. Even if Windows 8 comes to market, there will be still tons and millions of apps still running on Vista and Windows 7.Everyone in the world will not get Windows 8 Tablet on Day One !&lt;/li&gt;    &lt;li&gt;Learn HTML5,See how you can combine HTML5 with JS and make simpler things more simpler and fast which might take time or painful to do in Silverlight.It will always add value to your Customer and you as well.&lt;/li&gt;    &lt;li&gt;I don’t see any other option but HTML5 if you wish your Browser App to be visible and interactive in browser of Windows Phone 7,So bit hard decision for you here.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Lastly :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Keep faith ! Silverlight is going smoothly and has very good future and it will be shining on various fronts. Take wise decisions before jumping to HTML5 from Silverlight and vice-versa.Do not blindly follow anyone’s opinion (including me) about Silverlight and HTML5. Build PoCs for HTML5 and for Silverlight 5, See what and how best you can give your Customers and End Users. Don’t get confuse between HTML5 and Silverlight,Both are way different in behavior. Feel free to buzz Silverlight MVPs, Silverlight Forums, Local Community Experts if you need any advice on Silverlight or making choice between Silverlight and HTML5, We will always help you at our best and guide you without having any bias in mind.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Why I wrote this post ?&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;This post is not written because I have no content to write on Silverlight or Windows Phone 7,I will be doing the next Technical post soon.This post is not written to defend or promote Silverlight or HTML5. This post is just written to touch some reality and ground level issues which one should keep in mind instead of getting confuse by what is going on other forums,blogs and news.&lt;/p&gt;  &lt;p&gt;This post is never final answer to that endless debate of Silverlight and HTML5 but I am sure it will always give you better views and basic points which are important in future for your decision making.&lt;/p&gt;  &lt;p&gt;These points are not already recorded or guided by someone,These are all outcome of my community interaction and what I see,feel and interact with people for Silverlight and Windows Phone 7.&lt;/p&gt;  &lt;p&gt;Hope you will think positively over this topic, Take part in Silverlight Vs HTML5 threads and discussions actively but learn out of it and do not get lost in that ! Do not let your Silverlight Weapon down ! Respect compete technologies, Learn HTML5 slowly (I might help you in that via this blog in near future),Take HTML5 change happening with world positively,Give your customer what is best&amp;#160; and make people happy !&lt;/p&gt;  &lt;p&gt;Remember ! Future is Bright because Future is Silverlight !!&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="1"&gt;*&lt;em&gt;Please note that Images and Video used in this post are from Internet found during regular search, Images have their respective copyrights and they are part of this post just for demo/representation purpose.&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/06/silverlight-html5-windows-8-where-we.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-VZvgfU5zCmI/Te0vx7hjAxI/AAAAAAAADBA/z8QDnUbJBl4/s72-c/angry-mob_thumb3.jpg?imgmax=800" height="72" width="72" /><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-7596839617449338393</guid><pubDate>Thu, 02 Jun 2011 19:33:00 +0000</pubDate><atom:updated>2011-06-03T01:03:52.917+05:30</atom:updated><title>Mango : How to use RichTextBox in Windows Phone 7.1</title><description>&lt;p&gt;Today I am going to talk about RichTextBox, I know you must be having lot of expectations from this RichTextBox. Here I will try my best to make you aware of what will work and what will not work in this short post for RichTextBox in Windows Phone 7.1&lt;/p&gt;  &lt;p&gt;RichTextBox control is not new for Silverlightians, We have already seen amazing implementation of the same in Apps developed using Silverlight on top of RichTextBox Control.It is supported in Silverlight ver. 4 &amp;amp; 5 and now in Windows Phone 7.1&lt;/p&gt;  &lt;p&gt;Use of RichTextBox is to display text in rich format which includes images and hyperlinks and also various styles of font,font family and sizes in formatted form. You can find RichTextBox control in System.Windows.dll, v2.0.50727 and you can invoke the same using Namespace System.Windows.Controls where RichTextBox Class is inherited from Control Class and it exposes various properties and events.&lt;/p&gt;  &lt;p&gt;To add RichTextBox control on your design layout of your Windows Phone 7.1 you don’t need to add any extra references and stuff however you will find that RichTextBox though its part of System.Windows.Controls does not sit in Toolbox. So all you need to do is put a Container as StackPanel and hit Control + Space and pick RichTextBox from intellisense.&lt;/p&gt;  &lt;p&gt;&amp;lt;StackPanel&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;RichTextBox … /&amp;gt;    &lt;br /&gt;&amp;lt;/StackPanel&amp;gt;&lt;/p&gt;  &lt;p&gt;It will look like this on your Designer inside Visual Studio :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-f_vJgqFfC8U/TeflYtgUroI/AAAAAAAADAQ/-8vBNI_QU1U/s1600-h/rtbxdesign%25255B12%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="rtbxdesign" border="0" alt="rtbxdesign" src="http://lh4.ggpht.com/-Tam2qSp5Vj4/TeflabgH6kI/AAAAAAAADAU/gVdrhKqARc0/rtbxdesign_thumb%25255B10%25255D.jpg?imgmax=800" width="229" height="433" /&gt;&lt;/a&gt;Please make a kind note that there is no design support for RichTextBox in Windows Phone 7.1, Also no default style present so I used Static Resource, Firstly I fumbled a lot and saw that output was not coming on the phone.&lt;/p&gt;  &lt;p&gt;Well, Before I move ahead please make note of this :&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;RichTextBox does not have Default Style&lt;/li&gt;    &lt;li&gt;It is not part of your Toolbox but also you don’t need to add any extra references,you can find it in intellisense&lt;/li&gt;    &lt;li&gt;It supports FlowDirect property so you can have RightToLeft and LeftToRight flow of text&lt;/li&gt;    &lt;li&gt;However by default it is in ReadOnly mode so at the moment with current bits you cannot play with it beyond limit&lt;/li&gt;    &lt;li&gt;Hyperlinks and Images can be part of content but since currently this control is in ReadOnly mode hence these features might not add value&lt;/li&gt;    &lt;li&gt;Indic does not getting displayed thought with Mango core platform goes as Silverlight 4. Indic simply breaks..Sorry for my friends in India for this&lt;/li&gt;    &lt;li&gt;Like Silverlight 5 Beta RichTextBox, It does not supporting any OverflowContentTarget so as to push text in next RichTextBox&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Lets now see what all we can do with this :&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;StackPanel&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;RichTextBox x:Name=&amp;quot;txtMyRTBx&amp;quot; ... &amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Paragraph&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Run FontFamily=&amp;quot;Lucida Sans Unicode&amp;quot;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Text=&amp;quot;春が来た    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 春が来た 春が来た どこに来た    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 山に来た 里に来た 野にも来た&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 花が咲く 花が咲く どこに咲く   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 山に咲く 里に咲く 野にも咲く&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 鳥がなく 鳥がなく どこでなく   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 山でなく 里でなく 野でもなく&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Paragraph&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/RichTextBox&amp;gt;    &lt;br /&gt;&amp;lt;/StackPanel&amp;gt;&lt;/p&gt;  &lt;p&gt;This will look like following on your emulator :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-vFXpdnrsZ-Q/Teflbxz1uuI/AAAAAAAADAY/BkbCahq1DzQ/s1600-h/HarugaKita%25255B11%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="HarugaKita" border="0" alt="HarugaKita" src="http://lh6.ggpht.com/-5pWjdS1rGbg/Tefld3brtUI/AAAAAAAADAc/HTHbXSzIu0M/HarugaKita_thumb%25255B9%25255D.jpg?imgmax=800" width="222" height="427" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Kindly make note that though its Non English language here or symbolic that does not mean you cannot apply styles. You can very well make such text Bold,Italic and Underline.&lt;/p&gt;  &lt;p&gt;To emphasize my bulleted point above about Language rendering capability and FlowDirection, here is a small piece of XAML to showcase Arabic text flowing from LeftToRight :&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;StackPanel&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;RichTextBox x:Name=&amp;quot;txtMyRTBx&amp;quot; ... &amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Paragraph&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Run FontSize=&amp;quot;24&amp;quot; FontFamily=&amp;quot;Lucida Sans Unicode&amp;quot;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Text=&amp;quot;مرحبا! أنا فيكرام من الهند وأنا أتعلم اللغة العربية&amp;quot; /&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Paragraph&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/RichTextBox&amp;gt;    &lt;br /&gt;&amp;lt;/StackPanel&amp;gt;&lt;/p&gt;  &lt;p&gt;and it will look like this on your emulator :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-FcET1jRhVPw/TeflfGjxXiI/AAAAAAAADAg/ljeIb9MPjTM/s1600-h/Arabicrtbx%25255B11%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Arabicrtbx" border="0" alt="Arabicrtbx" src="http://lh4.ggpht.com/-BHDpD5NFyw4/Teflg-PVanI/AAAAAAAADAk/hO9Cffi7ndo/Arabicrtbx_thumb%25255B9%25255D.jpg?imgmax=800" width="210" height="404" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;As I mentioned above that you can make Text as Bold Italic and even you can insert Hyperlink, for that here is a small piece of XAML to showcase that area :&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;StackPanel&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;RichTextBox x:Name=&amp;quot;txtMyRTBx&amp;quot; ... &amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Paragraph&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Run FontFamily=&amp;quot;Lucida Sans Unicode&amp;quot; Text=&amp;quot; Windows Phone Developer Tools 7.1 Beta makes significant strides forward, and enables you to build many classes of applications that were not previously possible. &amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Bold Foreground=&amp;quot;Yellow&amp;quot;&amp;gt;I am Bold !&amp;lt;/Bold&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Italic Foreground=&amp;quot;Green&amp;quot;&amp;gt;I am Italic ! &amp;lt;/Italic&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Underline Foreground=&amp;quot;Gold&amp;quot;&amp;gt; Its line under me !! &amp;lt;/Underline&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; A first look at the new &amp;lt;Hyperlink NavigateUri=&amp;quot;http://www.buildwindows.com&amp;quot;&amp;gt;&amp;quot;Windows 8&amp;quot;&amp;lt;/Hyperlink&amp;gt; user interface.&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Paragraph&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/RichTextBox&amp;gt;    &lt;br /&gt;&amp;lt;/StackPanel&amp;gt;&lt;/p&gt;  &lt;p&gt;and it will look like this on your emulator :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-X_hPw0eikxk/TeflivAMXBI/AAAAAAAADAo/K0fqkJnv2Cg/s1600-h/engrtbx%25255B24%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="engrtbx" border="0" alt="engrtbx" src="http://lh6.ggpht.com/-CdMGQCCgM6I/TeflkAVqrmI/AAAAAAAADAs/G53uq1bcq7Q/engrtbx_thumb%25255B22%25255D.jpg?imgmax=800" width="238" height="453" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;No wonder that we can always play with it from Code behind, Well if you want to see XAML behind this in your app then you can also use snippet like this :&lt;/p&gt;  &lt;p&gt;void MainPage_Loaded(object sender, RoutedEventArgs e)   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MessageBox.Show(txtMyRTBx.Xaml.ToString());    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;This will show the Xaml piece of code on screen like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-7Ayf_8Hf_sE/Tefll1JejzI/AAAAAAAADAw/YxvBCnitbVU/s1600-h/xamlrtbx%25255B11%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="xamlrtbx" border="0" alt="xamlrtbx" src="http://lh5.ggpht.com/-5xeIOr6LFZo/TeflnvK3oRI/AAAAAAAADA0/rDw0nC5iln8/xamlrtbx_thumb%25255B9%25255D.jpg?imgmax=800" width="241" height="432" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So that’s all I want to share on this topic at the moment,Being ReadOnly it pulls me back from lot of ideas but I am sure I will be putting up amazing and crazy samples in coming days, I don’t want to bombard you with &amp;lt;bold&amp;gt;&amp;lt;italic&amp;gt; and &amp;lt;Underline&amp;gt; etc tags in the post so I pushed some language support in between which I hope you will like it very much. I know by looking at that language you will surely give try to your local language and build app on top of it. Go ahead and enjoy every bit of this control.&lt;/p&gt;  &lt;p&gt;As I said above,I don’t want to waste your valuable time in small small snippets on &amp;lt;bold&amp;gt;&amp;lt;italic&amp;gt; so if you still want to dig down on this, you can visit this &lt;a href="http://msdn.microsoft.com/en-us/library/ee681613%28v=vs.96%29.aspx" target="_blank"&gt;MSDN Page&lt;/a&gt; where you will get all relevant stuff about usage of RichTextBox. So check that out, meanwhile I will go back and come here with some more cool stuff on Mango and Silverlight in coming week. So have a great weekend ahead with Mango and Silverlight 5 !&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;font size="1"&gt;*Note : I used Translator tools for Arabic and Japanese demos here, I know Japanese because I learn that for 2 years but I do not know anyting about Arabic, So if you find the Arabic or Japanese Text in above demo irrelevant or not grammatically correct then please forgive me since its only used for demonstration purpose.&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/06/mango-how-to-use-richtextbox-in-windows.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-Tam2qSp5Vj4/TeflabgH6kI/AAAAAAAADAU/gVdrhKqARc0/s72-c/rtbxdesign_thumb%25255B10%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-1660954495637547915</guid><pubDate>Fri, 27 May 2011 18:05:00 +0000</pubDate><atom:updated>2011-05-27T23:35:50.351+05:30</atom:updated><title>Mango : DeviceNetworkInformation in Windows Phone 7.1</title><description>&lt;p&gt;Hope you already downloaded Windows Phone 7.1 Mango Beta Tools as I mentioned in my last post &lt;a href="http://pendsevikram.blogspot.com/2011/05/mango-whats-new-in-windows-phone-71.html" target="_blank"&gt;here&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Today I am going to talk about DeviceNetworkInformation API with small demo. This API is exposed with the new toolset and very useful especially when you need to check various things related to Mobile Operator. Let’s have a look in more depth about this API.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What this API does ? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;This API helps you to identify and know more about Network capabilities by which one can identify Availability of Network, Availability of Roaming Data and WiFi Network etc. How to make use of this in your Windows Phone 7.1 app its totally your call and it is dependent on your Application Requirement. So I will leave this “Where to use” part to you.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Structure of DeviceNetworkInformation API :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;DeviceNetworkInformation is a static class insider Microsoft.Phone.Net.NetworkInformation namespace having few boolean properties and ResolveHostNameAsync method and NetworkAvailabilityChanged. Since all the properties are static you don’t need to create instance. Properties are &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;CellularMobileOperator     &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;IsCellularDataEnabled     &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;IsCellularDataRoamingEnabled     &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;IsNetworkAvailable     &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;IsWiFiEnabled&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;It resides in Microsoft.Phone.dll(v2.0.50727) which you can find in WindowsPhone71 directory.&lt;/p&gt;  &lt;p&gt;General Structure is like this :&lt;/p&gt;  &lt;p&gt;namespace Microsoft.Phone.Net.NetworkInformation   &lt;br /&gt;{&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; [SecuritySafeCritical]    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public static class DeviceNetworkInformation    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static string CellularMobileOperator { get; }    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static bool IsCellularDataEnabled { get; }&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static bool IsCellularDataRoamingEnabled { get; }&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static bool IsNetworkAvailable { get; }&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static bool IsWiFiEnabled { get; }&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static event EventHandler&amp;lt;NetworkNotificationEventArgs&amp;gt; NetworkAvailabilityChanged;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static void ResolveHostNameAsync(DnsEndPoint endPoint, NameResolutionCallback callback, object context);   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static void ResolveHostNameAsync(DnsEndPoint endPoint, NetworkInterfaceInfo networkInterface, NameResolutionCallback callback, object context);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;}    &lt;br /&gt;Now Let’s build one small App on top of this API, So here are steps :&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;How it will look like :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-YsrY3LoVcYg/Td_nxlLHMzI/AAAAAAAAC_g/kipyERhh3gY/s1600-h/NetworkInfo%25255B11%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="NetworkInfo" border="0" alt="NetworkInfo" src="http://lh4.ggpht.com/-TMxk7tUEqlo/Td_nzJKsGfI/AAAAAAAAC_k/7MI2gpeLFLU/NetworkInfo_thumb%25255B9%25255D.jpg?imgmax=800" width="222" height="427" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="1"&gt;*&lt;em&gt;Please note that Images used in this post are from Internet found during regular search, Images have their respective copyrights and they are part of this post just for demo purpose.&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;!--TitlePanel contains the name of the application and page title--&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;StackPanel x:Name=&amp;quot;TitlePanel&amp;quot; Grid.Row=&amp;quot;0&amp;quot; Margin=&amp;quot;12,17,0,28&amp;quot;&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock x:Name=&amp;quot;ApplicationTitle&amp;quot; Text=&amp;quot;Explore .NET With Vikram Pendse&amp;quot; Style=&amp;quot;{StaticResource PhoneTextNormalStyle}&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock x:Name=&amp;quot;PageTitle&amp;quot; Text=&amp;quot;Network Info&amp;quot; Margin=&amp;quot;9,-7,0,0&amp;quot; Style=&amp;quot;{StaticResource PhoneTextTitle1Style}&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/StackPanel&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;!--ContentPanel - place additional content here--&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Grid x:Name=&amp;quot;ContentPanel&amp;quot; Grid.Row=&amp;quot;1&amp;quot; Margin=&amp;quot;12,0,12,0&amp;quot;&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image Source=&amp;quot;GSMNetwork.jpg&amp;quot; Opacity=&amp;quot;0.3&amp;quot; Height=&amp;quot;607&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;-2,-6,0,0&amp;quot; Name=&amp;quot;image1&amp;quot; Stretch=&amp;quot;Fill&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;458&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtMobileOptr&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;0,104,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtNetworkAvail&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;0,158,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtCDEnable&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;0,212,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtRoaming&amp;quot; Height=&amp;quot;30&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;2,269,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;448&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock FontWeight=&amp;quot;Bold&amp;quot; x:Name=&amp;quot;txtWiFi&amp;quot; Height=&amp;quot;56&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;0,325,0,0&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;450&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Image x:Name=&amp;quot;imgWiFi&amp;quot; Height=&amp;quot;150&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; Margin=&amp;quot;228,431,0,0&amp;quot; Stretch=&amp;quot;Fill&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot; Width=&amp;quot;200&amp;quot; /&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Grid&amp;gt;&lt;/p&gt;  &lt;p&gt;So on designer layout in Visual Studio it will look like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-dz0SeqeQvQo/Td_n0WqXyUI/AAAAAAAAC_o/5lfqT8gCkIk/s1600-h/NetworkDesign%25255B12%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="NetworkDesign" border="0" alt="NetworkDesign" src="http://lh5.ggpht.com/-07upi05lzu0/Td_n1C9N9oI/AAAAAAAAC_s/N1-xepsI6mw/NetworkDesign_thumb%25255B10%25255D.jpg?imgmax=800" width="265" height="386" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;void MainPage_Loaded(object sender, RoutedEventArgs e)   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; GetDeviceNetworkInformation();    &lt;br /&gt;}    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;public void GetDeviceNetworkInformation()   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtMobileOptr.Text = &amp;quot;Your Mobile Operator is : &amp;quot; + DeviceNetworkInformation.CellularMobileOperator.ToString();    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (DeviceNetworkInformation.IsNetworkAvailable)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtNetworkAvail.Text = &amp;quot;Network is Available&amp;quot;;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; else    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; txtNetworkAvail.Text = &amp;quot;Network is Not Available&amp;quot;;&lt;/p&gt;  &lt;p&gt;// Similarly you can get and set other properties to Textblocks&lt;/p&gt;  &lt;p&gt;}&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Output :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-rlNRlCtG0jM/Td_n2iyqs7I/AAAAAAAAC_w/kC73uboNl0Q/s1600-h/NetworkInfo%25255B24%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="NetworkInfo" border="0" alt="NetworkInfo" src="http://lh4.ggpht.com/-XLJ9U35auS4/Td_n4Nngk-I/AAAAAAAAC_0/bl008amHL0s/NetworkInfo_thumb%25255B20%25255D.jpg?imgmax=800" width="243" height="416" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-jWgNwPUkOwQ/Td_n400Qk2I/AAAAAAAAC_4/57r9kTPsRqs/s1600-h/NetworkZoom%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="NetworkZoom" border="0" alt="NetworkZoom" src="http://lh4.ggpht.com/-OVOHBPJtI7w/Td_n7JRElOI/AAAAAAAAC_8/5wJYb-9VZxQ/NetworkZoom_thumb%25255B7%25255D.jpg?imgmax=800" width="240" height="161" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now if you need to make it more Jazzy you can put icons and make it more attractive and friendly. For example, I have done for Wi Fi, I am showing Wi Fi enable – disable by displaying PNG file like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-7kmdPPkVDIM/Td_n8Wf0MxI/AAAAAAAADAA/MKkHbuP3O-s/s1600-h/NetworkWiFiEnable%25255B10%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="NetworkWiFiEnable" border="0" alt="NetworkWiFiEnable" src="http://lh4.ggpht.com/-CRH3G34bPkI/Td_n9fN74UI/AAAAAAAADAE/PiS-Vu9GQPw/NetworkWiFiEnable_thumb%25255B8%25255D.jpg?imgmax=800" width="187" height="359" /&gt;&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;a href="http://lh5.ggpht.com/-5yQAXCaS6Fc/Td_n-BmRvpI/AAAAAAAADAI/kDk3tQq2Fq8/s1600-h/NetworkWiFiDisable%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="NetworkWiFiDisable" border="0" alt="NetworkWiFiDisable" src="http://lh3.ggpht.com/-Io1IMOVM4Lg/Td_n_B43LwI/AAAAAAAADAM/76yatEkhwYc/NetworkWiFiDisable_thumb%25255B7%25255D.jpg?imgmax=800" width="185" height="356" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I know the images used here are bit dull,but idea is to show how you can enhance the app by such ideas and code for this is very simple like this :&lt;/p&gt;  &lt;p&gt;if (DeviceNetworkInformation.IsWiFiEnabled)   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; txtWiFi.Text = &amp;quot;You are connected to WiFi Network&amp;quot;;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Uri uri = new Uri(@&amp;quot;wificon.png&amp;quot;, UriKind.Relative);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; ImageSource imgSource = new BitmapImage(uri);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; imgWiFi.Source = imgSource;    &lt;br /&gt;}    &lt;br /&gt;else    &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; txtWiFi.Text = &amp;quot;You are not connected to WiFi Network,Check your WiFi Settings and Retry&amp;quot;;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Uri uri = new Uri(@&amp;quot;wifidiscon.png&amp;quot;, UriKind.Relative);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; ImageSource imgSource = new BitmapImage(uri);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; imgWiFi.Source = imgSource;    &lt;br /&gt;}    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;So this is how you can make use of DeviceNetworkInformation in your Windows Phone 7.1 Application, As I mentioned earlier that how you will use this is totally your choice and depends on business scenario, But next time when you need all Network related information inside your app, you don’t need to search, The solution is already with you with this API. See you then with more good stuff on Mango aka Windows Phone 7.1 in coming posts.Keep buzzing over emails and in comment section as usual.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/05/mango-devicenetworkinformation-in.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-TMxk7tUEqlo/Td_nzJKsGfI/AAAAAAAAC_k/7MI2gpeLFLU/s72-c/NetworkInfo_thumb%25255B9%25255D.jpg?imgmax=800" height="72" width="72" /><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-1171596586203241598</guid><pubDate>Wed, 25 May 2011 18:34:00 +0000</pubDate><atom:updated>2011-05-26T19:38:10.165+05:30</atom:updated><title>Mango : What’s new in Windows Phone 7.1</title><description>&lt;p&gt;Just back from lovely Microsoft MVP Open Day 2011 at Hyderabad,Andhra Pradesh in India conducted at Microsoft India Development Center (Microsoft’s next biggest center after Redmond and some amazing people work here !) We always see and talk about success stories of Redmond people, but take a time and see and check out what an amazing contribution Indian folks doing at Microsoft IDC. Hats off ! and hearties congratulations to them and Microsoft Windows Phone 7 Team.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uWueLlLrTdY/Td1Lcj5lU0I/AAAAAAAAC-w/x9ZdHr5mNv8/s1600-h/Group%20Photo%20%40%20MS%20IDC%5B12%5D.jpg"&gt;&lt;img style="background-image: none; border: 0px none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" title="Group Photo @ MS IDC" alt="Group Photo @ MS IDC" src="http://lh3.ggpht.com/_uWueLlLrTdY/Td1LdtGLnjI/AAAAAAAAC-0/8Ev4t6vwwVQ/Group%20Photo%20%40%20MS%20IDC_thumb%5B10%5D.jpg?imgmax=800" width="437" border="0" height="251" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;[Mighty Indian MVPs at Microsoft India Development Center,India]&lt;/p&gt;  &lt;p&gt;Whatsoever ! Mango is King of all fruits and India is the only best place in universe to get it ! Hope you can read between the lines !&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Mango :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Codename “Mango” is a revolutionary and major update of Windows Phone 7 Platform.&lt;/p&gt;  &lt;p&gt;The Windows Phone team announced the release of the Windows Phone Developer Tools for Mango yesterday. We all eagerly waiting for Mango and finally it comes to us as Beta Tools in first step.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download Tools :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;From Web : &lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=77586864-ab15-40e1-bc38-713a95a56a05&amp;amp;displaylang=en" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=77586864-ab15-40e1-bc38-713a95a56a05&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=77586864-ab15-40e1-bc38-713a95a56a05&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;ISO :&lt;/p&gt;  &lt;p&gt;&lt;a title="http://go.microsoft.com/fwlink/?LinkID=219401" href="http://go.microsoft.com/fwlink/?LinkID=219401"&gt;http://go.microsoft.com/fwlink/?LinkID=219401&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Few very important points to remember :&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;As per installation notes:Windows Server®,Windows® XP and Virtual machines are not supported.&lt;/li&gt;    &lt;li&gt;Visual Basic is now fully integrated into Windows Phone Developer Tools 7.1 Beta so you must uninstall Visual Basic for Windows Phone Developer Tools 7.0 if you have installed already.&lt;/li&gt;    &lt;li&gt;Windows Phone 7.1 Tools will allow you to create Windows Phone 7.0 Apps, Target platform feature like we have in Silverlight, Check this :&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_uWueLlLrTdY/Td1LeotQQAI/AAAAAAAAC-4/X4F2UijRwdY/s1600-h/Platform%5B18%5D.jpg"&gt;&lt;img style="background-image: none; border: 0px none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px;" title="Platform" alt="Platform" src="http://lh5.ggpht.com/_uWueLlLrTdY/Td1LfdaCRUI/AAAAAAAAC-8/QsLU0VLSi6Q/Platform_thumb%5B16%5D.jpg?imgmax=800" width="431" border="0" height="219" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Application created with Windows Phone 7.1 will not run on NoDo Device, so hold your breath till the actual update hits the phone,Emulator is so powerful so keep your pain points aside.&lt;/li&gt;    &lt;li&gt;It is not so recommended to use Windows Phone 7.1 Tools to create Windows Phone 7.0 apps for Marketplace.It may break badly.&lt;/li&gt;    &lt;li&gt;Installed bits might hit Expression Blend 4, I am personally investigating this issue so not much I can share at the moment.See this what happened to my Blend 4 :&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_uWueLlLrTdY/Td1LgeelPSI/AAAAAAAAC_A/7KHsAE6JMr0/s1600-h/Blend4_Mess_Mango%5B9%5D.jpg"&gt;&lt;img style="background-image: none; border: 0px none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px;" title="Blend4_Mess_Mango" alt="Blend4_Mess_Mango" src="http://lh3.ggpht.com/_uWueLlLrTdY/Td1LhBcJvRI/AAAAAAAAC_E/YyTsIeh2XbE/Blend4_Mess_Mango_thumb%5B7%5D.jpg?imgmax=800" width="413" border="0" height="186" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;I am running Windows 7 x64 Ultimate with Visual Studio 2010 Ultimate along with SP1, I did not uninstalled anything and seems that my Silverlight 5 Beta bits are working well, I will share more to you if I find something is breaking up. But with this info I think you are good to go.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What’s New in Mango : &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Some of the top features :&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Silverlight 4 as core platform    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;IE9 web browser control    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Networking / sockets for communications    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Local SQL database for structured storage    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Live Tile enhancements: use of back of tiles and ability to &lt;/li&gt;    &lt;li&gt;update Live Tiles locally    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Deep linking into apps from notifications and Live Tiles    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Background processing    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;New profiler and emulator for testing    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Use of Silverlight + XNA together    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Additional sensors; direct camera access, compass &amp;amp; gyro    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Fast application switching    &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Access to calendar and contacts    &lt;br /&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;There is actually a big list and instead of giving you more neck pain to scroll and read, I will suggest you to visit following link of MSDN where all new information about Windows Phone 7.1 is available.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/ff637516.aspx" href="http://msdn.microsoft.com/en-us/library/ff637516.aspx"&gt;http://msdn.microsoft.com/en-us/library/ff637516.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Already downloaded tools and want to check stuff ? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;This is my first post on Mango so I will be dropping few good examples here from next post, till the time if you want you can check few cool Code samples on Windows Phone 7.1 here :&lt;/p&gt;  &lt;p&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/ff431744%28v=VS.92%29.aspx" href="http://msdn.microsoft.com/en-us/library/ff431744%28v=VS.92%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/ff431744%28v=VS.92%29.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Some New Project Templates with Windows Phone 7.1 :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Check this out new templates as :&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Windows Phone 3D Graphics Application&lt;/li&gt;    &lt;li&gt;Windows Phone Audio Playback Agent&lt;/li&gt;    &lt;li&gt;Windows Phone Audio Streaming Agent&lt;/li&gt;    &lt;li&gt;Windows Phone Task Scheduler Agent&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uWueLlLrTdY/Td1Lil-xnaI/AAAAAAAAC_I/hiV_9LYqEzQ/s1600-h/Mango_For_FB%5B10%5D.jpg"&gt;&lt;img style="background-image: none; border: 0px none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px;" title="Mango_For_FB" alt="Mango_For_FB" src="http://lh6.ggpht.com/_uWueLlLrTdY/Td1Lj5h1ChI/AAAAAAAAC_M/4pUXKrDJW4k/Mango_For_FB_thumb%5B8%5D.jpg?imgmax=800" width="452" border="0" height="299" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I will soon take a stab at each one and explain it to you what each one does and when to use what template.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;New Look of Windows Phone 7.1 Emulator :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The new emulator is amazing and gives feel of Mango Update on Phone, In coming days I will be surely giving more insights on that but to start with take a look how it helps you to test your location based apps and Acceleronometer apps :&lt;/p&gt;  &lt;p&gt;1. Acceleronometer Support :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uWueLlLrTdY/Td1LlAfpnfI/AAAAAAAAC_Q/JDdpLxbThNQ/s1600-h/Emulator1%5B10%5D.jpg"&gt;&lt;img style="background-image: none; border: 0px none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px;" title="Emulator1" alt="Emulator1" src="http://lh6.ggpht.com/_uWueLlLrTdY/Td1Ll4cxqbI/AAAAAAAAC_U/GJ6Sq_FZf1s/Emulator1_thumb%5B8%5D.jpg?imgmax=800" width="458" border="0" height="334" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2. Location Support :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uWueLlLrTdY/Td1LnRikgUI/AAAAAAAAC_Y/Q4huRvT_kUI/s1600-h/Emulator2%5B11%5D.jpg"&gt;&lt;img style="background-image: none; border: 0px none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px;" title="Emulator2" alt="Emulator2" src="http://lh4.ggpht.com/_uWueLlLrTdY/Td1LoejJLbI/AAAAAAAAC_c/pKQt-B7c8Js/Emulator2_thumb%5B9%5D.jpg?imgmax=800" width="456" border="0" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;So that's all I have to say in this quick post on Mango aka Windows Phone 7.1 Beta Tools, Hope you got the glimpse of what coming in big way ahead, I will be posting few good stuff in coming days, Till the time you guys download bits and get ready,I’ll be back !&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;</description><link>http://pendsevikram.blogspot.com/2011/05/mango-whats-new-in-windows-phone-71.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_uWueLlLrTdY/Td1LdtGLnjI/AAAAAAAAC-0/8Ev4t6vwwVQ/s72-c/Group%20Photo%20%40%20MS%20IDC_thumb%5B10%5D.jpg?imgmax=800" height="72" width="72" /><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-2098940912407079914</guid><pubDate>Sun, 15 May 2011 16:02:00 +0000</pubDate><atom:updated>2011-05-15T21:32:49.369+05:30</atom:updated><title>Multiple Window Support in Silverlight 5</title><description>&lt;p&gt;So much talks about Multiple Window support in Silverlight 5 which made available in beta version around various Silverlight blogs and forums.I am putting my few thoughts here on this feature.&lt;/p&gt;  &lt;p&gt;The basic idea behind this feature is host stuff across multiple windows,remember the good old days of MDI forms in Visual Basic 6 days? well its not I will say replica of but its of similar kinds.&lt;/p&gt;  &lt;p&gt;The bookish meaning of Multiple Window support is :&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;The ability to create an application that can have additional top level windows other than the single window that's opened for a Silverlight Out of Browser application&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Game starts with namespace System.Windows.Window and it looks like following :&lt;/p&gt;  &lt;p&gt;#region Assembly System.Windows.dll, v4.0.30319   &lt;br /&gt;// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\System.Windows.dll    &lt;br /&gt;#endregion&lt;/p&gt;  &lt;p&gt;using System;   &lt;br /&gt;using System.ComponentModel;    &lt;br /&gt;using System.Runtime.InteropServices;    &lt;br /&gt;using System.Security;&lt;/p&gt;  &lt;p&gt;namespace System.Windows   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; // Summary:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; //&amp;#160;&amp;#160;&amp;#160;&amp;#160; Represents an out-of-browser application window.    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public sealed class Window : DependencyObject    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; {&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //… some code&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;  &lt;p&gt;}&lt;/p&gt;  &lt;p&gt;It’s a &lt;strong&gt;sealed &lt;/strong&gt;class inherited from Dependency Object and as class level xml comment shouts, its an &lt;strong&gt;OOB and Work only in Elevated Trust Applications.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uWueLlLrTdY/Tc_5B-BeKNI/AAAAAAAAC-I/evCTezb7Deo/s1600-h/elevtrust%5B14%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="elevtrust" border="0" alt="elevtrust" src="http://lh6.ggpht.com/_uWueLlLrTdY/Tc_5Cu_oUpI/AAAAAAAAC-M/UZvn7_Y9aUQ/elevtrust_thumb%5B12%5D.jpg?imgmax=800" width="408" height="126" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You can achieve Multiple Window like this :&lt;/p&gt;  &lt;p&gt;Window tearOffWindow = new Window();   &lt;br /&gt;//Once a Window has been instantied, one can    &lt;br /&gt;//set its initial property values&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;tearOffWindow.Height = 300;   &lt;br /&gt;tearOffWindow.Width = 400;    &lt;br /&gt;tearOffWindow.Top = 24;    &lt;br /&gt;tearOffWindow.Left = 30;    &lt;br /&gt;tearOffWindow.Title = &amp;quot;Tear Off Stack Panel&amp;quot;;    &lt;br /&gt;tearOffWindow.Content = mnp.movUIElement; /*Set Content to someFrameworkElement Obj*/;&lt;/p&gt;  &lt;p&gt;//Once all the initial properties have   &lt;br /&gt;//been set, set the Visibility property    &lt;br /&gt;//to 'Visible' to display the Window    &lt;br /&gt;tearOffWindow.Visibility = Visibility.Visible;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;It will look something like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_uWueLlLrTdY/Tc_5DWU1jNI/AAAAAAAAC-Q/B3e9pRW6Mfg/s1600-h/TearCapture%5B10%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="TearCapture" border="0" alt="TearCapture" src="http://lh3.ggpht.com/_uWueLlLrTdY/Tc_5EKdPrtI/AAAAAAAAC-U/8AVz7e_KnWI/TearCapture_thumb%5B8%5D.jpg?imgmax=800" width="442" height="291" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Like this you can create instance of window and put stuff on that whatever you feel appropriate to your application or per requirement. Note that once you close main window another window instance will be closed as well. Its very ideal feature for many Line of Business applications as well. So you should give try to this one today. I know there will be lot more can be done with this,but for the moment I am restricting myself,In upcoming posts I will share more with some demo apps and how you can use this feature at best.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Issues I observed with Multiple Window :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;1. Background color/Background property Mystery : &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;While working I came across that there does not exists any Background property via code which I find strange personally.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_uWueLlLrTdY/Tc_5FDfq9bI/AAAAAAAAC-Y/I0ofpvX9SIc/s1600-h/TearOff_Error%5B10%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="TearOff_Error" border="0" alt="TearOff_Error" src="http://lh5.ggpht.com/_uWueLlLrTdY/Tc_5F7oCmOI/AAAAAAAAC-c/XBKRdtgyKnM/TearOff_Error_thumb%5B8%5D.jpg?imgmax=800" width="451" height="187" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;2. “Black” Background color :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;If you do not set any background color to your UIElement which you are going to tear off,It applies Black color automatically. Some videos and blogs says this is “By default” or “Automatic” but I don’t believe on this,how it can be “by default” since if I don’t apply any background color it should be whitish as usual.This I personally find very strange.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uWueLlLrTdY/Tc_5Gj-nyeI/AAAAAAAAC-g/u8xqEd42lok/s1600-h/BugTearCapture%5B9%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="BugTearCapture" border="0" alt="BugTearCapture" src="http://lh3.ggpht.com/_uWueLlLrTdY/Tc_5HRaObII/AAAAAAAAC-k/1GJBA793tWU/BugTearCapture_thumb%5B7%5D.jpg?imgmax=800" width="402" height="324" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;3. Setting WindowStyle as “BorderlessRoundCornersWindow” :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Though it works for parent window well,I will not say this as bug or limitation but if its not expected then they should have thrown compile time error to prompt that it cannot be mixed with Multiple Window support feature but it throws exception here&amp;#160; :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uWueLlLrTdY/Tc_5JLNDTLI/AAAAAAAAC-o/TLF515HgWI0/s1600-h/TearOff_Border_Error%5B14%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="TearOff_Border_Error" border="0" alt="TearOff_Border_Error" src="http://lh5.ggpht.com/_uWueLlLrTdY/Tc_5KFu98NI/AAAAAAAAC-s/YVdjPGd9BlA/TearOff_Border_Error_thumb%5B12%5D.jpg?imgmax=800" width="458" height="298" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Well, despite of these small issues which I think either might be resolve in coming bits or can be carry ahead ignoring but I feel that I should share this with you so that while designing app based on this Multiple Window feature you will be in good position with possible problems and solution.&lt;/p&gt;  &lt;p&gt;I will soon post more deep dive article with some more good examples and features but now my mind is in Hyderabad city where 100+ South Asian MVPs are coming together for Microsoft MVP Open Day 2011 .. I will be traveling there for few days..So see you soon with more good stuff from May end onwards.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/05/multiple-window-support-in-silverlight.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_uWueLlLrTdY/Tc_5Cu_oUpI/AAAAAAAAC-M/UZvn7_Y9aUQ/s72-c/elevtrust_thumb%5B12%5D.jpg?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-8940068521087180270</guid><pubDate>Thu, 21 Apr 2011 18:51:00 +0000</pubDate><atom:updated>2011-04-22T00:21:42.278+05:30</atom:updated><title>Silverlight 5 : Multiple Click Support aka ClickCount</title><description>&lt;p&gt;In the last article I spend some time with you in discussing some Text related enhancements for Developers in Silverlight 5. Today I am going to discuss one more feature of Silverlight 5 in this short post.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Requirement : &lt;/strong&gt;We need a mechanism to identify count of multiple mouse clicks made by user.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Scenario : &lt;/strong&gt;Some over enthusiast end users,if the transaction/process is not happening then they always hit button/any other UI control with high enthusiasm (or sometimes anger) several amount of time, Some time these unnecessary clicks becomes headache and sometimes it is useful to trigger some business function as well. So there is good side and bad side of this.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What Silverlight 5 is offering to us? : &lt;/strong&gt;Silverlight 5 bits are now giving support/mechanism to identify Multiple Clicks made by user.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;How it does that? : &lt;/strong&gt;Inside your class MouseButtonEventArgs which is sealed,exposes one public property of type Integer like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uWueLlLrTdY/TbB8hu7KVoI/AAAAAAAAC80/EF5WALxgQlM/s1600-h/ClickFunda%5B12%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ClickFunda" border="0" alt="ClickFunda" src="http://lh6.ggpht.com/_uWueLlLrTdY/TbB8iQjUX6I/AAAAAAAAC84/6vhMQsKIpdc/ClickFunda_thumb%5B10%5D.jpg?imgmax=800" width="455" height="287" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This ClickCount property gives us number of hits made by user via Mouse.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Cool..any sample ? :&lt;/strong&gt; Here you go !&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Grid x:Name=&amp;quot;LayoutRoot&amp;quot; Background=&amp;quot;White&amp;quot;&amp;gt;   &lt;br /&gt;&amp;lt;TextBlock x:Name=&amp;quot;MouseCount&amp;quot; FontSize=&amp;quot;20&amp;quot; Margin=&amp;quot;5,5,5,5&amp;quot; MouseLeftButtonDown=&amp;quot;MouseCount_MouseLeftButtonDown&amp;quot; /&amp;gt;&amp;#160;&amp;#160; &amp;lt;/Grid&amp;gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;C# :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;void MainPage_Loaded(object sender, RoutedEventArgs e)   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MouseCount.Text = &amp;quot;This Place will show how many times you play with Mouse !&amp;quot;;    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;private void MouseCount_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Checks the number of clicks.    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (e.ClickCount == 1)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Single Click occurred.    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MouseCount.Text = String.Empty;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MouseCount.Text = &amp;quot;You clicked Mouse Once !&amp;quot;;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (e.ClickCount == 2)   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Double Click occurred.    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MouseCount.Text = String.Empty;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MouseCount.Text = &amp;quot;You clicked Mouse Twice !&amp;quot;;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (e.ClickCount &amp;gt;= 3)   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Triple Click occurred.    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MouseCount.Text = String.Empty;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; MouseCount.Text = &amp;quot;You clicked Mouse more than 2 times !&amp;quot;;    &lt;br /&gt;}}    &lt;br /&gt;Remember e.ClickCount is a key ! it will give you number of clicks.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Will it work? :&lt;/strong&gt; Yes ! Here is the output starting from no click to more than 2 clicks …&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uWueLlLrTdY/TbB8jU4leWI/AAAAAAAAC88/pDRjXGZkV3w/s1600-h/ItemClick%5B9%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ItemClick" border="0" alt="ItemClick" src="http://lh3.ggpht.com/_uWueLlLrTdY/TbB8kImeYUI/AAAAAAAAC9A/VYsSvcwH6fQ/ItemClick_thumb%5B7%5D.jpg?imgmax=800" width="445" height="103" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uWueLlLrTdY/TbB8lEdSdUI/AAAAAAAAC9E/569Atr5p6iA/s1600-h/ItemClick1%5B10%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ItemClick1" border="0" alt="ItemClick1" src="http://lh6.ggpht.com/_uWueLlLrTdY/TbB8mG7ZXBI/AAAAAAAAC9I/MIITaVGaTgc/ItemClick1_thumb%5B8%5D.jpg?imgmax=800" width="447" height="103" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uWueLlLrTdY/TbB8m2vjagI/AAAAAAAAC9M/-p5g_miIutM/s1600-h/ItemClick2%5B9%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ItemClick2" border="0" alt="ItemClick2" src="http://lh3.ggpht.com/_uWueLlLrTdY/TbB8nqOMZpI/AAAAAAAAC9Q/6ya6uxXpT7Q/ItemClick2_thumb%5B7%5D.jpg?imgmax=800" width="444" height="103" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uWueLlLrTdY/TbB8oIOCCuI/AAAAAAAAC9U/yxPh-_euxnM/s1600-h/ItemClick3%5B9%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ItemClick3" border="0" alt="ItemClick3" src="http://lh4.ggpht.com/_uWueLlLrTdY/TbB8pBKbubI/AAAAAAAAC9Y/iH2fJGRNBzM/ItemClick3_thumb%5B7%5D.jpg?imgmax=800" width="443" height="105" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Wait ! All that glitters is not Gold !! :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;My dear friend and fellow Silverlight MVP Kunal Chowdhury written a quick article on “Issues with Multiple Clicks in Silverlight 5”, so read that &lt;a href="http://www.kunal-chowdhury.com/2011/04/issues-with-multiple-click-clickcount.html" target="_blank"&gt;here&lt;/a&gt; and get to know how this e.ClickCounts make life bit difficult for Developers like you and me.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What’s the Problem ? – Debugging ! :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;If you observe the code snippet above and article by Kunal which I shared above,you will find that there is a great trouble to your brain while debugging since despite of e.ClickCount &amp;gt; 1 still it always hits e.ClickCount = 1 condition and comes out of the game and Game is over for us since we really can’t debug and see the stuff for e.ClickCount &amp;gt; 1 and here we see the sad story !&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Is it a Bug? what can be done to avoid this ? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Well, As a MVP I see it as functional issue rather than calling it as Bug since functionality is working but issue is coming only while debugging so I feel little awkward to call it as Bug !&lt;/p&gt;  &lt;p&gt;Condition to your Breakpoint is the only option I find it suitable at this particular moment unless someone from Microsoft don’t come up with something better to avoid this debug issue. So if I want to check / debug and see some stuff for e.ClickCount then how will I achieve this? .. well all you need to do is just right click and click on Condition like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_uWueLlLrTdY/TbB8p7VGlcI/AAAAAAAAC9c/FwPZfZlCKgQ/s1600-h/ItemCondition1%5B9%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ItemCondition1" border="0" alt="ItemCondition1" src="http://lh3.ggpht.com/_uWueLlLrTdY/TbB8qzgjwVI/AAAAAAAAC9g/_f23uBLqms4/ItemCondition1_thumb%5B7%5D.jpg?imgmax=800" width="428" height="290" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_uWueLlLrTdY/TbB8rkXDL3I/AAAAAAAAC9k/fL7nrAr8-nc/s1600-h/ItemCondition2%5B8%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ItemCondition2" border="0" alt="ItemCondition2" src="http://lh3.ggpht.com/_uWueLlLrTdY/TbB8seHNOrI/AAAAAAAAC9o/kX845r1mTfg/ItemCondition2_thumb%5B6%5D.jpg?imgmax=800" width="438" height="256" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_uWueLlLrTdY/TbB8tI2DHPI/AAAAAAAAC9s/BGEL9PhGcWI/s1600-h/ItemCondition3%5B11%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ItemCondition3" border="0" alt="ItemCondition3" src="http://lh4.ggpht.com/_uWueLlLrTdY/TbB8t4ZAvNI/AAAAAAAAC9w/aZG2dKbso_A/ItemCondition3_thumb%5B9%5D.jpg?imgmax=800" width="442" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;      &lt;p&gt;Above screen shows how easy is our life ! So now be ready to debug all that e.ClickCount &amp;gt; 1 stuff which was giving you trouble earlier. Remember that even for Switch..Case it’s the same issue so don’t be under impression that problem will not occur with Switch..Case.&lt;/p&gt;  &lt;p&gt;One you done with adding condition, it will be hitting your breakpoint and executing appropriate condition on basis of e.ClickCount value and you can see that output like this :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uWueLlLrTdY/TbB8usXOCXI/AAAAAAAAC90/yd3bJiyBQiI/s1600-h/ItemCondition4%5B8%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ItemCondition4" border="0" alt="ItemCondition4" src="http://lh6.ggpht.com/_uWueLlLrTdY/TbB8vTAAC6I/AAAAAAAAC94/yr9B6Txn-bk/ItemCondition4_thumb%5B6%5D.jpg?imgmax=800" width="459" height="163" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So this is bit schoolish solution but it works in such tricky conditions and we can survive for the time being.&lt;/p&gt;  &lt;p&gt;Well,Take the positive part of this wonderful feature and how it is helpful in real business scenario, I personally still have no clue if this is officially marked as “Bug” or not,but this is what came to my observation when I was playing with the bits, I hope in coming RTW bits something will come up for this, Well enough for today and some more such nice features and funny tricky solutions and scenarios are coming up in my upcoming posts,So stay tuned !&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/04/silverlight-5-multiple-click-support.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_uWueLlLrTdY/TbB8iQjUX6I/AAAAAAAAC84/6vhMQsKIpdc/s72-c/ClickFunda_thumb%5B10%5D.jpg?imgmax=800" height="72" width="72" /><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-6779789788160582605</guid><pubDate>Tue, 19 Apr 2011 19:46:00 +0000</pubDate><atom:updated>2011-04-20T01:16:57.893+05:30</atom:updated><title>Silverlight 5 : Improvements in Text</title><description>&lt;p&gt;I hope you must have installed Silverlight 5 Beta bits on your machine and wondering what’s new you got in those bits.Well, there are lots of new things hidden inside which are worth exploring.I am doing the same with equal passion and enthusiasm.&lt;/p&gt;  &lt;p&gt;Today in this little blog post I am going to talk about some smart improvements for Text.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Character Spacing :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;CharacterSpacing is a property of type Integer (System.Int32),If you refer official Silverlight 5 documentation,you will find the definition of CharacterSpacing as :&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Gets or sets the distance between characters of text in the control measured in 1000ths of the font size&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;font color="#666666"&gt;Let me add some more information here as well since we are talking about stuff from Document. For those who are new to Silverlight 5 documentation you will see following icon :&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uWueLlLrTdY/Ta3mjjfRZNI/AAAAAAAAC8E/wj3P05Obl50/s1600-h/txticon%5B15%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="txticon" border="0" alt="txticon" src="http://lh6.ggpht.com/_uWueLlLrTdY/Ta3mkT-vXxI/AAAAAAAAC8I/WQHuJXZLH5E/txticon_thumb%5B11%5D.jpg?imgmax=800" width="150" height="123" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;In front of many properties you will see such icons, well left side of the icon represents the property as Public property and right side of the icon represents that the property is supported by Silverlight on Windows Phone. Well,coming back to the topic, I hope you got the idea what CharacterSpacing does for you. Its basically help you to manage and have full control over character space of your text in your Silverlight application. Here is how it looks like :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_uWueLlLrTdY/Ta3mlAnIwLI/AAAAAAAAC8M/n_8r2_16BgQ/s1600-h/TextImprove1%5B14%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="TextImprove1" border="0" alt="TextImprove1" src="http://lh3.ggpht.com/_uWueLlLrTdY/Ta3ml69GoyI/AAAAAAAAC8Q/me0sSC5JST0/TextImprove1_thumb%5B12%5D.jpg?imgmax=800" width="440" height="200" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You can see how the Text gets compressed and expand on varying the CharacterSpacing. Here is a piece of XAML which you can play and checkout how exactly it will look in your application when you implement CharacterSpacing.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;XAML :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Grid.RowDefinitions&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;RowDefinition Height=&amp;quot;20&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;RowDefinition Height=&amp;quot;20&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;lt;/Grid.RowDefinitions&amp;gt;    &lt;br /&gt;&amp;lt;TextBlock FontSize=&amp;quot;12&amp;quot; x:Name=&amp;quot;myTxt&amp;quot; Grid.Row=&amp;quot;0&amp;quot; &amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Silverlight हे सर्व वेब-ब्राउजर वर चालणारे Plug-in आहे, तसेच हे विविध Operating Systems वर ही वापरता येते.    &lt;br /&gt;&amp;lt;/TextBlock&amp;gt;    &lt;br /&gt; &amp;lt;Slider x:Name=&amp;quot;mySlide&amp;quot; Grid.Row=&amp;quot;1&amp;quot; Maximum=&amp;quot;400&amp;quot; Minimum=&amp;quot;-400&amp;quot; SmallChange=&amp;quot;50&amp;quot; ValueChanged=&amp;quot;mySlide_ValueChanged&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;C# Code :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;private void mySlide_ValueChanged(object sender, RoutedPropertyChangedEventArgs&amp;lt;double&amp;gt; e)   &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; myTxt.CharacterSpacing = Convert.ToInt32(mySlide.Value);    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;Note : CharacterSpacing property can be set from XAML as well.&lt;/p&gt;  &lt;p&gt;..and here is the output :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uWueLlLrTdY/Ta3mm6NmvwI/AAAAAAAAC8U/_bVk9ScynSg/s1600-h/txt1%5B6%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="txt1" border="0" alt="txt1" src="http://lh4.ggpht.com/_uWueLlLrTdY/Ta3mnqQIoNI/AAAAAAAAC8Y/PHe7G6ST8Lg/txt1_thumb%5B4%5D.jpg?imgmax=800" width="448" height="59" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uWueLlLrTdY/Ta3moZnmnoI/AAAAAAAAC8c/amFZuFarzd4/s1600-h/txt2%5B6%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="txt2" border="0" alt="txt2" src="http://lh4.ggpht.com/_uWueLlLrTdY/Ta3mpVmxi7I/AAAAAAAAC8g/WLJGCE0wFVA/txt2_thumb%5B4%5D.jpg?imgmax=800" width="444" height="59" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uWueLlLrTdY/Ta3mpySeD1I/AAAAAAAAC8k/EWAm7g4RsRk/s1600-h/txt3%5B6%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="txt3" border="0" alt="txt3" src="http://lh3.ggpht.com/_uWueLlLrTdY/Ta3mqQ0YEJI/AAAAAAAAC8o/MqaF8L6JMSo/txt3_thumb%5B4%5D.jpg?imgmax=800" width="436" height="61" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In each of the output shot you can see how the character spacing varies and thus gives you full control over text in your Silverlight 5 Application.Well how you are going to use in your business scenario it upto you only.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;RichTextBoxOverflow,Multi-column and Linked text :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Many times we see that inside application for TextBoxes or RichTextBoxes we have massive scrollers since the content is big and there is no facility to handle overflow of the content in the given Text container. So if you see our normal Multicolumn magzines, its sometimes becomes difficult to put Text in that Multicolumn magazine kind of fashion since its difficult to manage flow of text.&lt;/p&gt;  &lt;p&gt;With Silverlight 5 you can create wonders, All you need is to set OverflowContentTarget Property and you will be able to handle all linked,multicolumn text without any much heavy efforts.The official Silverlight 5 documentation describes OverflowContentTarge as :&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Gets or sets the RichTextBoxOverflow that will consume the overflow content of this RichTextBox.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Let me show you this via piece of XAML here :&lt;/p&gt;  &lt;p&gt;&amp;lt;StackPanel Width=&amp;quot;400&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;RichTextBox x:Name=&amp;quot;MasterRTB&amp;quot; Width=&amp;quot;300&amp;quot; Height=&amp;quot;50&amp;quot; OverflowContentTarget=&amp;quot;{Binding ElementName='overflowContainer'}&amp;quot;&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Paragraph&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Silverlight हे सर्व वेब-ब्राउजर वर चालणारे Plug-in आहे, तसेच हे विविध Operating Systems वर ही वापरता येते, गेली अनेक वर्षे Microsoft ASP.NET च्या मदतीने आपण अनेक प्रकारचे प्रकल्प कार्यान्वित करत आलो आहोत, काही वर्षांपूर्वी त्याला AJAX ने ही चांगलाच हातभार लावला आहे, आता त्याच धर्तीवर Microsoft आपल्याला Silverlight बरोबर एक पाउल पुढे नेत आहे.    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Paragraph&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/RichTextBox&amp;gt;    &lt;br /&gt;&amp;lt;RichTextBoxOverflow x:Name=&amp;quot;overflowContainer&amp;quot;/&amp;gt;    &lt;br /&gt;&amp;lt;/StackPanel&amp;gt;&lt;/p&gt;  &lt;p&gt;As you can see that I have big chunk of data in &amp;lt;Paragraph&amp;gt; tag and if I look at Dimensions of RichTextBox, there is a fear that either I will loose some of my Text just because it will not fit in or I need to put scrollbar and other stuff. Instead of that now what we can do in this particular example is to add one more control &amp;lt;RichTextBoxOverflow&amp;gt; (You can have multiple RichTextBoxOverflow Controls or even you might want to form chain of those controls which is possible) and set OverflowContentTarget of the base Rich Text box. This will point at where your extra overflow Text should go and then it will flow freely in another text container. Hence with such implementations you can achieve Multicolumn text requirements as well. Here is a small output of above XAML where you can clearly see how text is flowing smoothly across those Rich Text containers.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uWueLlLrTdY/Ta3mrZpOK7I/AAAAAAAAC8s/wS9ius-m-Q0/s1600-h/RTFM%5B12%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="RTFM" border="0" alt="RTFM" src="http://lh5.ggpht.com/_uWueLlLrTdY/Ta3msByr30I/AAAAAAAAC8w/gOEAym6uXbQ/RTFM_thumb%5B10%5D.jpg?imgmax=800" width="428" height="190" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Well, I hope you got these two small features introduced in Silverlight 5 Beta. With this you can move ahead and create PoCs where you can test the capability and power of these features with high design quality keeping in mind. With this I end this post here and by the time you finish exploring this feature I will be back with more new features of Silverlight 5. In coming articles we will also discuss the pain points of each features and how we can address those issues. So see you very soon !&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/04/silverlight-5-improvements-in-text.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_uWueLlLrTdY/Ta3mkT-vXxI/AAAAAAAAC8I/WQHuJXZLH5E/s72-c/txticon_thumb%5B11%5D.jpg?imgmax=800" height="72" width="72" /><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8492016573075353132.post-5194177355499170525</guid><pubDate>Thu, 14 Apr 2011 03:35:00 +0000</pubDate><atom:updated>2011-04-14T09:05:27.451+05:30</atom:updated><title>Silverlight 5 : A step ahead from Microsoft</title><description>&lt;p&gt;Hello folks, Hope you all had fun at Mix 11 keynote online/offline. Well almost 10+ hours back Scott Gu announced availability of Silverlight 5 Bits for Public which was formally announced earlier. I have composed few post last night, Just giving final touches, till the time I want you people to get sync with me by downloading Silverlight 5 bits so that we can enjoy it together !&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_uWueLlLrTdY/TaZreOyVntI/AAAAAAAAC78/NTfhTlaEFhA/s1600-h/silverlight%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="silverlight" border="0" alt="silverlight" src="http://lh4.ggpht.com/_uWueLlLrTdY/TaZrfnbHWUI/AAAAAAAAC8A/-H4A77cvOJA/silverlight_thumb%5B3%5D.png?imgmax=800" width="295" height="226" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What Should be your First Step ? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Download Silverlight Bits,Videos and necessary documentation from here :&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.silverlight.net/getstarted/silverlight-5-beta/" href="http://www.silverlight.net/getstarted/silverlight-5-beta/"&gt;http://www.silverlight.net/getstarted/silverlight-5-beta/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Should I migrate my Silverlight 3/4 Apps to Silverlight 5 ? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I personally will not recommend that. Silverlight 5 is in Beta right now,so its better to create some smart PoCs and test it out inside out then you can have migration plan in place.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Will these bits will cause trouble to my current Silverlight/WP7/Expression setup ? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;You can run these new bits can parallel without tampering anything from earlier installations. Installations are smooth and straight forward, No complex steps involved.There is a Runtime for Mac OS is made available, check on the link I mentioned above.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What should I have as pre-requisite to go ahead with &lt;/strong&gt;&lt;strong&gt;Silverlight 5 ? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;From tooling perspective, You need to have Visual Studio 2010 SP1,If you don’t have that, please get it today from Microsoft site. Beside that if you know XAML and C# fair enough, it will be smooth learning for those who are going to learn Silverlight 5,I mean to say fresh people to Silverlight Technology.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Silverlight is Core platform for Windows Phone 7, So with this Silverlight 5 anything got added to Windows Phone 7 toolkit ? :&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;What Microsoft released yesterday was totally to do with Web and OOB Silverlight, There were several announcements made by Microsoft for Windows Phone 7 including Mango update,but this bits have nothing directly to do with that. I will let you know about that in a separate post later.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What am I going to see here on this Blog in coming days ? : &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Tons of good stuff including Silverlight 5,Windows Phone 7 and Silverlight 5 + Some third party stuff (Remember my Balder post for Windows Phone 7,Some more coming on the same line).&lt;/p&gt;  &lt;p&gt;I will initially going to take a stab at new Silverlight 5 features and then I will take them each one deep dive like I try to do always.&lt;/p&gt;  &lt;p&gt;So download bits today from :&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.silverlight.net/getstarted/silverlight-5-beta/" href="http://www.silverlight.net/getstarted/silverlight-5-beta/"&gt;http://www.silverlight.net/getstarted/silverlight-5-beta/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;..and stay tune for my next post coming up. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Future is Bright .. Future is Silverlight !&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Vikram.&lt;/strong&gt;&lt;/p&gt;  </description><link>http://pendsevikram.blogspot.com/2011/04/silverlight-5-step-ahead-from-microsoft.html</link><author>noreply@blogger.com (Vikram Pendse)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_uWueLlLrTdY/TaZrfnbHWUI/AAAAAAAAC8A/-H4A77cvOJA/s72-c/silverlight_thumb%5B3%5D.png?imgmax=800" height="72" width="72" /><thr:total>4</thr:total></item></channel></rss>
