Skip to main content Skip to footer

GrapeCity ActiveReports Part 6: Full Customization with Themes

ActiveReports Script 6 - Silverlight Viewer Theme Customization

This is a great post for you to learn how to modify themes in the ActiveReports Silverlight Viewer. See contest here to create a Metro Style theme and win a Kindle Fire. contest ends Jan 31, 2012.

This is the 6th in a series of ActiveReports Blogs and is a continuation of:

Part 1 Getting StartedPart 2 Run a reportPart 3 Silverlight Viewer ToolbarPart 4 Uploading reports to Silverlight ViewerPart 5 Documentation Tips

1) The Silverlight Viewer theme is completely customizable. Add an existing item template to the Silverlight project from : C:\Program Files (x86)\GrapeCity\ActiveReports 6\Deployment\Silverlight\Templates

clip_image002

2) Select DefaultSLViewerTemplates.XAML

clip_image004

3) Notice the template you just added to the project is just XAML!!! In Solution Explorer, double-click DefaultSLViewerTemplates.xaml.

clip_image006

4) Search for "sidebar implementation".

clip_image008

Replace sdk:TabItem Header:

Header="{Binding TOCHeader, Mode=OneTime, FallbackValue='TOC'}"

With

Header="myTOC"

clip_image009

5) Add the theme as a resource in mainpage.xaml - Insert in XAML

<UserControl.Resources>

</UserControl.Resources>

clip_image011

6) Run it – Click on Table of Contents button and note the Side bar has changed to “myTOC”!

clip_image012

7) Try a different template and add it in to project and add to resources

<UserControl.Resources>

</UserControl.Resources>

Get creative and design a Metro style theme for the ActiveReports Silverlight Viewer and win a Kindle Fire and ActiveReports 6 Professional Edition... contest ends on Jan 31, 2012. See more details at: http://gcpowertools.com/russcam

Part 7 – PDF and Silverlight Printer support

Technorati Tags: ActiveReports,Getting started,grapecity,reporting components,DataDynamics,multi-part series,AR Tutorial,AR,AR Script,Tutorial,Script,part 6,license message,toolbar,documentation,help,metro,blend,Silverlight,themes,theme customization,contest,kindle Fire

tweetmeme_url = 'http://www.clubfarpoint.com/Forums/blogs/russells\_blog/archive/2012/01/13/grapecity-activereports-part-6-full-customization-with-themes.aspx'; tweetmeme_source = '@russcamtv'; tweetmeme_hashtags = '#appdev';

MESCIUS inc.

comments powered by Disqus