Tag: How to
How to Apply LINQ Distinct on a particular property in C#?
Do you want to get the distinct records from a list based on a particular property using LINQ in C#?. Below is a code snippet that demonstrates how to do it. How to Apply LINQ Distinct on a particular property in C#?
How to Enable AirplaneMode from the Windows Phone 8 App?
Below is a sample code snippet that demonstrated how the developers can use the ConnectionSettingsTask launcher to enable or disable the AirplaneMode from the Windows Phone 8 App. How to Enable AirplaneMode from the Windows Phone 8 App?
How to Implement Rating Control in Windows Phone 8 App ?
If you are looking to implement the rating control in your windows phone 8 app which lets the users to rate an item within the specified values/stars , here’s an useful control from Windows Phone toolkit called “RatingControl” which can used . <Toolkit:Rating Height=”30″ Grid.Row=”1″ Value=”0.6″ ItemCount=”0″ x:Name=”ctAbundantcodeRating”> You can download Windows Phone Toolkit via NuGet manager from Visual Studio 2012.
How to Convert XmlDocument to XDocument in C# ?
If you want to convert an XmlDocument to XDocument in C# , you can use the XmlNodeReader which does the conversion for you. Use the MoveToContent method and load it to the XDocument class. How to Convert XmlDocument to XDocument in C# ?
SQL Server 2014 Tutorial – Install SQL Server 2014 on Windows 10 machine
Problem Statement You need to install SQL Server 2014 Express edition on Windows 10 machine. Solution There are several ways in which you can install SQL Server. These includes options via command prompt, unattended, server core etc. In this tutorial, we will explore the simplest method using the SQL Server 2014 Setup wizard. Follow the below steps to install SQL Server 2014 1. Download SQL…
How to Get the Property value using reflection in C# ?
Below is a sample method that demonstrates how to retrieve the property value in C# using reflection. How to Get the Property value using reflection in C# ?
How to Get the Last N Elements from a List using LINQ in C#?
Below is a sample code snippet demonstrating how to retrieve last N Elements (2) from a list in C# using LINQ.
How to Hide Status Bar in Windows Phone 8.1 Windows Runtime Apps ?
Below is a sample code snippet that demonstrates how to hide the Status Bar in Windows Phone 8.1 Windows Runtime Apps using C# . How to Hide Status Bar in Windows Phone 8.1 Windows Runtime Apps ?
How to detect if the Windows Phone App is running in KidsCorner using C#?
Below is a sample code snippet that demonstrates how to detect if the application in Windows Phone is running in Kids Corner using C#? The Windows.Phone.ApplicationModel.ApplicationProfile returns the value Default or Alternate. The default value indicates the normal mode whereas the Alternate indicates the Kids Corner mode. How to detect if the Windows Phone App is running in KidsCorner using C#?
Iterating a List of Integer using GetEnumerator , MoveNext and Current in C#
Below is a sample code snippet that demonstrates the usage of the GetEnumerator , and MoveNext to iterate through a list of integers in C#. Iterating a List of Integer using GetEnumerator , MoveNext and Current in C#
How to Copy Image from Assets folder to localstorage in Windows 10 ?
If you want to copy a file or image from a folder to localstorage in Windows 10 , you can use the CopyAsync method of the StorageFile class to do it. How to Copy Image from Assets folder to localstorage in Windows 10 ?
SQL Server 2014 Tutorial – Manage SQL Server services
Problem Statement You need to manage the SQL Server services that are installed on your server machine. Solution Use SQL Server Configuration Manager tool to manage the SQL Server services on your machine. Following are some of the actions that you can perform using the SQL Server Configuration Manager – Start , Stop , Pause , Restart a SQL Server Service – Modify or configure…