Document

  • View
    113

  • Download
    0

Embed Size (px)

Text of Document

ComponentOne

Expander for Silverlight

Copyright 1987-2011 ComponentOne LLC. All rights reserved.

Corporate Headquarters ComponentOne LLC 201 South Highland Avenue 3rd Floor Pittsburgh, PA 15206 USA Internet: Web site: Sales E-mail: sales@componentone.com Telephone: 1.800.858.2739 or 1.412.681.4343 (Pittsburgh, PA USA Office) info@ComponentOne.com http://www.componentone.com

Trademarks The ComponentOne product name is a trademark and ComponentOne is a registered trademark of ComponentOne LLC. All other trademarks used herein are the properties of their respective owners. Warranty ComponentOne warrants that the original CD (or diskettes) are free from defects in material and workmanship, assuming normal use, for a period of 90 days from the date of purchase. If a defect occurs during this time, you may return the defective CD (or disk) to ComponentOne, along with a dated proof of purchase, and ComponentOne will replace it at no charge. After 90 days, you can obtain a replacement for a defective CD (or disk) by sending it and a check for $25 (to cover postage and handling) to ComponentOne. Except for the express warranty of the original CD (or disks) set forth here, ComponentOne makes no other warranties, express or implied. Every attempt has been made to ensure that the information contained in this manual is correct as of the time it was written. We are not responsible for any errors or omissions. ComponentOnes liability is limited to the amount you paid for the product. ComponentOne is not liable for any special, consequential, or other damages for any reason. Copying and Distribution While you are welcome to make backup copies of the software for your own use and protection, you are not permitted to make copies for the use of anyone else. We put a lot of time and effort into creating this product, and we appreciate your support in seeing that it is used by licensed users only.

This manual was produced using ComponentOne Doc-To-Help.

Table of ContentsExpander for Silverlight Overview......................................................................................................................1 Expander for Silverlight Key Features ................................................................................................................1 Expander for Silverlight Quick Start ...................................................................................................................1 Step 1 of 3: Creating an Application with a C1Expander Control ................................................................... 1 Step 2 of 3: Customizing the C1Expander Control............................................................................................ 2 Step 3 of 3: Adding Content to the C1Expander Control ................................................................................. 3 Working with the C1Expander Control ..............................................................................................................4 C1Expander Elements.......................................................................................................................................... 5 Expander Header ................................................................................................................................... 5 Expander Content Area ......................................................................................................................... 6 Expanding and Collapsing C1Expander............................................................................................................. 6 Initial Expand State................................................................................................................................ 7 Expand Direction ................................................................................................................................... 7 Expandability ......................................................................................................................................... 8 Expander for Silverlight Layout and Appearance................................................................................................8 C1Expander ClearStyle Properties........................................................................................................ 9 Expander for Silverlight Appearance Properties ................................................................................................ 9 Text Properties ....................................................................................................................................... 9 Content Positioning Properties ........................................................................................................... 10 Color Properties ................................................................................................................................... 10 Border Properties.................................................................................................................................. 11 Templates ............................................................................................................................................................ 11 Expander Theming............................................................................................................................................. 12 Expander for Silverlight Task-Based Help.........................................................................................................13 Adding Content to the Header Element ........................................................................................................... 13 Adding Text to the Header .................................................................................................................. 13 Adding a Control to the Header.......................................................................................................... 14 Adding Content to the Content Area................................................................................................................ 15 Adding Text to the Content Area ....................................................................................................... 15

iii

Adding a Control to the Content Area ............................................................................................... 16 Adding Multiple Controls to the Content Area ................................................................................. 18 Binding Data to the Header and Content Panel Using Templates ................................................................. 20 Changing the Expand Direction........................................................................................................................ 23 Changing the Initial Expand State .................................................................................................................... 24 Preventing Expansion ........................................................................................................................................ 24 Using C1Expander Themes ............................................................................................................................... 25

iv

Expander for Silverlight OverviewSave precious screen real estate with ComponentOneExpander for Silverlight. Expander for Silverlight includes one control, C1Expander, which allows you create an expandable and collapsible information panel that can include text, images, and controls. Choose from four expand directions and take complete control of the control's style by customizing its appearance in Microsoft Expression Blend.Getting Started

- Working with the C1Expander control (page 4) - Quick Start (page 1) - Task-Based Help (page 13)

Expander for Silverlight Key FeaturesComponentOne Expander for Silverlight allows you to create customized, rich applications. Make the most of Expander for Silverlight by taking advantage of the following key features: Expand on Page Load You can choose whether or not the C1Expander control is expanded upon page load by using the IsExpanded property. By default, the IsExpanded property is set to True and the control is initially appears expanded. For more information, see the Expandability (page 8) topic. Expand Direction The C1Expander control has the ability to expand in four different directions. The ExpandDirection property indicated in which direction the control expands and can be set to Top, Right, Bottom, or Left. For more information, see the ExpandDirection (page 7) topic. Custom Header The C1Expander control's header can be customized with both text and controls. For more information on the customizable header element, see Expander Header (page 5). Configure Items in an Organized Pattern Expander is designed to maximize space. Configure the size and position of C1Expander to hide items until needed.

Expander for Silverlight Quick StartThe following quick start guide is intended to get you up and running with Expander for Silverlight. In this quick start, you'll start in Visual Studio to create a new project, add a C1Expander control to your application, and then add content to the C1Expander control's content area.

Step 1 of 3: Creating an Application with a C1Expander ControlIn this step, you'll begin in Visual Studio to create a Silverlight application using Expander for Silverlight. Complete the following steps:

1

1. 2.

In Visual Studio 2008, select File | New | Project. In the New Project dialog box, select a language in the left pane, and in the templates list select Silverlight Application. Enter a Name for your project and click OK. The New Silverlight Application dialog box will appear. Click OK to close the New Silverlight Application dial