Tag: data
Displaying data in flat list in Windows Phone 8 LongListSelector Control
Below is a sample code snippet demonstrating the display of the flat list in the Windows Phone 8 LongListSelector Control. Displaying data in flat list in Windows Phone 8 LongListSelector Control LongListSelector Declaration <phone:LongListSelector Name=”lstWebsites” HorizontalAlignment=”Left” VerticalAlignment=”Top” LayoutMode=”List” IsGroupingEnabled=”False” Width=”446″> <phone:LongListSelector.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock Text=”{Binding Name}” /> </StackPanel> </DataTemplate> </phone:LongListSelector.ItemTemplate> </phone:LongListSelector> Model public class WebsiteName { public string Name { get; set; } public int…
How to Deserialize JSON data in Windows Phone 8 app ?
To Deserialize JSON data in Windows Phone 8 , the developers can utilize the json.NET . How to Deserialize JSON data in Windows Phone 8 app ? Below is a sample code snippet that demonstrates how to Deserialise JSON data in Windows Phone 8 app.
How to read data from text file in C#?
Below is a sample code snippet demonstrating in simple steps on how to read data from text file in a console application in C# and display it? How to read data from text file in C#?
How to format data of type double to display 2 decimal places in C# ?
You can easily format data of type double to display 2 decimal places in C# using the format specifier {0:#.##}. How to format data of type double to display 2 decimal places in C# ? Below is a sample sourcecode to demonstrate formatting data of type double to display 2 decimal places in C#