In Part 4 of this mini-series on data binding we looked at Data Conversion. Today we look at binding a UI Element to a list of objects. The trick in binding to a list, is to teach the control how to display the bound data. It needs to know how to display each object in the list – what properties of the object should be displayed and how should they appear? You do this most often with a DataTemplate – a template that will be reproduced for each member of the collection. In the next example we create an Employee class. Each Employee...
In an earlier blog post I reviewed how to create a line chart using RadChart for Metro. In this blog post I will review how to create a bar chart, and no doubt you will notice some striking similarities. All of this is done with the Telerik Windows 8 UI Controls. We’ll begin with the data. Our bar chart will compare revenues for five stores. [ Click on the image to see full size ] Our first class will define the StoreRevenue type and will have a static method to generate some sample data (normally, of course, you would get this data from a...