Category: C#

How to Create an Explicit Style in Windows Phone 8 ?

The developers can utilize the style resources to create styles and use them within the Windows Phone Application. For example , the developers can create a style for the textblock with a key identifier in the app.xaml file and then reuse them in different screens of the application. How to Create an Explicit Style in Windows Phone 8 ? To create an explicit style ,…

How to send SMS in Windows Phone 8 Programatically using C#?

In Windows Phone, the developers can send SMS from their Windows Phone 8 Programatically using the launchers. The Windows Phone SDK provides the SMSComposeTask launcher which can be used to send SMS in Windows Phone 8. Below is a code snippet demonstrating the usage of the SMSComposeTask to send SMS in Windows Phone 8. How to send SMS in Windows Phone 8 Programatically using C#?

How to Get the string from AppResources file in Windows Phone 8 ?

If you want to retrieve the value from the AppResources file in Windows Phone 8 , you can use one of the below options. How to Get the string from AppResources file in Windows Phone 8 ? 1. Using the AppResources.<Property> Assume that the string in the AppResources file is ApplicationTitle and the which contains the value “Abundantcode for Windows Phone development” . , you…

Adding a WinJS control in JavaScript code in Windows 10 App

You can add the WinJS control to the page in the markup page or from your javascript code. How to add a WinJS control in your JavaScript code for Windows 10 Apps ? Add the element in the markup (HTML page) that will host your control. <div id=”element”></div> In your JavaScript code , retreive the element using the document.getElementById method. var containerElement = document.getElementById(“element”); You…

C# Compiler Warning – CS8614 nullability of reference types in type o

In this blog post, you’ll learn more about the C# Compiler Warning – CS8614 and the related message description C# Compiler Warning Code CS8614 C# Compiler Description for the Code :CS8614 Nullability of reference types in type of parameter ‘{0}’ of ‘{1}’ doesn’t match implicitly implemented member ‘{2}’.

How to make a Type Sortable on Different Criteria in C# ?

IComparable interface is a great way to sort your objects by using the sorting routines of the List. There is a another interface called IComparer<T> which allows the objects to be sorted based on different criteria. How to make a Type Sortable on Different Criteria in C# ? For example , if you wanted to sort the Employee objects by Id , you can create…