Visually Located


Basic styling of the Silverlight 5 PivotViewer

Normally when people ask me how to create a custom style for a control in Silverlight or WPF I quickly reply Use Expression Blend! If they do not have Expression Blend, then the next answer is Get the default style from MSDN and change as needed. So, when someone asked how to go about styling the new PivotViewer control, my immediate response was going to be “Use Expression Blend”. But, we’re in a odd place right now. There is now RTM of Express Blend. There is only the Expression Blend Preview for Silverlight 5. As this is not a RTM release, and PivotViewer is new, I thought I would test it out first. So, open a Silverlight 5 project in Blend Preview and add the PivotViewer Control. Right click on the PivotViewer –> Edit Template –> Edit a Copy… To my surprise, the following xaml was generated <UserControl.Resources> <ControlTemplate x:Key="PivotViewerControlTemplate1" TargetType="sdk:PivotViewer"/> &... [More]

Using the Silverlight 5 PivotViewer with ArcGIS Silverlight

Pivot was originally released as a demonstration project that was a separate download from Silverlight itself. At version 5, Pivot becomes part of the Silverlight family. Pivot allows users the ability to visualize their data. Puts the power of filtering and grouping their data without the need to learn complex SQL statements. The original version of Pivot required you to have an XML representation of the data, and images that it would display. This required extra work for the developer, or web administrator to create this data from their data store. With Silverlight 5, you now have the ability to bind to any property that your class has. It also allows you the ability to create what’s known as trading cards with XAML. These cards replace the images you previously needed. You can even define at what stage you want a trading card to display. By defining different trading cards at different levels, you can give the user more information the more they filter down their data. When I... [More]