O'Reilly logo

.NET Framework 4.5 Expert Programming Cookbook by A.P. Rajshekhar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Pivot control to present asset data

The Pivot view makes interacting with data easy for the user. Until Version 5 of Silverlight (.NET 4.0 and below), PivotViewer control needed to be installed separately. However, with Silverlight 5 and .NET 4.5, it is supplied as part of the core distribution. In this recipe, we will see how to use PivotViewer control to display asset-related data.

How to do it...

To use Pivot control to present asset data, perform the following steps:

  1. Launch Visual Studio 2012. Create a project of the type Silverlight Application. Name it Pivot.
  2. Add a new folder. Name it Entities.
  3. Add a new class to the Entities folder. Name it Asset.
  4. Add the following properties to the class:

    Name

    Data type

    ID

    int

    Name

    String

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required