Category: C#

How to retrieve integer value and remove all other strings in C# ?

If you want to retrieve the integer value and remove all other strings in C# , one can use the Regex.Replace method and apply regular expression easily and get only the integer part from a string. How to How to retrieve integer value and remove all other strings in C# ? Below is a sample sourecode demonstrating How to retrieve integer value and remove all…

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# ?