-
Continue reading →: A first chance exception of type ‘System.Windows.Markup.XamlParseException’ – WP8
Other day I got below error while executing my application. A first chance exception of type ‘System.Windows.Markup.XamlParseException’ occurred in System.Windows.ni.dll The exception was in ‘App.xaml.cs’ file’s InitializeComponent() method Reason – There could be many reasons for the exception Even if there is an invalid space in your xaml file it…
-
Continue reading →: Text to Speech – WP8
Windows Phone 8 has included the Text to Speech feature out of the box in the platform.Text to speech is very easy to use in your App (only takes 2 lines of code) using ‘SpeechSynthesizer’ class. Below is the code var synthesizer = new SpeechSynthesizer(); await synthesizer.SpeakTextAsync(“Your text here”);…
-
Continue reading →: Playing a song from library – WP8
Here is the logic to play a particular song from library. Logic is to loop through all the songs in Media Library and if the song name matches to our song play the song. string favoriteSong = “mySong.mp3”; using (Microsoft.Xna.Framework.Media.MediaLibrary library = new Microsoft.Xna.Framework.Media.MediaLibrary()) { foreach (var song in library.Songs) …
-
Continue reading →: Setting the Start Page – Windows Phone 8
In my windows phone 8 application I have 2 xaml files. By default when you run the application, it opens ‘MainPage.xaml’. To set my second file (i.e., ‘MediaPlayer.xaml’) as start page. • Open ‘WMAppManifest.xml’ • In ‘Application UI’ tab, set Navigation Page = MediaPlayer.xaml We can also change it in App.xaml…
-
Continue reading →: CRM 2013 new form lay out and Notes control
In CRM 2013 when you create a new entity and open ‘Main’ Customization form, it looks as below It’s not how CRM 2011 form looks. In CRM 2011, you get separate ‘General’ and ‘Notes’ tabs How to get back CRM 2013 form like CRM 2011 with separate General and Notes tabs…
-
Continue reading →: Get the view name of main grid using JScript
We got a requirement to Enable\disable ribbon button based on selected view. We used JScript to disable the button by getting the selected view name. Below is the script to get the selected view name of Main Grid var viewName = “”; if (crmGrid && crmGrid.control) { viewName = crmGrid.control.get_viewTitle(); } 🙂


