How to make String.Contains case insensitive?

The string.Contains() method in C# is case sensitive. And there is not StringComparison parameter available similar to Equals() method, which helps to compare case insensitive. If you run the following tests, TestStringContains2() will fail. Other option is using like this. And here is the case insensitive contains method implementation. And here is the modified tests.Read More

How to change the startup page on a WP7 application

Sometimes you may need to change the startup page of Windows Phone application. By default it will be pointing to MainPage.xaml. You can modify the WMAppManifest.xml to change the default page. In the WMAppManifest.xml you will find the following.(You can get the WMAppManifest.xml by expanding the properties node in the Project Explorer window.) Happy Programming