Upload
others
View
16
Download
0
Embed Size (px)
Citation preview
ComponentOne
Gallery for ASP.NET
Copyright © 1987-2015 GrapeCity, Inc. All rights reserved.
ComponentOne, a division of GrapeCity
201 South Highland Avenue, Third Floor
Pittsburgh, PA 15206 USA
Website: http://www.componentone.com
Sales: [email protected]
Telephone: 1.800.858.2739 or 1.412.681.4343 (Pittsburgh, PA USA Office)
Trademarks
The ComponentOne product name is a trademark and ComponentOne is a registered trademark of GrapeCity, Inc.
All other trademarks used herein are the properties of their respective owners.
Warranty
ComponentOne warrants that the media on which the software is delivered is 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 media 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 the defective media by
sending it and a check for $25 (to cover postage and handling) to ComponentOne.
Except for the express warranty of the original media on which the software is delivered is 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. ComponentOne is not responsible for
any errors or omissions. ComponentOne’s 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.
ComponentOne Gallery for ASP.NET Webforms
1
Table of Contents Overview ................................................................................................................................. 6
Help with ComponentOne Studio for ASP.NET Webforms .................................................... 6
Key Features ............................................................................................................................ 6
Quick Start............................................................................................................................... 7
Step 1 of 3: Adding C1Gallery to the Page ............................................................................ 7
Step 2 of 3: Adding Content ................................................................................................. 8
Step 3 of 3: Customizing Appearance and Behavior.............................................................. 9
Design-Time Support ............................................................................................................. 11
Smart Tag .......................................................................................................................... 11
Context Menu.................................................................................................................... 12
Designer ............................................................................................................................ 13
Themes ................................................................................................................................. 14
Samples ................................................................................................................................. 17
Task-Based Help .................................................................................................................... 17
Setting the Gallery Orientation .......................................................................................... 18
Adding a Pager to the Gallery............................................................................................. 19
Automatically Playing the Gallery Items ............................................................................. 20
Loading Gallery Items on Demand ..................................................................................... 21
Changing Transition Animation at Run Time....................................................................... 22
Data Binding the Gallery .................................................................................................... 24
Client-Side Reference ............................................................................................................ 29
C1.Web.Wijmo.Controls.4 Assembly ...................................................................................... 30
Namespaces ...................................................................................................................... 30
C1.Web.Wijmo.Controls Namespace .............................................................................. 30
Overview ................................................................................................................... 30
Classes ....................................................................................................................... 31
C1BaseStateManager ............................................................................................. 31
Overview ............................................................................................................ 31
Members............................................................................................................ 32
C1TargetControlBase.............................................................................................. 32
Overview ............................................................................................................ 33
Members............................................................................................................ 34
ComponentOne Gallery for ASP.NET Webforms
2
Methods............................................................................................................. 39
GetPropertyValue<V> Method........................................................................ 40
GetScriptDescriptors Method ......................................................................... 41
GetScriptReferences Method .......................................................................... 42
RegisterDesignTimeStyleSheet Method .......................................................... 42
SetPropertyValue<V> Method ........................................................................ 43
Properties .......................................................................................................... 44
CDNDependencyPaths Property...................................................................... 47
CDNPath Property .......................................................................................... 48
DisplayVisible Property ................................................................................... 49
EnableCombinedJavaScripts Property ............................................................. 50
Enabled Property ............................................................................................ 50
Theme Property .............................................................................................. 51
ThemeSwatch Property .................................................................................. 52
UseCDN Property ............................................................................................ 53
WijmoControlMode Property ......................................................................... 54
WijmoCssAdapter Property............................................................................. 55
C1TargetControlHelper........................................................................................... 56
Overview ............................................................................................................ 56
Members............................................................................................................ 57
C1TargetControlHelper Constructor ................................................................... 58
Methods............................................................................................................. 58
ResolveEmbeddedResourceUrl Method .......................................................... 58
C1TargetControlHelper<T> ..................................................................................... 59
Overview ............................................................................................................ 60
Members............................................................................................................ 61
C1TargetControlHelper<T> Constructor .............................................................. 62
Methods............................................................................................................. 63
EnsureEnabledState Method .......................................................................... 64
GetScriptDescriptors Method ......................................................................... 64
GetScriptDescriptors() Method ................................................................... 65
GetScriptDescriptors(String) Method .......................................................... 65
RegisterDesignTimeStyleSheet Method .......................................................... 66
RegisterDesignTimeStyleSheets Method ......................................................... 67
ComponentOne Gallery for ASP.NET Webforms
3
RegisterIncludes Method ................................................................................ 67
RegisterOnSubmitStatement Method ............................................................. 68
RegisterRunTimeStylesheets Method ............................................................. 68
RegisterScriptDescriptors Method .................................................................. 69
RegisterScriptDescriptorsWithoutScriptManager Method............................... 69
RegisterScriptDescriptorsWithScriptManager Method .................................... 69
RenderJsonDataField Method ......................................................................... 70
ShowAbout Method ....................................................................................... 70
Properties .......................................................................................................... 71
Control Property ............................................................................................. 71
JsonSerializableHelper Property ...................................................................... 72
Page Property ................................................................................................. 72
ScriptManager Property.................................................................................. 72
C1.Web.Wijmo.Controls.C1Gallery Namespace .............................................................. 73
Overview ................................................................................................................... 73
Classes ....................................................................................................................... 74
C1Gallery................................................................................................................ 74
Overview ............................................................................................................ 75
Members............................................................................................................ 76
C1Gallery Constructor ........................................................................................ 84
Methods............................................................................................................. 84
DataBind Method ........................................................................................... 85
Dispose Method ............................................................................................. 86
LoadLayout Method........................................................................................ 86
LoadLayout(String) Method ........................................................................ 87
LoadLayout(Stream) Method ...................................................................... 87
LoadLayout(String,LayoutType) Method ..................................................... 88
LoadLayout(Stream,LayoutType) Method ................................................... 89
SaveLayout Method ........................................................................................ 90
SaveLayout(String) Method......................................................................... 90
SaveLayout(Stream) Method ...................................................................... 91
Properties .......................................................................................................... 91
AutoPlay Property .......................................................................................... 97
AutoPlayMovies Property ............................................................................... 97
ComponentOne Gallery for ASP.NET Webforms
4
Control Property ............................................................................................. 98
ControlPosition Property ................................................................................ 99
Counter Property ...........................................................................................100
DataCaptionField Property .............................................................................100
DataImageUrlField Property ..........................................................................101
DataLinkUrlField Property ..............................................................................102
FlashInstall Property ......................................................................................103
FlvPlayer Property .........................................................................................103
Height Property .............................................................................................104
Interval Property ...........................................................................................104
Items Property ...............................................................................................105
LoadOnDemand Property ..............................................................................106
Mode Property ..............................................................................................107
OnClientAfterTransition Property ..................................................................107
OnClientBeforeTransition Property ................................................................108
OnClientLoadCallback Property......................................................................109
PagerPosition Property ..................................................................................110
ScrollWithSelection Property .........................................................................111
ShowCaption Property ...................................................................................111
ShowControls Property ..................................................................................112
ShowControlsOnHover Property ....................................................................113
ShowCounter Property ..................................................................................113
ShowMovieControls Property ........................................................................114
ShowPager Property ......................................................................................115
ShowThumbnailCaptions Property .................................................................115
ShowTimer Property ......................................................................................116
ThumbnailDirection Property.........................................................................117
ThumbnailOrientation Property .....................................................................118
ThumbsDisplay Property ................................................................................118
ThumbsLength Property ................................................................................119
Transitions Property ......................................................................................120
Width Property ..............................................................................................121
Events ...............................................................................................................121
ItemDataBinding Event ..................................................................................122
ComponentOne Gallery for ASP.NET Webforms
5
ItemDataBound Event....................................................................................123
C1GalleryItem .......................................................................................................124
Overview ...........................................................................................................125
Members...........................................................................................................125
C1GalleryItem Constructor ................................................................................129
C1GalleryItem Constructor() ..........................................................................130
C1GalleryItem Constructor(Int32) ..................................................................130
Properties .........................................................................................................131
Caption Property ...........................................................................................133
DataItem Property .........................................................................................134
ImageUrl Property .........................................................................................134
LinkUrl Property.............................................................................................135
Title Property.................................................................................................136
Visible Property .............................................................................................137
C1GalleryItemCollection ........................................................................................137
Overview ...........................................................................................................138
Members...........................................................................................................138
C1GalleryItemCollection Constructor .................................................................140
Methods............................................................................................................140
Add Method ..................................................................................................141
Insert Method................................................................................................142
C1GalleryItemEventArgs ........................................................................................143
Overview ...........................................................................................................144
Members...........................................................................................................144
C1GalleryItemEventArgs Constructor.................................................................145
Properties .........................................................................................................145
Item Property ................................................................................................146
Enumerations............................................................................................................146
DisplayMode .........................................................................................................146
ThumbsPosition ....................................................................................................147
Delegates ..................................................................................................................148
C1GalleryItemEventHandler ..................................................................................148
ComponentOne Gallery for ASP.NET Webforms
6
Overview Add an image gallery to your Web site! ComponentOne Gallery for ASP.NET Webforms
displays images and their thumbnails with options for slide show, slick transition effects, paging,
theming, and much more. It's compatible with all modern browsers.
For a list of the latest features added to ComponentOne Studio for ASP.NET Webforms, visit
What's New in Studio for ASP.NET Webforms. Getting Started
To get started, review the following topics:
Key Features
Quick Start
Samples
Help with ComponentOne Studio for
ASP.NET Webforms Getting Started
For information on installing ComponentOne Studio for ASP.NET Webforms, licensing,
technical support, namespaces and creating a project with the control, please visit Getting
Started with Studio for ASP.NET Webforms.
What's New
For a list of the latest features added to ComponentOne Studio for ASP.NET Webforms, visit
What's New in Studio for ASP.NET Webforms.
Key Features C1Gallery includes several unique features, including the following:
Auto Play
If you choose, the control will cycle through images automatically.You can set the time
each picture is displayed and if a timer with Play/Pause buttons will be shown on the
top of gallery.
Controls
You can determine the visibility of elements included in the control, for example the
navigation buttons, counter, and timer.
Thumbnail Images
You can display and customize thumbnail images that navigate to larger images in the
gallery. When you click the thumbnail image the large picture will be displayed in the
ComponentOne Gallery for ASP.NET Webforms
7
frame. You can determine the visibility, display number, orientation, and position of the
thumbnail images.
Paging
You can choose to display a pager element in the control rather than thumbnail images.
The pager allows users to navigate through images I the gallery, and you can customize
the position of the pager.
Navigation
The control includes two built-in buttons (Next/Previous) allowing users to navigate to
the next or previous image at run time.
Dynamic Content
You can asynchronously load content data from the server side or from AJAX data,
customizing the content of the control.
Animation
You can select and customize the animation effect displayed when the control moves
from one image to the next.
Multimedia
You can set the display mode of the gallery determining what type of media will be
displayed in the frame. The control includes four modes: image, SWF, FLV, and iFrame.
JQuery UI Styles
You can quickly change the appearance of the control using JQuery UI styles.
Quick Start In this quick start you'll explore the functionality of the C1Gallery control. C1Gallery provides
the ability to add content in a unique view.
See Also
Step 1 of 3: Adding C1Gallery to the Page
Step 2 of 3: Adding Content to the C1GalleryControl
Step 3 of 3: Customizing C1Gallery'sAppearance and Behavior
Step 1 of 3: Adding C1Gallery to the Page In this step you'll create and set up a Web site and add an empty C1Gallery control. Complete
the following steps to add the C1Gallery control to a Web site:
1. From the Visual Studio File menu select New │ Project. The New Project dialog box
will appear.
2. In the New Project dialog box expand a language in the left-hand pane and select
Web. In the right pane, choose ASP.NET Empty Web Application, enter a Name for
your application, and select OK. A new application will be created.
ComponentOne Gallery for ASP.NET Webforms
8
3. In the Solution Explorer, right-click the project and choose Add Reference.
4. In the Add Reference dialog box, locate and select the C1.Web.Wijmo.Controls and
C1.Web.Wijmo.Controls.Design assemblies and click OK. The references will be
added.
5. Right-click the project in the Solution Explorer and from the context menu choose Add
│ New Item.
6. In the Add New Item dialog box choose Web Form from the list of templates, name
the item "Default.aspx", and click Add. The new page should open.
7. In Source view, add the following markup at the top of the page to register the
C1Gallery assembly:
8. 9.
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1Gallery" TagPrefix="wijmo" %> 10.
Depending on the assembly added, you may need to replace
"C1.Web.Wijmo.Controls.4" with "C1.Web.Wijmo.Controls.3" above.
11. Place your mouse between the page's initial <div></div> tags, and add the following
markup to add the C1Gallery control to the page:
12. 13.
<wijmo:C1Gallery ID="C1Gallery1"
runat="server"></wijmo:C1Gallery>
14.
15.
In this step you added a C1Gallery control to the form, but the control is currently blank. In the
next step of the quick start, you'll add content to the control.
Step 2 of 3: Adding Content Adding content to the C1Gallery control is very simple and can be done in a variety of ways. In
this step, you'll link to images using the ImageUrl property. The following steps assume you've
completed Step 1 of 3: Adding C1Gallery to the Page topic and added a C1Gallery control to
the page.
Complete the following steps to add content to the C1Gallery control:
1. In Source view, place your mouse between the
<wijmo:C1Gallery></wijmo:C1Gallery> tags, and add the following markup to
add items to the control:
2. 3.
<Items></Items> 4.
5. Place your mouse between the <Items></Items> tags, and add the following
markup to add several C1GalleryItems to the control:
To Write Code In Source View
ComponentOne Gallery for ASP.NET Webforms
9
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/600/300/sports/1"
ImageUrl="http://lorempixum.com/200/150/sports/1" />
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/600/300/sports/2"
ImageUrl="http://lorempixum.com/200/150/sports/2" />
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/600/300/sports/3"
ImageUrl="http://lorempixum.com/200/150/sports/3" />
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/600/300/sports/4"
ImageUrl="http://lorempixum.com/200/150/sports/4" />
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/600/300/sports/5"
ImageUrl="http://lorempixum.com/200/150/sports/5" />
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/600/300/sports/6"
ImageUrl="http://lorempixum.com/200/150/sports/6" />
Note that you set the following properties for each C1GalleryItem:
o ImageUrl: Image URL of gallery item.
o LinkUrl: Link URL of gallery item.
6. Run your application, and observe that the page now looks similar to the following
image:
7. Click on a thumbnail image to navigate through the images.
In this step you added content to C1Gallery control. In the next step you'll customize the
appearance and behavior of the control.
Step 3 of 3: Customizing Appearance and
Behavior You can easily customize C1Gallery's appearance and behavior. In the following steps you'll set
the control's behavior and appearance. The following steps assume you've completed Step 2 of
3: Adding Content to the C1Gallery Control topic.
Complete the following steps:
1. Source view, edit the <wijmo:C1Gallery> tag to add Width="600px" Height="256px":
2.
ComponentOne Gallery for ASP.NET Webforms
10
3. <wijmo:C1Gallery ID="C1Gallery1" runat="server" Width="600px"
Height="256px"> 4.
This sets the size of the control.
5. In Source view, edit the <wijmo:C1Gallery> tag to add ShowPager="False" ShowTimer="True":
6. 7.
<wijmo:C1Gallery ID="C1Gallery1" runat="server" Width="600px"
Height="256px" ShowPager="False" ShowTimer="True"> 8.
The control will no longer display pager buttons below the control and a timer will be
displayed.
9. In Source view, edit the <wijmo:C1Gallery> tag to add ThumbnailOrientation="Vertical" ThumbsDisplay="3":
10. 11.
<wijmo:C1Gallery ID="C1Gallery1" runat="server" Width="600px" Height="256px" ShowPager="False" ThumbnailOrientation="Vertical"
ThumbsDisplay="3"> 12.
This changes the orientation and number of thumbnails only three thumbnail images
will be displayed at a time and thumbnail images will now be displayed vertically rather
than horizontally below the selected image.
13. Run the application and observe that the control displays the changes that you made:
Notice that the location and number of thumbnail images has been changed, the
control size is smaller, and the pager is no longer displayed.
In this step you customized the appearance and behavior of the controls. Congratulations,
you've completed this quick start guide!
See Also
Design-Time Support
ComponentOne Gallery for ASP.NET Webforms
11
Design-Time Support The following sections describe how to use C1Gallery's design-time environment to configure
the C1Gallery control.
See Also
C1Gallery Smart Tag
C1Gallery Context Menu
C1Gallery Designer
Smart Tag In Visual Studio, the C1Gallery control includes a smart tag. A smart tag represents a short-cut
tasks menu that provides the most commonly used properties in C1Gallery.
The C1Gallery control provides quick and easy access to common properties through its smart
tag.
To access the C1Gallery Tasks menu, click on the smart tag in the upper-right corner of the
C1Gallery control. This will open the C1Gallery Tasks menu.
The C1Gallery Tasks menu operates as follows:
Choose Data Source
Choose an existing data source or create a new connection through the Data Source
Configuration Wizard.
ComponentOne Gallery for ASP.NET Webforms
12
Thumbnail Orientation
Sets the orientation of the thumbnail images in the control either Horizontal or
Vertical. The default orientation is Horizontal.
Add GalleryItem
Clicking the Add GalleryItem item opens the C1Gallery Designer, allowing you to add
and edit items in the C1Gallery control.
Theme
Clicking the Theme drop-down box allows you to select from various visual schemes.
For more information about available visual styles, see Themes.
Create New Theme...
The Create new theme... option opens ThemeRoller for Visual Studio. This allows
you to customize a theme without leaving your development environment. You can find
more information on using ThemeRoller for Visual Studio in your application here:
http://helpcentral.componentone.com/nethelp/c1studioWeb/Themeroller for visual
studio.html.
Use CDN
Selecting the Use CDN check box will indicate that the widget extender must load
client resources from a content delivery network. By default this box is not checked.
CDN Path
Indicates the path for the content delivery network. Enter a URL here to change the
path.
Use Bootstrap
Selecting the Use Bootstrap option applies Bootstrap theming to your control. You can
find more information on using Bootstrap theming in your application here:
http://helpcentral.componentone.com/nethelp/c1studioWeb/Bootstrap for ASP.NET
Wijmo Quick Start.html.
About
Clicking on the About item displays the About dialog box, which is helpful in finding
the version number of Gallery for ASP.NET Webforms and online resources.
Edit Templates
Clicking this option invokes Template Editing Mode.
See Also C1Gallery Context Menu
Context Menu Right-click anywhere on the list to display the C1Gallery context menu, which is a context menu
that Visual Studio provides for all .NET controls, although the C1Gallery context menu has a few
extra features.
ComponentOne Gallery for ASP.NET Webforms
13
The context menu commands operate as follows:
Show Smart Tag
Clicking this item shows the C1Gallery Tasks menu. For more information on how to
use the smart tag and available features in the Tasks menu, see Smart Tag.
Add GalleryItem
Clicking the Add GalleryItem item opens the C1Gallery Designer, allowing you to add
and edit items in the C1Gallery control.
Edit Template
Clicking this option invokes Template Editing Mode.
See Also
C1Gallery Designer
Designer The C1Gallery Designer allows you to add and edit C1GalleryItems as well set various
properties to change the appearance and behavior of the C1Gallery control.
You can access the designer from the C1Gallery Tasks menu, the context menu, and the
Properties window. Select the Add GalleryItem option from any of the menus to open the
designer.
The designer appears like the following:
ComponentOne Gallery for ASP.NET Webforms
14
Themes C1Gallery includes themes allowing you to easily change the control's appearance. The control
includes several built-in themes allowing you to customize the control's appearance to your
application. You can easily change themes from the C1Gallery Tasks menu, from the Properties
window, and in code.
The following themes are included in Gallery for ASP.NET Webforms:
Theme Preview
ComponentOne Gallery for ASP.NET Webforms
15
arctic
aristo
cobalt
ComponentOne Gallery for ASP.NET Webforms
16
midnight
rocket
sterling
ComponentOne Gallery for ASP.NET Webforms
17
Samples Please be advised that this ComponentOne software tool is accompanied by various sample
projects and/or demos which may make use of other development tools included with the
ComponentOne Studios. Samples can be accessed from the ComponentOne ControlExplorer.
To view samples, on your desktop, click the Start button and then click All Programs |
ComponentOne | Studio for ASP.NET Webforms | Samples. The ControlExplorer sample
includes a section that details some of the functionality available in the C1Gallery control.
C# Samples
The following pages within the ControlExplorer sample installed with ComponentOne Studio
for ASP.NET Webforms detail the C1Gallery control's functionality:
Sample Description
Overview This sample illustrates the default C1Gallery control, which is useful for
displaying images or other contents in a list. The Gallery has
next/previous buttons to navigate the next or previous images; it can
be played automatically.
DataBinding C1Gallerysupports data binding, it can bind image URL, caption, and
link fields, or bind any data in template.
Orientation This sample illustrates the orientation of the items of C1Gallery.
Task-Based Help The task-based help assumes that you are familiar with programming in ASP.NET and know
how to use controls in general. By following the steps outlined in the help, you will be able to
create projects demonstrating a variety of C1Gallerys features, and get a good sense of what
the C1Gallery control can do.
Each topic provides a solution for specific tasks using the C1Gallery control. Each task-based
help topic also assumes that you have created a new ASP.NET project and added references to
the appropriate assemblies.
See Also
Setting the Gallery Orientation
ComponentOne Gallery for ASP.NET Webforms
18
Adding a Pager to the Gallery
Automatically Playing the Gallery Items
Loading Gallery Items on Demand
Changing Transition Animation at Run Time
Data Binding the Gallery
Setting the Gallery Orientation Show All
Hide All
By default the C1Gallery control appears with a horizontal orientation. This example will show
you how you can use ThumbnailOrientation and ThumbnailDirection properties to change
how thumbnail images in the gallery are displayed.
In Source View
In Source view add ThumbnailOrientation="Vertical"
ThumbnailDirection="Before" to the <wijmo:C1Gallery> tag so it appears similar to
the following:
<wijmo:C1Gallery ID="C1Gallery1" runat="server"
ThumbnailOrientation="Vertical" ThumbnailDirection="Before">
In Design View
In Design view, select the C1Gallery control and in the Properties window set the following
properties:
ThumbnailOrientation property to Vertical
ThumbnailDirection property to Before
Note that you can also set the ThumbnailOrientation property to Vertical in the C1Gallery
Tasks menu. See C1Gallery Smart Tag for more information.
In Code
Add the following code to the Page_Load event:
To write code in Visual Basic
Visual Basic Copy Code
Me.C1Gallery1.ThumbnailOrientation = "Vertical"
ComponentOne Gallery for ASP.NET Webforms
19
Me.C1Gallery1.ThumbnailDirection = "Before"
To write code in C#
C# Copy Code
this.C1Gallery1.ThumbnailOrientation = "Vertical";
this.C1Gallery1.ThumbnailDirection = "Before";
See Also
Adding a Pager to the Gallery
Adding a Pager to the Gallery Show All
Hide All
The C1Gallery control includes various navigation options, one way you can make it easier for
users to navigate through Gallery items is by adding a pager to the Gallery. When the
ShowPager property is set to True a pager appear below the gallery allowing users to navigate
through all items in the gallery. In the examples below you'll add a numeric pager.
In Source View
In Source view add ShowPager="True" to the <wijmo:C1Gallery> tag so it appears similar
to the following:
<wijmo:C1Gallery ID="C1Gallery1" runat="server" ShowPager="True"> At Design Time
In Design view, select the C1Gallery control and in the Properties window set the ShowPager
property to True.
In Code
Add the following code to the Page_Load event to add a pager to the Gallery:
To write code in Visual Basic
Visual Basic Copy Code
ComponentOne Gallery for ASP.NET Webforms
20
Me.C1Gallery1.ShowPager = True
To write code in C#
C# Copy Code
this.C1Gallery1.ShowPager = true;
See Also
Automatically Playing the Gallery Items
Automatically Playing the Gallery Items Show All
Hide All
If you choose you can automatically play items in the Gallery as a slideshow. When AutoPlay is
set to True the C1Gallery will automatically cycle through content items. When ShowTimer is
True a progress bar will be displayed with a Play/Pause button to let users start and stop the
slideshow at run time.
In the examples below you'll add autoplaying and a timer to the Gallery.
In Source View
In Source view add AutoPlay="True" ShowTimer="True" to the <wijmo:C1Gallery>
tag so it appears similar to the following:
<wijmo:C1Gallery ID="C1Gallery1" runat="server" AutoPlay="True"
ShowTimer="True">
At Design Time
In Design view, select the C1Gallery control and in the Properties window set the following:
AutoPlay property to True.
ShowTimer property to True.
In Code
Add the following code to the Page_Load event:
To write code in Visual Basic
Visual Basic Copy Code
ComponentOne Gallery for ASP.NET Webforms
21
Me.C1Gallery1.AutoPlay = True
Me.C1Gallery1.ShowTimer = True
To write code in C#
C# Copy Code
this.C1Gallery1.AutoPlay = true;
this.C1Gallery1.ShowTimer = true;
See Also
Loading Gallery Items on Demand
Loading Gallery Items on Demand Show All
Hide All
C1Gallery supports retrieving data (nodes) dynamically. Child items are loaded using AJAX
when they are scrolled into view. In the examples below you'll enable loading data on demand
by setting the LoadOnDemand property to True.
In Source View
In Source view add LoadOnDemand="True" to the <wijmo:C1Gallery> tag so it appears
similar to the following:
<wijmo:C1Gallery ID="C1Gallery1" runat="server" LoadOnDemand="True">
At Design Time
In Design view, select the C1Gallery control and in the Properties window set the
LoadOnDemand property to True.
In Code
Add the following code to the Page_Load event:
ComponentOne Gallery for ASP.NET Webforms
22
To write code in Visual Basic
Visual Basic Copy Code
Me.C1Gallery1.LoadOnDemand = True
To write code in C#
C# Copy Code
this.C1Gallery1.LoadOnDemand = true;
See Also
Changing Transition Animation at Run Time
Changing Transition Animation at Run
Time Show All
Hide All
You can customize your application by adding transition animation effects to the C1Gallery
control. These animations appear when navigating through gallery images when one image
transitions to the next. This example will show you how to set and change these animation
effects at run time.
Complete the following steps:
1. In Source view, edit the <wijmo:C1Gallery> markup so it appears like the following:
XML Code
<wijmo:C1Gallery ID="C1Gallery1" runat="server" ShowTimer="True" Width="750px"
Height="256px" ThumbnailOrientation="Vertical" ThumbsDisplay="3"
ShowPager="false"> <Transitions> <Animated Disabled="false" Effect="slide" />
</Transitions>
<Items>
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/750/300/sports/1"
ImageUrl="http://lorempixum.com/200/150/sports/1" />
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/750/300/sports/2"
ImageUrl="http://lorempixum.com/200/150/sports/2" />
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/750/300/sports/3"
ComponentOne Gallery for ASP.NET Webforms
23
ImageUrl="http://lorempixum.com/200/150/sports/3" />
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/750/300/sports/4"
ImageUrl="http://lorempixum.com/200/150/sports/4" />
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/750/300/sports/5"
ImageUrl="http://lorempixum.com/200/150/sports/5" />
<wijmo:C1GalleryItem LinkUrl="http://lorempixum.com/750/300/sports/6"
ImageUrl="http://lorempixum.com/200/150/sports/6" />
</Items>
</wijmo:C1Gallery>
This customizes the gallery control and adds images to the control.
2. Add the following markup just below the gallery markup:
XML Code
<label for="showingEffectTypes"> Animation </label>
<asp:DropDownList ID="showEffectTypes" runat="server">
<asp:ListItem Value="blind" Selected="True">Blind</asp:ListItem>
<asp:ListItem Value="clip">Clip</asp:ListItem>
<asp:ListItem Value="drop">Drop</asp:ListItem>
<asp:ListItem Value="explode">Explode</asp:ListItem>
<asp:ListItem Value="fade">Fade</asp:ListItem>
<asp:ListItem Value="fold">Fold</asp:ListItem>
<asp:ListItem Value="highlight">Highlight</asp:ListItem>
<asp:ListItem Value="puff">Puff</asp:ListItem>
<asp:ListItem Value="pulsate">Pulsate</asp:ListItem>
<asp:ListItem Value="scale">Scale</asp:ListItem>
<asp:ListItem Value="size">Size</asp:ListItem>
<asp:ListItem Value="slide">Slide</asp:ListItem>
</asp:DropDownList>
This adds a drop-down list with the types of animation transition effects.
3. Add the following markup just below the previous markup:
XML Code
<script type="text/javascript">
$(document).ready(function () {
var transitions = {
animated: "fade",
duration: 1000,
easing: null
}
$('#<%=showEffectTypes.ClientID%>').change(function () {
var ee = $("#<%=showEffectTypes.ClientID%> option:selected").val();
ComponentOne Gallery for ASP.NET Webforms
24
$.extend(transitions, { animated: ee });
$("#<%=C1Gallery1.ClientID%>").c1gallery("option", "transitions", transitions);
});
});
</script>
This script sets the animation effect at run time.
What You've Accomplished
Run the application and at run time choose an animation effect from the drop-down box. Click
the Previous or Next buttons in the gallery to view the transition animation effect you selected.
You can choose another effect to view how it appears when moving between images in the
gallery.
See Also
Data Binding the Gallery
Data Binding the Gallery Show All
Hide All
C1Gallery supports data binding, it can bind image URL, caption, and link fields, or bind any
data in template. Data binding is allowed if the following properties are set:
DataSourceID - sets the ID of the data source.
DataCaptionField - sets the field in the data source from which to load the caption of
the images.
DataLinkUrlField - sets the field in the data source from which to load link fields.
DataImageUrlField - sets the field in the data source from which to load image URL
fields.
In this example you'll data bind the gallery. Complete the following steps:
1. In Source view, edit the <wijmo:C1Gallery> markup so it appears like the following:
<wijmo:C1Gallery ID="C1Gallery1" runat="server" ShowTimer="True"
Width="750px" Height="416px" ThumbsDisplay="4">
</wijmo:C1Gallery>
This customizes the gallery control.
2. Right-click the page and select View Code to switch to open the Code Editor.
3. Add the following code to the initial class:
To write code in Visual Basic
ComponentOne Gallery for ASP.NET Webforms
25
Visual Basic Copy Code
Private Const TEXT As String = "{0} Vestibulum venenatis faucibus eros, vitae
vulputate ipsum tempor ut. Donec ut ligula a metus volutpat sagittis. Duis
sodales, lorem nec suscipit imperdiet, sapien metus tempor nibh, dapibus
pulvinar lorem lacus molestie lacus. "
To write code in C#
C# Copy Code
private const string TEXT = "{0} Vestibulum venenatis faucibus eros, vitae
vulputate ipsum tempor ut. Donec ut ligula a metus volutpat sagittis. Duis
sodales, lorem nec suscipit imperdiet, sapien metus tempor nibh, dapibus
pulvinar lorem lacus molestie lacus. ";
4. Add the following code to the Page_Load event:
To write code in Visual Basic
Visual Basic Copy Code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
If Not IsPostBack OrElse IsCallback Then
bind()
End If
End Sub
To write code in C#
C# Copy Code
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack || IsCallback)
{
ComponentOne Gallery for ASP.NET Webforms
26
bind();
}
}
5. Add the following code just below the Page_Load event within the main class:
To write code in Visual Basic
Visual Basic Copy Code
Private Sub bind()
Dim list1 As List(Of ContentGallery) =
GetDataSource("http://lorempixum.com/200/150/sports/{0}",
"http://lorempixum.com/750/300/sports/{0}")
C1Gallery1.DataSource = list1
C1Gallery1.DataImageUrlField = "ImgUrl"
C1Gallery1.DataLinkUrlField = "LinkUrl"
C1Gallery1.DataCaptionField = "Caption"
C1Gallery1.DataBind()
End Sub
To write code in C#
C# Copy Code
private void bind()
{
List list1 = GetDataSource("http://lorempixum.com/200/150/sports/{0}",
"http://lorempixum.com/750/300/sports/{0}");
C1Gallery1.DataSource = list1;
C1Gallery1.DataImageUrlField = "ImgUrl";
C1Gallery1.DataLinkUrlField = "LinkUrl";
C1Gallery1.DataCaptionField = "Caption";
C1Gallery1.DataBind();
}
This code sets up the gallery's data binding.
6. Add the following code within the main class:
ComponentOne Gallery for ASP.NET Webforms
27
To write code in Visual Basic
Visual Basic Copy Code
Private Function GetDataSource(urlFormatStr As String, linkFormatStr As
String) As List(Of ContentGallery)
Dim list As New List(Of ContentGallery)()
For i As Integer = 1 To 10
list.Add(New ContentGallery() With { _
.Content = String.Format(TEXT, String.Format("{0}.The picture one, ",
i.ToString())), _
.LinkUrl = String.Format(linkFormatStr, i.ToString()), _
.ImgUrl = String.Format(urlFormatStr, i.ToString()), _
.Caption = String.Format("Pic {0}", i.ToString()) _
})
Next
Return list
End Function
To write code in C#
C# Copy Code
private List GetDataSource(string urlFormatStr, string linkFormatStr)
{
List list = new List();
for (int i = 1; i < 11; i++)
{
list.Add(new ContentGallery()
{
Content = string.Format(TEXT, string.Format("{0}.The picture one,
", i.ToString())),
LinkUrl = string.Format(linkFormatStr, i.ToString()),
ImgUrl = string.Format(urlFormatStr, i.ToString()),
Caption = string.Format("Pic {0}", i.ToString())
});
}
return list;
}
ComponentOne Gallery for ASP.NET Webforms
28
This code adds content to the gallery.
7. Add the following class code just below the main class:
To write code in Visual Basic
Visual Basic Copy Code
Public Class ContentGallery
Public Property Content() As String
Get
Return m_Content
End Get
Set(value As String)
m_Content = Value
End Set
End Property
Private m_Content As String
Public Property ImgUrl() As String
Get
Return m_ImgUrl
End Get
Set(value As String)
m_ImgUrl = value
End Set
End Property
Private m_ImgUrl As String
Public Property LinkUrl() As String
Get
Return m_LinkUrl
End Get
Set(value As String)
m_LinkUrl = value
End Set
End Property
Private m_LinkUrl As String
Public Property Caption() As String
Get
Return m_Caption
End Get
ComponentOne Gallery for ASP.NET Webforms
29
Set(value As String)
m_Caption = value
End Set
End Property
Private m_Caption As String
End Class
To write code in C#
C# Copy Code
public class ContentGallery
{
public string Content
{ get; set; }
public string ImgUrl
{ get; set; }
public string LinkUrl
{ get; set; }
public string Caption
{ get; set; }
}
What You've Accomplished
Run the application and observe that the C1Gallery control is data bound and several images
appear in the gallery control.
Client-Side Reference As part of the amazing ComponentOne Web stack, the Wijmo jQuery UI widgets are optimized
for client-side Web development and utilize the power of jQuery for superior performance and
ease of use.
The ComponentOne Wijmo Web site at http://wijmo.com/widgets/ provides everything you
need to know about Wijmo widgets, including demos and samples, documentation, theming
examples, support and more.
The client-side documentation provides an overview, sample markup, options, events, and
methods for each widget. To get started with client-side Web development for Gallery for
ASP.NET Webforms, click one of the external links to view our Wijmo wiki documentation.
ComponentOne Gallery for ASP.NET Webforms
30
Note that the Overview topic for each of the widgets applies mainly to the widget, not to the
server-side ASP.NET Webforms control.
wijgallery documentation
wijgallery API
C1.Web.Wijmo.Controls.4 Assembly
Namespaces
C1.Web.Wijmo.Controls Namespace
Overview Inheritance Hierarchy
Classes
Class Description
C1BaseStateManager Base class to support view state management for a server
control.
C1TargetControlBase Class to be used as base for the wijmo extenders target
controls. Class to be used as base for the wijmo target
controls.
C1TargetControlHelper
C1TargetControlHelper<T>
See Also
Reference
C1.Web.Wijmo.Controls.4 Assembly
ComponentOne Gallery for ASP.NET Webforms
31
Classes
C1BaseStateManager Base class to support view state management for a server control.
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class C1BaseStateManager
C#
public abstract class C1BaseStateManager
Inheritance Hierarchy
System.Object
C1.Web.Wijmo.Controls.C1BaseStateManager
See Also
Reference
C1BaseStateManager Members
C1.Web.Wijmo.Controls Namespace
Overview Base class to support view state management for a server control.
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class C1BaseStateManager
ComponentOne Gallery for ASP.NET Webforms
32
C#
public abstract class C1BaseStateManager
Inheritance Hierarchy
System.Object
C1.Web.Wijmo.Controls.C1BaseStateManager
See Also
Reference
C1BaseStateManager Members
C1.Web.Wijmo.Controls Namespace
Members The following tables list the members exposed by C1BaseStateManager.
See Also
Reference
C1BaseStateManager Class
C1.Web.Wijmo.Controls Namespace
C1TargetControlBase Class to be used as base for the wijmo extenders target controls. Class to be used as base for
the wijmo target controls.
Object Model
Syntax
Visual Basic (Declaration)
<WidgetDependenciesAttribute(System.Object[])>
Public MustInherit Class C1TargetControlBase
Inherits System.Web.UI.WebControls.WebControl
C#
[WidgetDependencies(System.Object[])]
ComponentOne Gallery for ASP.NET Webforms
33
public abstract class C1TargetControlBase :
System.Web.UI.WebControls.WebControl
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
C1.Web.Wijmo.Controls.C1TargetControlBase
See Also
Reference
C1TargetControlBase Members
C1.Web.Wijmo.Controls Namespace
Overview Class to be used as base for the wijmo extenders target controls. Class to be used as base for
the wijmo target controls.
Object Model
Syntax
Visual Basic (Declaration)
<WidgetDependenciesAttribute(System.Object[])>
Public MustInherit Class C1TargetControlBase
Inherits System.Web.UI.WebControls.WebControl
C#
[WidgetDependencies(System.Object[])]
public abstract class C1TargetControlBase :
System.Web.UI.WebControls.WebControl
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
C1.Web.Wijmo.Controls.C1TargetControlBase
ComponentOne Gallery for ASP.NET Webforms
34
See Also
Reference
C1TargetControlBase Members
C1.Web.Wijmo.Controls Namespace
Members The following tables list the members exposed by C1TargetControlBase.
Public Properties
Name Description
AccessKey (Inherited from
System.Web.UI.WebControls.WebControl)
AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)
Attributes (Inherited from
System.Web.UI.WebControls.WebControl)
CDNDependencyPaths A string array value specifies all css/js references that
wijmo control depends on.
CDNPath Content Delivery Network path.
ClientID (Inherited from System.Web.UI.Control)
ClientIDMode (Inherited from System.Web.UI.Control)
Controls (Inherited from System.Web.UI.Control)
ControlStyle (Inherited from
System.Web.UI.WebControls.WebControl)
ControlStyleCreated (Inherited from
System.Web.UI.WebControls.WebControl)
CssClass (Inherited from
ComponentOne Gallery for ASP.NET Webforms
35
System.Web.UI.WebControls.WebControl)
DisplayVisible Gets or sets a value that indicates whether a server
control is rendered as UI on the page.
EnableCombinedJavaScripts Enable JavaScripts files combined into one file. In
order to combined enabled, you must register the
WijmoHttpHandler in web.config.
Enabled Overridden. Gets or sets a value indicating whether
the Web server control is enabled.
EnableTheming (Inherited from
System.Web.UI.WebControls.WebControl)
EnableViewState (Inherited from System.Web.UI.Control)
HasAttributes (Inherited from
System.Web.UI.WebControls.WebControl)
Height (Inherited from
System.Web.UI.WebControls.WebControl)
ID (Inherited from System.Web.UI.Control)
NamingContainer (Inherited from System.Web.UI.Control)
Page (Inherited from System.Web.UI.Control)
Parent (Inherited from System.Web.UI.Control)
RenderingCompatibility (Inherited from System.Web.UI.Control)
Site (Inherited from System.Web.UI.Control)
SkinID (Inherited from
System.Web.UI.WebControls.WebControl)
ComponentOne Gallery for ASP.NET Webforms
36
Style (Inherited from
System.Web.UI.WebControls.WebControl)
SupportsDisabledAttribute (Inherited from
System.Web.UI.WebControls.WebControl)
TabIndex (Inherited from
System.Web.UI.WebControls.WebControl)
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
Theme Name of the theme that will be used to style the
widgets. Available embedded themes include: aristo,
midnight, and ui-lightness. Note that only one theme
can be used for the whole page at one time. Please
make sure that all widget extenders have the same
Theme value.
ThemeSwatch A value that indicates the theme swatch of the
control, this property only works when
WijmoControlMode property is Mobile.
ToolTip (Inherited from
System.Web.UI.WebControls.WebControl)
UniqueID (Inherited from System.Web.UI.Control)
UseCDN Determines whether the widget extender must load
client resources from CDN (Content Delivery
Network) path given by property CDNPath.
ValidateRequestMode (Inherited from System.Web.UI.Control)
ViewStateMode (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
37
Width (Inherited from
System.Web.UI.WebControls.WebControl)
WijmoControlMode A value that indicates mode of the control, whether it
is a mobile or web control. Note that only one value
can be used for the whole website or project.
WijmoCssAdapter Indicates the control applies the theme of JQuery UI
or Bootstrap.
Top
Public Methods
Name Description
ApplyStyle (Inherited from System.Web.UI.WebControls.WebControl)
ApplyStyleSheetSkin (Inherited from System.Web.UI.Control)
CopyBaseAttributes (Inherited from System.Web.UI.WebControls.WebControl)
DataBind (Inherited from System.Web.UI.Control)
Dispose (Inherited from System.Web.UI.Control)
FindControl (Inherited from System.Web.UI.Control)
Focus (Inherited from System.Web.UI.Control)
GetPropertyValue<V> Gets the property value by property name.
GetRouteUrl Overloaded. (Inherited from System.Web.UI.Control)
GetScriptDescriptors When overridden in a derived class, registers the
WidgetDescriptor objects for the control.
GetScriptReferences When overridden in a derived class, registers an additional
script libraries for the extender control.
ComponentOne Gallery for ASP.NET Webforms
38
GetUniqueIDRelativeTo (Inherited from System.Web.UI.Control)
HasControls (Inherited from System.Web.UI.Control)
MergeStyle (Inherited from System.Web.UI.WebControls.WebControl)
RegisterDesignTimeStyleSheet Register design time stylesheet
RenderBeginTag (Inherited from System.Web.UI.WebControls.WebControl)
RenderControl (Inherited from System.Web.UI.Control)
RenderEndTag (Inherited from System.Web.UI.WebControls.WebControl)
ResolveClientUrl (Inherited from System.Web.UI.Control)
ResolveUrl (Inherited from System.Web.UI.Control)
SetPropertyValue<V> Sets the property value by property name.
SetRenderMethodDelegate (Inherited from System.Web.UI.Control)
Top
Public Events
Name Description
DataBinding (Inherited from System.Web.UI.Control)
Disposed (Inherited from System.Web.UI.Control)
Init (Inherited from System.Web.UI.Control)
Load (Inherited from System.Web.UI.Control)
PreRender (Inherited from System.Web.UI.Control)
Unload (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
39
Top
See Also
Reference
C1TargetControlBase Class
C1.Web.Wijmo.Controls Namespace
Methods For a list of all members of this type, see C1TargetControlBase members.
Public Methods
Name Description
ApplyStyle (Inherited from System.Web.UI.WebControls.WebControl)
ApplyStyleSheetSkin (Inherited from System.Web.UI.Control)
CopyBaseAttributes (Inherited from System.Web.UI.WebControls.WebControl)
DataBind (Inherited from System.Web.UI.Control)
Dispose (Inherited from System.Web.UI.Control)
FindControl (Inherited from System.Web.UI.Control)
Focus (Inherited from System.Web.UI.Control)
GetPropertyValue<V> Gets the property value by property name.
GetRouteUrl Overloaded. (Inherited from System.Web.UI.Control)
GetScriptDescriptors When overridden in a derived class, registers the
WidgetDescriptor objects for the control.
GetScriptReferences When overridden in a derived class, registers an additional
script libraries for the extender control.
ComponentOne Gallery for ASP.NET Webforms
40
GetUniqueIDRelativeTo (Inherited from System.Web.UI.Control)
HasControls (Inherited from System.Web.UI.Control)
MergeStyle (Inherited from System.Web.UI.WebControls.WebControl)
RegisterDesignTimeStyleSheet Register design time stylesheet
RenderBeginTag (Inherited from System.Web.UI.WebControls.WebControl)
RenderControl (Inherited from System.Web.UI.Control)
RenderEndTag (Inherited from System.Web.UI.WebControls.WebControl)
ResolveClientUrl (Inherited from System.Web.UI.Control)
ResolveUrl (Inherited from System.Web.UI.Control)
SetPropertyValue<V> Sets the property value by property name.
SetRenderMethodDelegate (Inherited from System.Web.UI.Control)
Top
See Also
Reference
C1TargetControlBase Class
C1.Web.Wijmo.Controls Namespace
GetPropertyValue<V> Method Gets the property value by property name.
Syntax
Visual Basic (Declaration)
Public Function GetPropertyValue(Of V)( _
ByVal propertyName As System.String, _
ByVal nullValue As V _
ComponentOne Gallery for ASP.NET Webforms
41
) As V
C#
public V GetPropertyValue<V>(
System.string propertyName,
V nullValue
)
Parameters
propertyName
Name of the property.
nullValue
The null value.
Type Parameters
V
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
GetScriptDescriptors Method When overridden in a derived class, registers the WidgetDescriptor objects for the control.
Syntax
Visual Basic (Declaration)
Public Overridable Function GetScriptDescriptors() As
System.Collections.Generic.IEnumerable(Of ScriptDescriptor)
C#
public virtual System.Collections.Generic.IEnumerable<ScriptDescriptor>
GetScriptDescriptors()
Return Value
An enumeration of WidgetDescriptor objects.
ComponentOne Gallery for ASP.NET Webforms
42
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
GetScriptReferences Method When overridden in a derived class, registers an additional script libraries for the extender
control.
Syntax
Visual Basic (Declaration)
Public Overridable Function GetScriptReferences() As
System.Collections.Generic.IEnumerable(Of ScriptReference)
C#
public virtual System.Collections.Generic.IEnumerable<ScriptReference>
GetScriptReferences()
Return Value
An object that implements the System.Collections.IEnumerable interface and that contains
ECMAScript (JavaScript) files that have been registered as embedded resources.
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
RegisterDesignTimeStyleSheet Method The System.Web.UI.HtmlTextWriter object that receives the server control content.
resource name of stylesheet file
Register design time stylesheet
Syntax
Visual Basic (Declaration)
Public Sub RegisterDesignTimeStyleSheet( _
ComponentOne Gallery for ASP.NET Webforms
43
ByVal writer As System.Web.UI.HtmlTextWriter, _
ByVal cssResourceName As System.String _
)
C#
public void RegisterDesignTimeStyleSheet(
System.Web.UI.HtmlTextWriter writer,
System.string cssResourceName
)
Parameters
writer
The System.Web.UI.HtmlTextWriter object that receives the server control content.
cssResourceName
resource name of stylesheet file
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
SetPropertyValue<V> Method Sets the property value by property name.
Syntax
Visual Basic (Declaration)
Public Sub SetPropertyValue(Of V)( _
ByVal propertyName As System.String, _
ByVal value As V _
)
C#
public void SetPropertyValue<V>(
System.string propertyName,
V value
)
Parameters
ComponentOne Gallery for ASP.NET Webforms
44
propertyName
Name of the property.
value
The value.
Type Parameters
V
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
Properties For a list of all members of this type, see C1TargetControlBase members.
Public Properties
Name Description
AccessKey (Inherited from
System.Web.UI.WebControls.WebControl)
AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)
Attributes (Inherited from
System.Web.UI.WebControls.WebControl)
CDNDependencyPaths A string array value specifies all css/js references that
wijmo control depends on.
CDNPath Content Delivery Network path.
ClientID (Inherited from System.Web.UI.Control)
ClientIDMode (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
45
Controls (Inherited from System.Web.UI.Control)
ControlStyle (Inherited from
System.Web.UI.WebControls.WebControl)
ControlStyleCreated (Inherited from
System.Web.UI.WebControls.WebControl)
CssClass (Inherited from
System.Web.UI.WebControls.WebControl)
DisplayVisible Gets or sets a value that indicates whether a server
control is rendered as UI on the page.
EnableCombinedJavaScripts Enable JavaScripts files combined into one file. In
order to combined enabled, you must register the
WijmoHttpHandler in web.config.
Enabled Overridden. Gets or sets a value indicating whether
the Web server control is enabled.
EnableTheming (Inherited from
System.Web.UI.WebControls.WebControl)
EnableViewState (Inherited from System.Web.UI.Control)
HasAttributes (Inherited from
System.Web.UI.WebControls.WebControl)
Height (Inherited from
System.Web.UI.WebControls.WebControl)
ID (Inherited from System.Web.UI.Control)
NamingContainer (Inherited from System.Web.UI.Control)
Page (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
46
Parent (Inherited from System.Web.UI.Control)
RenderingCompatibility (Inherited from System.Web.UI.Control)
Site (Inherited from System.Web.UI.Control)
SkinID (Inherited from
System.Web.UI.WebControls.WebControl)
Style (Inherited from
System.Web.UI.WebControls.WebControl)
SupportsDisabledAttribute (Inherited from
System.Web.UI.WebControls.WebControl)
TabIndex (Inherited from
System.Web.UI.WebControls.WebControl)
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
Theme Name of the theme that will be used to style the
widgets. Available embedded themes include: aristo,
midnight, and ui-lightness. Note that only one theme
can be used for the whole page at one time. Please
make sure that all widget extenders have the same
Theme value.
ThemeSwatch A value that indicates the theme swatch of the
control, this property only works when
WijmoControlMode property is Mobile.
ToolTip (Inherited from
System.Web.UI.WebControls.WebControl)
UniqueID (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
47
UseCDN Determines whether the widget extender must load
client resources from CDN (Content Delivery
Network) path given by property CDNPath.
ValidateRequestMode (Inherited from System.Web.UI.Control)
ViewStateMode (Inherited from System.Web.UI.Control)
Width (Inherited from
System.Web.UI.WebControls.WebControl)
WijmoControlMode A value that indicates mode of the control, whether it
is a mobile or web control. Note that only one value
can be used for the whole website or project.
WijmoCssAdapter Indicates the control applies the theme of JQuery UI
or Bootstrap.
Top
See Also
Reference
C1TargetControlBase Class
C1.Web.Wijmo.Controls Namespace
CDNDependencyPaths Property A string array value specifies all css/js references that wijmo control depends on.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1Base.CDNDependencyPaths", Description="A
string array value specifies all css/js references that wijmo control depends
on.")>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
ComponentOne Gallery for ASP.NET Webforms
48
lizationVisibility.Hidden)>
Public Overridable Property CDNDependencyPaths As System.String()
C#
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1Base.CDNDependencyPaths", Description="A string
array value specifies all css/js references that wijmo control depends
on.")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
public virtual System.string[] CDNDependencyPaths {get; set;}
Remarks
Using this property, user can specify the CDN dependencies(such as jQuery, jQuery UI, jQuery
mobile, bootstrap). If some dependencies are set in this property, wijmo controls will find
dependencies path in this property. If found, use the path to load dependency, otherwise, use
the default CDN path. For example, if user wants to specify the dependencies of jQuery and
jQuery UI, he can set the value like this: ["http://ajax.aspnetcdn.com/ajax/jQuery/jquery-
1.11.1.min.js", "http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.1/jquery-ui.js"]
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
CDNPath Property Content Delivery Network path.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<System.ComponentModel.DefaultValueAttribute()>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
<C1DescriptionAttribute(Key="C1Base.CDNPath", Description="Content Delivery
Network path.")>
<C1CategoryAttribute("Behavior")>
ComponentOne Gallery for ASP.NET Webforms
49
Public Overridable Property CDNPath As System.String
C#
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
[C1Description(Key="C1Base.CDNPath", Description="Content Delivery
Network path.")]
[C1Category("Behavior")]
public virtual System.string CDNPath {get; set;}
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
DisplayVisible Property Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("Behavior")>
<WidgetOptionAttribute()>
<LayoutAttribute(LayoutType.Behavior)>
<C1DescriptionAttribute(Key="C1Controls.DisplayVisible", Description="Gets or
sets a value that indicates whether a server control is rendered as UI on the
page.")>
Public Property DisplayVisible As System.Boolean
C#
[System.ComponentModel.DefaultValue()]
[C1Category("Behavior")]
[WidgetOption()]
[Layout(LayoutType.Behavior)]
[C1Description(Key="C1Controls.DisplayVisible", Description="Gets or sets a
value that indicates whether a server control is rendered as UI on the
page.")]
ComponentOne Gallery for ASP.NET Webforms
50
public System.bool DisplayVisible {get; set;}
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
EnableCombinedJavaScripts Property Enable JavaScripts files combined into one file. In order to combined enabled, you must register
the WijmoHttpHandler in web.config.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
<C1DescriptionAttribute(Key="C1Base.EnableCombinedJavaScripts",
Description="Enable JavaScripts files combined into one file.")>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
Public Overridable Property EnableCombinedJavaScripts As System.Boolean
C#
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
[C1Description(Key="C1Base.EnableCombinedJavaScripts",
Description="Enable JavaScripts files combined into one file.")]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
public virtual System.bool EnableCombinedJavaScripts {get; set;}
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
Enabled Property Gets or sets a value indicating whether the Web server control is enabled.
Syntax
ComponentOne Gallery for ASP.NET Webforms
51
Visual Basic (Declaration)
<WidgetOptionAttribute()>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1Base.Enabled", Description="Indicates whether
control is enabled.")>
Public Overrides Property Enabled As System.Boolean
C#
[WidgetOption()]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1Base.Enabled", Description="Indicates whether control
is enabled.")]
public override System.bool Enabled {get; set;}
Property Value
true if control is enabled; otherwise, false. The default is true.
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
Theme Property Name of the theme that will be used to style the widgets. Available embedded themes include:
aristo, midnight, and ui-lightness. Note that only one theme can be used for the whole page at
one time. Please make sure that all widget extenders have the same Theme value.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<C1CategoryAttribute("Behavior")>
<C1DescriptionAttribute(Key="C1Base.Theme", Description="Name of the theme
that will be used to style widgets. Available themes: aristo / midnight / ui-
lightness. Note, only one theme can be used for the whole page at one time.
Please, make sure that all widget extenders have the same Theme value.")>
ComponentOne Gallery for ASP.NET Webforms
52
<TypeConverterAttribute("C1.Web.Wijmo.Controls.WijmoThemeNameConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20143.198, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
Public Overridable Property Theme As System.String
C#
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[C1Category("Behavior")]
[C1Description(Key="C1Base.Theme", Description="Name of the theme that
will be used to style widgets. Available themes: aristo / midnight / ui-
lightness. Note, only one theme can be used for the whole page at one
time. Please, make sure that all widget extenders have the same Theme
value.")]
[TypeConverter("C1.Web.Wijmo.Controls.WijmoThemeNameConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20143.198, Culture=neutral,
PublicKeyToken=9b75583953471eea")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
public virtual System.string Theme {get; set;}
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
ThemeSwatch Property A value that indicates the theme swatch of the control, this property only works when
WijmoControlMode property is Mobile.
Syntax
Visual Basic (Declaration)
<TypeConverterAttribute("C1.Web.Wijmo.Controls.WijmoThemeSwatchConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20143.198, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
<C1DescriptionAttribute(Key="C1Base.ThemeSwatch", Description="A value that
indicates the theme swatch of the control, this property only works when
ComponentOne Gallery for ASP.NET Webforms
53
WijmoControlMode property is Mobile.")>
<C1CategoryAttribute("Appearance")>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionAttribute()>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
Public Overridable Property ThemeSwatch As System.String
C#
[TypeConverter("C1.Web.Wijmo.Controls.WijmoThemeSwatchConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20143.198, Culture=neutral,
PublicKeyToken=9b75583953471eea")]
[C1Description(Key="C1Base.ThemeSwatch", Description="A value that
indicates the theme swatch of the control, this property only works when
WijmoControlMode property is Mobile.")]
[C1Category("Appearance")]
[System.ComponentModel.DefaultValue()]
[WidgetOption()]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
public virtual System.string ThemeSwatch {get; set;}
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
UseCDN Property Determines whether the widget extender must load client resources from CDN (Content
Delivery Network) path given by property CDNPath.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
<C1DescriptionAttribute(Key="C1Base.UseCDN", Description="Determines whether
ComponentOne Gallery for ASP.NET Webforms
54
this extender loads client script references from CDN.")>
Public Overridable Property UseCDN As System.Boolean
C#
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
[C1Description(Key="C1Base.UseCDN", Description="Determines whether this
extender loads client script references from CDN.")]
public virtual System.bool UseCDN {get; set;}
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
WijmoControlMode Property A value that indicates mode of the control, whether it is a mobile or web control. Note that only
one value can be used for the whole website or project.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Base.WijmoControlMode", Description="A value
that indicates mode of the control, whether it is a mobile or web control.
Note that only one value can be used for the whole website or project.")>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
Public Overridable Property WijmoControlMode As WijmoControlMode
C#
[C1Description(Key="C1Base.WijmoControlMode", Description="A value that
indicates mode of the control, whether it is a mobile or web control.
Note that only one value can be used for the whole website or project.")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ComponentOne Gallery for ASP.NET Webforms
55
ionVisibility.Hidden)]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
public virtual WijmoControlMode WijmoControlMode {get; set;}
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
WijmoCssAdapter Property Indicates the control applies the theme of JQuery UI or Bootstrap.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1Base.WijmoCssAdapter", Description="Indicates
the control applies the theme of JQuery UI or Bootstrap.")>
<TypeConverterAttribute("C1.Web.Wijmo.Controls.WijmoCssAdapterConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20143.198, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
Public Overridable Property WijmoCssAdapter As System.String
C#
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1Base.WijmoCssAdapter", Description="Indicates the
control applies the theme of JQuery UI or Bootstrap.")]
[TypeConverter("C1.Web.Wijmo.Controls.WijmoCssAdapterConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20143.198, Culture=neutral,
PublicKeyToken=9b75583953471eea")]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
ComponentOne Gallery for ASP.NET Webforms
56
public virtual System.string WijmoCssAdapter {get; set;}
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
C1TargetControlHelper
Object Model
Syntax
Visual Basic (Declaration)
Friend Class C1TargetControlHelper
C#
internal class C1TargetControlHelper
Inheritance Hierarchy
System.Object
C1.Web.Wijmo.Controls.C1TargetControlHelper
C1.Web.Wijmo.Controls.C1TargetControlHelper<T>
See Also
Reference
C1TargetControlHelper Members
C1.Web.Wijmo.Controls Namespace
Overview
Object Model
Syntax
ComponentOne Gallery for ASP.NET Webforms
57
Visual Basic (Declaration)
Friend Class C1TargetControlHelper
C#
internal class C1TargetControlHelper
Inheritance Hierarchy
System.Object
C1.Web.Wijmo.Controls.C1TargetControlHelper
C1.Web.Wijmo.Controls.C1TargetControlHelper<T>
See Also
Reference
C1TargetControlHelper Members
C1.Web.Wijmo.Controls Namespace
Members The following tables list the members exposed by C1TargetControlHelper.
Public Constructors
Name Description
C1TargetControlHelper Constructor
Top
Public Methods
Name Description
ResolveEmbeddedResourceUrl
Top
See Also
Reference
C1TargetControlHelper Class
C1.Web.Wijmo.Controls Namespace
ComponentOne Gallery for ASP.NET Webforms
58
C1TargetControlHelper Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public C1TargetControlHelper()
See Also
Reference
C1TargetControlHelper Class
C1TargetControlHelper Members
Methods For a list of all members of this type, see C1TargetControlHelper members.
Public Methods
Name Description
ResolveEmbeddedResourceUrl
Top
See Also
Reference
C1TargetControlHelper Class
C1.Web.Wijmo.Controls Namespace
ResolveEmbeddedResourceUrl Method
Syntax
Visual Basic (Declaration)
Public Shared Function ResolveEmbeddedResourceUrl( _
ByVal resourceName As System.String, _
ByVal page As System.Web.UI.Page, _
ComponentOne Gallery for ASP.NET Webforms
59
ByVal combinedScript As System.Boolean _
) As System.String
C#
public static System.string ResolveEmbeddedResourceUrl(
System.string resourceName,
System.Web.UI.Page page,
System.bool combinedScript
)
Parameters
resourceName
page
combinedScript
See Also
Reference
C1TargetControlHelper Class
C1TargetControlHelper Members
C1TargetControlHelper<T>
Object Model
Syntax
Visual Basic (Declaration)
Friend Class C1TargetControlHelper(Of T As
{System.Web.UI.WebControls.WebControl, IC1TargetControl})
Inherits C1TargetControlHelper
C#
internal class C1TargetControlHelper<T> : C1TargetControlHelper
where T: System.Web.UI.WebControls.WebControl, IC1TargetControl
Type Parameters
T
ComponentOne Gallery for ASP.NET Webforms
60
Inheritance Hierarchy
System.Object
C1.Web.Wijmo.Controls.C1TargetControlHelper
C1.Web.Wijmo.Controls.C1TargetControlHelper<T>
See Also
Reference
C1TargetControlHelper<T> Members
C1.Web.Wijmo.Controls Namespace
Overview
Object Model
Syntax
Visual Basic (Declaration)
Friend Class C1TargetControlHelper(Of T As
{System.Web.UI.WebControls.WebControl, IC1TargetControl})
Inherits C1TargetControlHelper
C#
internal class C1TargetControlHelper<T> : C1TargetControlHelper
where T: System.Web.UI.WebControls.WebControl, IC1TargetControl
Type Parameters
T
Inheritance Hierarchy
System.Object
C1.Web.Wijmo.Controls.C1TargetControlHelper
C1.Web.Wijmo.Controls.C1TargetControlHelper<T>
See Also
Reference
ComponentOne Gallery for ASP.NET Webforms
61
C1TargetControlHelper<T> Members
C1.Web.Wijmo.Controls Namespace
Members The following tables list the members exposed by C1TargetControlHelper<T>.
Public Constructors
Name Description
C1TargetControlHelper<T> Constructor
Top
Public Properties
Name Description
Control
JsonSerializableHelper
Page
ScriptManager
Top
Public Methods
Name Description
EnsureEnabledState
GetScriptDescriptors Overloaded. When overridden in a derived
class, registers the WidgetDescriptor
objects for the control.
RegisterDesignTimeStyleSheet Register design-time CSS stylesheet.
RegisterDesignTimeStyleSheets
ComponentOne Gallery for ASP.NET Webforms
62
RegisterIncludes
RegisterOnSubmitStatement
RegisterRunTimeStylesheets
RegisterScriptDescriptors
RegisterScriptDescriptorsWithoutScriptManager
RegisterScriptDescriptorsWithScriptManager
RenderJsonDataField
ShowAbout Show about message box.
Top
See Also
Reference
C1TargetControlHelper<T> Class
C1.Web.Wijmo.Controls Namespace
C1TargetControlHelper<T> Constructor
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal control As T _
)
C#
public C1TargetControlHelper<T>(
T control
)
Parameters
control
ComponentOne Gallery for ASP.NET Webforms
63
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
Methods For a list of all members of this type, see C1TargetControlHelper<T> members.
Public Methods
Name Description
EnsureEnabledState
GetScriptDescriptors Overloaded. When overridden in a derived
class, registers the WidgetDescriptor
objects for the control.
RegisterDesignTimeStyleSheet Register design-time CSS stylesheet.
RegisterDesignTimeStyleSheets
RegisterIncludes
RegisterOnSubmitStatement
RegisterRunTimeStylesheets
RegisterScriptDescriptors
RegisterScriptDescriptorsWithoutScriptManager
RegisterScriptDescriptorsWithScriptManager
RenderJsonDataField
ShowAbout Show about message box.
Top
ComponentOne Gallery for ASP.NET Webforms
64
See Also
Reference
C1TargetControlHelper<T> Class
C1.Web.Wijmo.Controls Namespace
EnsureEnabledState Method
Syntax
Visual Basic (Declaration)
Public Sub EnsureEnabledState()
C#
public void EnsureEnabledState()
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
GetScriptDescriptors Method When overridden in a derived class, registers the WidgetDescriptor objects for the control.
Overload List
Overload Description
GetScriptDescriptors() When overridden in a derived class, registers the WidgetDescriptor
objects for the control.
GetScriptDescriptors(String) When overridden in a derived class, registers the WidgetDescriptor
objects for the control.
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
ComponentOne Gallery for ASP.NET Webforms
65
GetScriptDescriptors() Method
When overridden in a derived class, registers the WidgetDescriptor objects for the control.
Syntax
Visual Basic (Declaration)
Public Overloads Function GetScriptDescriptors() As
System.Collections.Generic.IEnumerable(Of ScriptDescriptor)
C#
public System.Collections.Generic.IEnumerable<ScriptDescriptor>
GetScriptDescriptors()
Return Value
An enumeration of WidgetDescriptor objects.
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
Overload List
GetScriptDescriptors(String) Method
When overridden in a derived class, registers the WidgetDescriptor objects for the control.
Syntax
Visual Basic (Declaration)
Public Overloads Function GetScriptDescriptors( _
ByVal targetSelector As System.String _
) As System.Collections.Generic.IEnumerable(Of ScriptDescriptor)
C#
public System.Collections.Generic.IEnumerable<ScriptDescriptor>
GetScriptDescriptors(
System.string targetSelector
)
Parameters
ComponentOne Gallery for ASP.NET Webforms
66
targetSelector
The target selector.
Return Value
An enumeration of WidgetDescriptor objects.
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
Overload List
RegisterDesignTimeStyleSheet Method Register design-time CSS stylesheet.
Syntax
Visual Basic (Declaration)
Public Sub RegisterDesignTimeStyleSheet( _
ByVal writer As System.Web.UI.HtmlTextWriter, _
ByVal cssResourceName As System.String _
)
C#
public void RegisterDesignTimeStyleSheet(
System.Web.UI.HtmlTextWriter writer,
System.string cssResourceName
)
Parameters
writer
cssResourceName
CSS resource name.
Remarks
The cssResourceName is the link to an resource element.
See Also
ComponentOne Gallery for ASP.NET Webforms
67
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
RegisterDesignTimeStyleSheets Method
Syntax
Visual Basic (Declaration)
Public Sub RegisterDesignTimeStyleSheets( _
ByVal writer As System.Web.UI.HtmlTextWriter _
)
C#
public void RegisterDesignTimeStyleSheets(
System.Web.UI.HtmlTextWriter writer
)
Parameters
writer
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
RegisterIncludes Method
Syntax
Visual Basic (Declaration)
Public Sub RegisterIncludes()
C#
public void RegisterIncludes()
See Also
Reference
ComponentOne Gallery for ASP.NET Webforms
68
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
RegisterOnSubmitStatement Method
Syntax
Visual Basic (Declaration)
Public Sub RegisterOnSubmitStatement( _
Optional ByVal callback As System.String _
)
C#
public void RegisterOnSubmitStatement(
System.string callback
)
Parameters
callback
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
RegisterRunTimeStylesheets Method
Syntax
Visual Basic (Declaration)
Public Sub RegisterRunTimeStylesheets()
C#
public void RegisterRunTimeStylesheets()
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
ComponentOne Gallery for ASP.NET Webforms
69
RegisterScriptDescriptors Method
Syntax
Visual Basic (Declaration)
Public Sub RegisterScriptDescriptors()
C#
public void RegisterScriptDescriptors()
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
RegisterScriptDescriptorsWithoutScriptManager Method
Syntax
Visual Basic (Declaration)
Public Sub RegisterScriptDescriptorsWithoutScriptManager()
C#
public void RegisterScriptDescriptorsWithoutScriptManager()
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
RegisterScriptDescriptorsWithScriptManager Method
Syntax
Visual Basic (Declaration)
Public Sub RegisterScriptDescriptorsWithScriptManager()
C#
ComponentOne Gallery for ASP.NET Webforms
70
public void RegisterScriptDescriptorsWithScriptManager()
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
RenderJsonDataField Method
Syntax
Visual Basic (Declaration)
Public Sub RenderJsonDataField( _
ByVal writer As System.Web.UI.HtmlTextWriter _
)
C#
public void RenderJsonDataField(
System.Web.UI.HtmlTextWriter writer
)
Parameters
writer
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
ShowAbout Method Show about message box.
Syntax
Visual Basic (Declaration)
Public Sub ShowAbout()
C#
ComponentOne Gallery for ASP.NET Webforms
71
public void ShowAbout()
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
Properties For a list of all members of this type, see C1TargetControlHelper<T> members.
Public Properties
Name Description
Control
JsonSerializableHelper
Page
ScriptManager
Top
See Also
Reference
C1TargetControlHelper<T> Class
C1.Web.Wijmo.Controls Namespace
Control Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Control As T
C#
public T Control {get;}
See Also
ComponentOne Gallery for ASP.NET Webforms
72
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
JsonSerializableHelper Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property JsonSerializableHelper As JsonSerializableHelper
C#
public JsonSerializableHelper JsonSerializableHelper {get;}
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
Page Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Page As System.Web.UI.Page
C#
public System.Web.UI.Page Page {get;}
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
ScriptManager Property
Syntax
Visual Basic (Declaration)
ComponentOne Gallery for ASP.NET Webforms
73
Public ReadOnly Property ScriptManager As System.Web.UI.ScriptManager
C#
public System.Web.UI.ScriptManager ScriptManager {get;}
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
C1.Web.Wijmo.Controls.C1Gallery
Namespace
Overview Classes
Class Description
C1Gallery C1Gallery is an image gallery control that displays images and
their thumbnail images.
C1GalleryItem Items within the gallery control.
C1GalleryItemCollection Represents the structure that manages the C1GalleryItem items.
C1GalleryItemEventArgs Contains event data for data binding events, such as the
C1Gallery.ItemDataBound and C1Gallery.ItemDataBinding events.
Delegates
Delegate Description
C1GalleryItemEventHandle
r
Represents the method that will handle an data binding events
of C1GalleryItem, such as the
C1Gallery.ItemDataBound and C1Gallery.ItemDataBinding event
s.
ComponentOne Gallery for ASP.NET Webforms
74
Enumerations
Enumeration Description
DisplayMode Specifies the display mode of gallery.
ThumbsPosition Specifies the position of the thumbnail image navigation buttons.
See Also
Reference
C1.Web.Wijmo.Controls.4 Assembly
Classes
C1Gallery C1Gallery is an image gallery control that displays images and their thumbnail images.
Object Model
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DesignerAttribute(DesignerBaseTypeName="System.Compone
ntModel.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1Gallery.C1GalleryDesigner,
C1.Web.Wijmo.Controls.Design.4, Version=4.0.20143.198, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
<System.ComponentModel.LicenseProviderAttribute()>
<System.Drawing.ToolboxBitmapAttribute()>
<WidgetDependenciesAttribute(System.Object[])>
<System.Web.UI.ToolboxDataAttribute("<{0}:C1Gallery
runat=server></{0}:C1Gallery>")>
Public Class C1Gallery
Inherits C1.Web.Wijmo.Controls.Base.C1TargetDataBoundControlBase
C#
ComponentOne Gallery for ASP.NET Webforms
75
[System.ComponentModel.Designer(DesignerBaseTypeName="System.ComponentMod
el.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1Gallery.C1GalleryDesigne
r, C1.Web.Wijmo.Controls.Design.4, Version=4.0.20143.198,
Culture=neutral, PublicKeyToken=9b75583953471eea")]
[System.ComponentModel.LicenseProvider()]
[System.Drawing.ToolboxBitmap()]
[WidgetDependencies(System.Object[])]
[System.Web.UI.ToolboxData("<{0}:C1Gallery
runat=server></{0}:C1Gallery>")]
public class C1Gallery :
C1.Web.Wijmo.Controls.Base.C1TargetDataBoundControlBase
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.BaseDataBoundControl
System.Web.UI.WebControls.DataBoundControl
C1.Web.Wijmo.Controls.C1Gallery.C1Gallery
See Also
Reference
C1Gallery Members
C1.Web.Wijmo.Controls.C1Gallery Namespace
Overview C1Gallery is an image gallery control that displays images and their thumbnail images.
Object Model
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DesignerAttribute(DesignerBaseTypeName="System.Compone
ntModel.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1Gallery.C1GalleryDesigner,
C1.Web.Wijmo.Controls.Design.4, Version=4.0.20143.198, Culture=neutral,
ComponentOne Gallery for ASP.NET Webforms
76
PublicKeyToken=9b75583953471eea")>
<System.ComponentModel.LicenseProviderAttribute()>
<System.Drawing.ToolboxBitmapAttribute()>
<WidgetDependenciesAttribute(System.Object[])>
<System.Web.UI.ToolboxDataAttribute("<{0}:C1Gallery
runat=server></{0}:C1Gallery>")>
Public Class C1Gallery
Inherits C1.Web.Wijmo.Controls.Base.C1TargetDataBoundControlBase
C#
[System.ComponentModel.Designer(DesignerBaseTypeName="System.ComponentMod
el.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1Gallery.C1GalleryDesigne
r, C1.Web.Wijmo.Controls.Design.4, Version=4.0.20143.198,
Culture=neutral, PublicKeyToken=9b75583953471eea")]
[System.ComponentModel.LicenseProvider()]
[System.Drawing.ToolboxBitmap()]
[WidgetDependencies(System.Object[])]
[System.Web.UI.ToolboxData("<{0}:C1Gallery
runat=server></{0}:C1Gallery>")]
public class C1Gallery :
C1.Web.Wijmo.Controls.Base.C1TargetDataBoundControlBase
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.BaseDataBoundControl
System.Web.UI.WebControls.DataBoundControl
C1.Web.Wijmo.Controls.C1Gallery.C1Gallery
See Also
Reference
C1Gallery Members
C1.Web.Wijmo.Controls.C1Gallery Namespace
Members The following tables list the members exposed by C1Gallery.
Public Constructors
ComponentOne Gallery for ASP.NET Webforms
77
Name Description
C1Gallery Constructor Initializes a new instance of the class.
Top
Public Properties
Name Description
AccessKey (Inherited from
System.Web.UI.WebControls.WebControl)
AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)
Attributes (Inherited from
System.Web.UI.WebControls.WebControl)
AutoPlay When AutoPlay is true the gallery images will be
played automatically (similarly to a slideshow).
AutoPlayMovies Determines whether to turn on the autoplay option
in the movie player.
ClientID (Inherited from System.Web.UI.Control)
ClientIDMode (Inherited from System.Web.UI.Control)
Control Gets or sets the content found between the opening
and closing tags of the specified HTML server
control.
ControlPosition Sets the position of the controls in gallery to the
'relativeTo', 'offsetX', and 'offsetY' properties. For
example, here is the jQuery ui position's
position:{my:'top left',at:'right bottom',offset:}.
Controls (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
78
ControlStyle (Inherited from
System.Web.UI.WebControls.WebControl)
ControlStyleCreated (Inherited from
System.Web.UI.WebControls.WebControl)
Counter Gets or sets the counter's format string.
CssClass (Inherited from
System.Web.UI.WebControls.WebControl)
DataCaptionField Gets or sets the name of the data source field to
bind to the image captions.
DataImageUrlField Gets or sets the name of the field from the data
source that contains the values to bind to the "src"
attribute of each image.
DataLinkUrlField Gets or sets the name of the data source field to
bind to the link.
DataMember (Inherited from
System.Web.UI.WebControls.DataBoundControl)
DataSource (Inherited from
System.Web.UI.WebControls.BaseDataBoundControl)
DataSourceID (Inherited from
System.Web.UI.WebControls.DataBoundControl)
DataSourceObject (Inherited from
System.Web.UI.WebControls.DataBoundControl)
EnableTheming (Inherited from
System.Web.UI.WebControls.WebControl)
EnableViewState (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
79
FlashInstall Gets or sets the relative path and name of the flash
installation guide.
FlvPlayer Gets or sets the relative path and name of the flash
video player.
HasAttributes (Inherited from
System.Web.UI.WebControls.WebControl)
Height Overridden. Gets or sets the height of the gallery.
ID (Inherited from System.Web.UI.Control)
Interval Determines the time span, in miliseconds, between
two pictures being shown in AutoPlay mode.
Items Gets a C1GalleryItemCollection object that contains
the items of the current C1Gallery control.
ItemType (Inherited from
System.Web.UI.WebControls.DataBoundControl)
LoadOnDemand Gets or sets a value indicating whether items are
loaded on demand.
Mode Determines the gallery's display mode.
NamingContainer (Inherited from System.Web.UI.Control)
OnClientAfterTransition The name of the function which will be called after
transition to another image.
OnClientBeforeTransition The name of the function which will be called before
transition to another image.
OnClientLoadCallback The name of the function which will be called after
created the DOM element.
ComponentOne Gallery for ASP.NET Webforms
80
Page (Inherited from System.Web.UI.Control)
PagerPosition Sets the position of the pager in gallery to the
'relativeTo', 'offsetX', and 'offsetY' properties. For
example, here is the jQuery ui position's
position:{my:'top left',at:'right bottom',offset:}.
Parent (Inherited from System.Web.UI.Control)
RenderingCompatibility (Inherited from System.Web.UI.Control)
ScrollWithSelection Determines if the thumbnail images scroll
automatically when images are selected.
SelectMethod (Inherited from
System.Web.UI.WebControls.DataBoundControl)
ShowCaption Determines if the item caption should be shown.
ShowControls Determines if custom controls should be shown.
ShowControlsOnHover Determines whether the controls should be shown
after created or when users hover over the DOM
element.
ShowCounter Determines if the counter is shown.
ShowMovieControls Determines if movie controls are enabled in the
movie player.
ShowPager Determines if the pager should be shown.
ShowThumbnailCaptions Determines whether the caption of thumbnails
should be shown.
ShowTimer Determines if the gallery timer should be shown.
Site (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
81
SkinID (Inherited from
System.Web.UI.WebControls.WebControl)
Style (Inherited from
System.Web.UI.WebControls.WebControl)
SupportsDisabledAttribute (Inherited from
System.Web.UI.WebControls.BaseDataBoundControl)
TabIndex (Inherited from
System.Web.UI.WebControls.WebControl)
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
ThumbnailDirection Controls the thumbnail images' location. Possible
values are "before" and " after".
ThumbnailOrientation Controls the gallery's orientation. All images are
vertical regardless of the orientation of the gallery.
ThumbsDisplay Determines the number of thumbnail images to
display.
ThumbsLength Determines the height/width of thumbnail images.
ToolTip (Inherited from
System.Web.UI.WebControls.WebControl)
Transitions Determines the animation effect settings to be used
when the gallery is scrolled.
ValidateRequestMode (Inherited from System.Web.UI.Control)
ViewStateMode (Inherited from System.Web.UI.Control)
Width Overridden. Gets or sets the width of the gallery.
ComponentOne Gallery for ASP.NET Webforms
82
Top
Public Methods
Name Description
ApplyStyle (Inherited from System.Web.UI.WebControls.WebControl)
ApplyStyleSheetSkin (Inherited from System.Web.UI.Control)
CopyBaseAttributes (Inherited from System.Web.UI.WebControls.WebControl)
DataBind Overridden. This method overrides the generic DataBind
method to bind the related data to the control.
Dispose Overridden.
FindControl (Inherited from System.Web.UI.Control)
Focus (Inherited from System.Web.UI.Control)
GetRouteUrl Overloaded. (Inherited from System.Web.UI.Control)
GetUniqueIDRelativeTo (Inherited from System.Web.UI.Control)
HasControls (Inherited from System.Web.UI.Control)
LoadLayout Overloaded. Loads control layout properties from the file.
MergeStyle (Inherited from System.Web.UI.WebControls.WebControl)
RenderBeginTag (Inherited from System.Web.UI.WebControls.WebControl)
RenderControl (Inherited from System.Web.UI.Control)
RenderEndTag (Inherited from System.Web.UI.WebControls.WebControl)
ResolveClientUrl (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
83
ResolveUrl (Inherited from System.Web.UI.Control)
SaveLayout Overloaded. Saves the control layout properties to the file.
SetRenderMethodDelegate (Inherited from System.Web.UI.Control)
Top
Public Events
Name Description
CallingDataMethods (Inherited from System.Web.UI.WebControls.DataBoundControl)
CreatingModelDataSource (Inherited from System.Web.UI.WebControls.DataBoundControl)
DataBinding (Inherited from System.Web.UI.Control)
DataBound (Inherited from
System.Web.UI.WebControls.BaseDataBoundControl)
Disposed (Inherited from System.Web.UI.Control)
Init (Inherited from System.Web.UI.Control)
ItemDataBinding Occurs before C1GalleryItem being created in data binding.
ItemDataBound Occurs after C1GalleryItem is created in data binding.
Load (Inherited from System.Web.UI.Control)
PreRender (Inherited from System.Web.UI.Control)
Unload (Inherited from System.Web.UI.Control)
Top
See Also
Reference
ComponentOne Gallery for ASP.NET Webforms
84
C1Gallery Class
C1.Web.Wijmo.Controls.C1Gallery Namespace
C1Gallery Constructor Initializes a new instance of the class.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public C1Gallery()
See Also
Reference
C1Gallery Class
C1Gallery Members
C1Gallery Class
Methods For a list of all members of this type, see C1Gallery members.
Public Methods
Name Description
ApplyStyle (Inherited from System.Web.UI.WebControls.WebControl)
ApplyStyleSheetSkin (Inherited from System.Web.UI.Control)
CopyBaseAttributes (Inherited from System.Web.UI.WebControls.WebControl)
DataBind Overridden. This method overrides the generic DataBind
method to bind the related data to the control.
Dispose Overridden.
FindControl (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
85
Focus (Inherited from System.Web.UI.Control)
GetRouteUrl Overloaded. (Inherited from System.Web.UI.Control)
GetUniqueIDRelativeTo (Inherited from System.Web.UI.Control)
HasControls (Inherited from System.Web.UI.Control)
LoadLayout Overloaded. Loads control layout properties from the file.
MergeStyle (Inherited from System.Web.UI.WebControls.WebControl)
RenderBeginTag (Inherited from System.Web.UI.WebControls.WebControl)
RenderControl (Inherited from System.Web.UI.Control)
RenderEndTag (Inherited from System.Web.UI.WebControls.WebControl)
ResolveClientUrl (Inherited from System.Web.UI.Control)
ResolveUrl (Inherited from System.Web.UI.Control)
SaveLayout Overloaded. Saves the control layout properties to the file.
SetRenderMethodDelegate (Inherited from System.Web.UI.Control)
Top
See Also
Reference
C1Gallery Class
C1.Web.Wijmo.Controls.C1Gallery Namespace
DataBind Method This method overrides the generic DataBind method to bind the related data to the control.
Syntax
Visual Basic (Declaration)
ComponentOne Gallery for ASP.NET Webforms
86
Public Overrides NotOverridable Sub DataBind()
C#
public override void DataBind()
See Also
Reference
C1Gallery Class
C1Gallery Members
Dispose Method
Syntax
Visual Basic (Declaration)
Public Overrides Sub Dispose()
C#
public override void Dispose()
See Also
Reference
C1Gallery Class
C1Gallery Members
LoadLayout Method Loads control layout properties from the file.
Overload List
Overload Description
LoadLayout(String) Loads control layout properties from the file.
LoadLayout(Stream) Loads control layout properties from the stream.
LoadLayout(String,LayoutType) Loads control layout properties with specified types from the
file.
ComponentOne Gallery for ASP.NET Webforms
87
LoadLayout(Stream,LayoutType) Loads the control layout properties with specified types from
the stream.
See Also
Reference
C1Gallery Class
C1Gallery Members
LoadLayout(String) Method
Loads control layout properties from the file.
Syntax
Visual Basic (Declaration)
Public Overloads Sub LoadLayout( _
ByVal filename As System.String _
)
C#
public void LoadLayout(
System.string filename
)
Parameters
filename
The file where the values of layout properties will be loaded.
See Also
Reference
C1Gallery Class
C1Gallery Members
Overload List
LoadLayout(Stream) Method
Loads control layout properties from the stream.
Syntax
ComponentOne Gallery for ASP.NET Webforms
88
Visual Basic (Declaration)
Public Overloads Sub LoadLayout( _
ByVal stream As System.IO.Stream _
)
C#
public void LoadLayout(
System.IO.Stream stream
)
Parameters
stream
The stream where the values of layout properties will be loaded.
See Also
Reference
C1Gallery Class
C1Gallery Members
Overload List
LoadLayout(String,LayoutType) Method
The file where the values of layout properties will be loaded.
The layout types to load.
Loads control layout properties with specified types from the file.
Syntax
Visual Basic (Declaration)
Public Overloads Sub LoadLayout( _
ByVal filename As System.String, _
ByVal layoutTypes As LayoutType _
)
C#
public void LoadLayout(
System.string filename,
LayoutType layoutTypes
ComponentOne Gallery for ASP.NET Webforms
89
)
Parameters
filename
The file where the values of layout properties will be loaded.
layoutTypes
The layout types to load.
See Also
Reference
C1Gallery Class
C1Gallery Members
Overload List
LoadLayout(Stream,LayoutType) Method
The stream where the values of the layout properties will be loaded.
The layout types to load.
Loads the control layout properties with specified types from the stream.
Syntax
Visual Basic (Declaration)
Public Overloads Sub LoadLayout( _
ByVal stream As System.IO.Stream, _
ByVal layoutTypes As LayoutType _
)
C#
public void LoadLayout(
System.IO.Stream stream,
LayoutType layoutTypes
)
Parameters
stream
The stream where the values of the layout properties will be loaded.
layoutTypes
ComponentOne Gallery for ASP.NET Webforms
90
The layout types to load.
See Also
Reference
C1Gallery Class
C1Gallery Members
Overload List
SaveLayout Method Saves the control layout properties to the file.
Overload List
Overload Description
SaveLayout(String) Saves the control layout properties to the file.
SaveLayout(Stream) Saves control layout properties to the stream.
See Also
Reference
C1Gallery Class
C1Gallery Members
SaveLayout(String) Method
Saves the control layout properties to the file.
Syntax
Visual Basic (Declaration)
Public Overloads Sub SaveLayout( _
ByVal filename As System.String _
)
C#
public void SaveLayout(
System.string filename
)
Parameters
ComponentOne Gallery for ASP.NET Webforms
91
filename
The file where the values of the layout properties will be saved.
See Also
Reference
C1Gallery Class
C1Gallery Members
Overload List
SaveLayout(Stream) Method
Saves control layout properties to the stream.
Syntax
Visual Basic (Declaration)
Public Overloads Sub SaveLayout( _
ByVal stream As System.IO.Stream _
)
C#
public void SaveLayout(
System.IO.Stream stream
)
Parameters
stream
The stream where the values of layout properties will be saved.
See Also
Reference
C1Gallery Class
C1Gallery Members
Overload List
Properties For a list of all members of this type, see C1Gallery members.
Public Properties
ComponentOne Gallery for ASP.NET Webforms
92
Name Description
AccessKey (Inherited from
System.Web.UI.WebControls.WebControl)
AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)
Attributes (Inherited from
System.Web.UI.WebControls.WebControl)
AutoPlay When AutoPlay is true the gallery images will be
played automatically (similarly to a slideshow).
AutoPlayMovies Determines whether to turn on the autoplay option
in the movie player.
ClientID (Inherited from System.Web.UI.Control)
ClientIDMode (Inherited from System.Web.UI.Control)
Control Gets or sets the content found between the opening
and closing tags of the specified HTML server
control.
ControlPosition Sets the position of the controls in gallery to the
'relativeTo', 'offsetX', and 'offsetY' properties. For
example, here is the jQuery ui position's
position:{my:'top left',at:'right bottom',offset:}.
Controls (Inherited from System.Web.UI.Control)
ControlStyle (Inherited from
System.Web.UI.WebControls.WebControl)
ControlStyleCreated (Inherited from
System.Web.UI.WebControls.WebControl)
Counter Gets or sets the counter's format string.
ComponentOne Gallery for ASP.NET Webforms
93
CssClass (Inherited from
System.Web.UI.WebControls.WebControl)
DataCaptionField Gets or sets the name of the data source field to
bind to the image captions.
DataImageUrlField Gets or sets the name of the field from the data
source that contains the values to bind to the "src"
attribute of each image.
DataLinkUrlField Gets or sets the name of the data source field to
bind to the link.
DataMember (Inherited from
System.Web.UI.WebControls.DataBoundControl)
DataSource (Inherited from
System.Web.UI.WebControls.BaseDataBoundControl)
DataSourceID (Inherited from
System.Web.UI.WebControls.DataBoundControl)
DataSourceObject (Inherited from
System.Web.UI.WebControls.DataBoundControl)
EnableTheming (Inherited from
System.Web.UI.WebControls.WebControl)
EnableViewState (Inherited from System.Web.UI.Control)
FlashInstall Gets or sets the relative path and name of the flash
installation guide.
FlvPlayer Gets or sets the relative path and name of the flash
video player.
HasAttributes (Inherited from
ComponentOne Gallery for ASP.NET Webforms
94
System.Web.UI.WebControls.WebControl)
Height Overridden. Gets or sets the height of the gallery.
ID (Inherited from System.Web.UI.Control)
Interval Determines the time span, in miliseconds, between
two pictures being shown in AutoPlay mode.
Items Gets a C1GalleryItemCollection object that contains
the items of the current C1Gallery control.
ItemType (Inherited from
System.Web.UI.WebControls.DataBoundControl)
LoadOnDemand Gets or sets a value indicating whether items are
loaded on demand.
Mode Determines the gallery's display mode.
NamingContainer (Inherited from System.Web.UI.Control)
OnClientAfterTransition The name of the function which will be called after
transition to another image.
OnClientBeforeTransition The name of the function which will be called before
transition to another image.
OnClientLoadCallback The name of the function which will be called after
created the DOM element.
Page (Inherited from System.Web.UI.Control)
PagerPosition Sets the position of the pager in gallery to the
'relativeTo', 'offsetX', and 'offsetY' properties. For
example, here is the jQuery ui position's
position:{my:'top left',at:'right bottom',offset:}.
ComponentOne Gallery for ASP.NET Webforms
95
Parent (Inherited from System.Web.UI.Control)
RenderingCompatibility (Inherited from System.Web.UI.Control)
ScrollWithSelection Determines if the thumbnail images scroll
automatically when images are selected.
SelectMethod (Inherited from
System.Web.UI.WebControls.DataBoundControl)
ShowCaption Determines if the item caption should be shown.
ShowControls Determines if custom controls should be shown.
ShowControlsOnHover Determines whether the controls should be shown
after created or when users hover over the DOM
element.
ShowCounter Determines if the counter is shown.
ShowMovieControls Determines if movie controls are enabled in the
movie player.
ShowPager Determines if the pager should be shown.
ShowThumbnailCaptions Determines whether the caption of thumbnails
should be shown.
ShowTimer Determines if the gallery timer should be shown.
Site (Inherited from System.Web.UI.Control)
SkinID (Inherited from
System.Web.UI.WebControls.WebControl)
Style (Inherited from
System.Web.UI.WebControls.WebControl)
ComponentOne Gallery for ASP.NET Webforms
96
SupportsDisabledAttribute (Inherited from
System.Web.UI.WebControls.BaseDataBoundControl)
TabIndex (Inherited from
System.Web.UI.WebControls.WebControl)
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
ThumbnailDirection Controls the thumbnail images' location. Possible
values are "before" and " after".
ThumbnailOrientation Controls the gallery's orientation. All images are
vertical regardless of the orientation of the gallery.
ThumbsDisplay Determines the number of thumbnail images to
display.
ThumbsLength Determines the height/width of thumbnail images.
ToolTip (Inherited from
System.Web.UI.WebControls.WebControl)
Transitions Determines the animation effect settings to be used
when the gallery is scrolled.
ValidateRequestMode (Inherited from System.Web.UI.Control)
ViewStateMode (Inherited from System.Web.UI.Control)
Width Overridden. Gets or sets the width of the gallery.
Top
See Also
Reference
ComponentOne Gallery for ASP.NET Webforms
97
C1Gallery Class
C1.Web.Wijmo.Controls.C1Gallery Namespace
AutoPlay Property When AutoPlay is true the gallery images will be played automatically (similarly to a slideshow).
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Behavior")>
<WidgetOptionAttribute()>
<LayoutAttribute(LayoutType.Behavior)>
<C1DescriptionAttribute(Key="C1Gallery.AutoPlay", Description="When AutoPlay
is true the gallery images will be played automatically (similarly to a
slideshow).")>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionNameAttribute("autoPlay")>
Public Property AutoPlay As System.Boolean
C#
[C1Category("Behavior")]
[WidgetOption()]
[Layout(LayoutType.Behavior)]
[C1Description(Key="C1Gallery.AutoPlay", Description="When AutoPlay is true
the gallery images will be played automatically (similarly to a
slideshow).")]
[System.ComponentModel.DefaultValue()]
[WidgetOptionName("autoPlay")]
public System.bool AutoPlay {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
AutoPlayMovies Property Determines whether to turn on the autoplay option in the movie player.
Syntax
ComponentOne Gallery for ASP.NET Webforms
98
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.AutoPlayMovies",
Description="Determines whether to turn on the autoplay option in the movie
player.")>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionAttribute()>
Public Property AutoPlayMovies As System.Boolean
C#
[C1Description(Key="C1Gallery.AutoPlayMovies", Description="Determines
whether to turn on the autoplay option in the movie player.")]
[System.ComponentModel.DefaultValue()]
[WidgetOption()]
public System.bool AutoPlayMovies {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
Control Property Gets or sets the content found between the opening and closing tags of the specified HTML
server control.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.Control", Description="Gets or sets
the content found between the opening and closing tags of the specified HTML
server control.")>
<LayoutAttribute(LayoutType.Behavior)>
<C1CategoryAttribute("Appearance")>
<WidgetOptionAttribute()>
<System.ComponentModel.DefaultValueAttribute()>
Public Property Control As System.String
C#
[C1Description(Key="C1Gallery.Control", Description="Gets or sets the content
found between the opening and closing tags of the specified HTML server
ComponentOne Gallery for ASP.NET Webforms
99
control.")]
[Layout(LayoutType.Behavior)]
[C1Category("Appearance")]
[WidgetOption()]
[System.ComponentModel.DefaultValue()]
public System.string Control {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ControlPosition Property Sets the position of the controls in gallery to the 'relativeTo', 'offsetX', and 'offsetY' properties.
For example, here is the jQuery ui position's position:{my:'top left',at:'right bottom',offset:}.
Syntax
Visual Basic (Declaration)
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.ControlPosition", Description="Sets
the position of the controls in gallery.")>
<C1CategoryAttribute("Layout")>
<System.ComponentModel.NotifyParentPropertyAttribute(True)>
<TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter,
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Content)>
<System.Web.UI.PersistenceModeAttribute(PersistenceMode.InnerProperty)>
Public Property ControlPosition As PositionSettings
C#
[WidgetOption()]
[C1Description(Key="C1Gallery.ControlPosition", Description="Sets the
position of the controls in gallery.")]
[C1Category("Layout")]
[System.ComponentModel.NotifyParentProperty(true)]
[TypeConverter("System.ComponentModel.ExpandableObjectConverter, System,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ComponentOne Gallery for ASP.NET Webforms
100
ionVisibility.Content)]
[System.Web.UI.PersistenceMode(PersistenceMode.InnerProperty)]
public PositionSettings ControlPosition {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
Counter Property Gets or sets the counter's format string.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.Counter", Description="Gets or sets
the counter's format string.")>
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("Appearance")>
<WidgetOptionAttribute()>
<LayoutAttribute(LayoutType.Behavior)>
Public Property Counter As System.String
C#
[C1Description(Key="C1Gallery.Counter", Description="Gets or sets the
counter's format string.")]
[System.ComponentModel.DefaultValue()]
[C1Category("Appearance")]
[WidgetOption()]
[Layout(LayoutType.Behavior)]
public System.string Counter {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
DataCaptionField Property Gets or sets the name of the data source field to bind to the image captions.
ComponentOne Gallery for ASP.NET Webforms
101
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Data")>
<C1DescriptionAttribute(Key="C1Gallery.DataCaptionUrlField",
Description="Gets or sets the name of the data source field to bind to the
image captions.")>
<System.ComponentModel.DefaultValueAttribute()>
<LayoutAttribute(LayoutType.Misc)>
Public Property DataCaptionField As System.String
C#
[C1Category("Data")]
[C1Description(Key="C1Gallery.DataCaptionUrlField", Description="Gets or sets
the name of the data source field to bind to the image captions.")]
[System.ComponentModel.DefaultValue()]
[Layout(LayoutType.Misc)]
public System.string DataCaptionField {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
DataImageUrlField Property Gets or sets the name of the field from the data source that contains the values to bind to the
"src" attribute of each image.
Syntax
Visual Basic (Declaration)
<LayoutAttribute(LayoutType.Misc)>
<C1CategoryAttribute("Data")>
<C1DescriptionAttribute(Key="C1Gallery.DataImageUrlField", Description="Gets
or sets the name of the field from the data source that contains the values
to bind to the "src" attribute of each image.")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property DataImageUrlField As System.String
ComponentOne Gallery for ASP.NET Webforms
102
C#
[Layout(LayoutType.Misc)]
[C1Category("Data")]
[C1Description(Key="C1Gallery.DataImageUrlField", Description="Gets or sets
the name of the field from the data source that contains the values to bind
to the "src" attribute of each image.")]
[System.ComponentModel.DefaultValue()]
public System.string DataImageUrlField {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
DataLinkUrlField Property Gets or sets the name of the data source field to bind to the link.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.DataLinkUrlField", Description="Gets
or sets the name of the data source field to bind to the link.")>
<LayoutAttribute(LayoutType.Misc)>
<C1CategoryAttribute("Data")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property DataLinkUrlField As System.String
C#
[C1Description(Key="C1Gallery.DataLinkUrlField", Description="Gets or sets
the name of the data source field to bind to the link.")]
[Layout(LayoutType.Misc)]
[C1Category("Data")]
[System.ComponentModel.DefaultValue()]
public System.string DataLinkUrlField {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ComponentOne Gallery for ASP.NET Webforms
103
FlashInstall Property Gets or sets the relative path and name of the flash installation guide.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.FlashInstall", Description="Gets or
sets the relative path and name of the flash installation guide.")>
<WidgetOptionAttribute()>
Public Property FlashInstall As System.String
C#
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1Gallery.FlashInstall", Description="Gets or sets the
relative path and name of the flash installation guide.")]
[WidgetOption()]
public System.string FlashInstall {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
FlvPlayer Property Gets or sets the relative path and name of the flash video player.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.FlvPlayer", Description="Gets or sets
the relative path and name of the flash video player.")>
<WidgetOptionAttribute()>
Public Property FlvPlayer As System.String
C#
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1Gallery.FlvPlayer", Description="Gets or sets the
ComponentOne Gallery for ASP.NET Webforms
104
relative path and name of the flash video player.")]
[WidgetOption()]
public System.string FlvPlayer {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
Height Property Gets or sets the height of the gallery.
Syntax
Visual Basic (Declaration)
Public Overrides Property Height As System.Web.UI.WebControls.Unit
C#
public override System.Web.UI.WebControls.Unit Height {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
Interval Property Determines the time span, in miliseconds, between two pictures being shown in AutoPlay mode.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("Behavior")>
<LayoutAttribute(LayoutType.Behavior)>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.Interval", Description="Determines the
time span, in miliseconds, between two pictures being shown in AutoPlay
mode.")>
ComponentOne Gallery for ASP.NET Webforms
105
Public Property Interval As System.Integer
C#
[System.ComponentModel.DefaultValue()]
[C1Category("Behavior")]
[Layout(LayoutType.Behavior)]
[WidgetOption()]
[C1Description(Key="C1Gallery.Interval", Description="Determines the time
span, in miliseconds, between two pictures being shown in AutoPlay mode.")]
public System.int Interval {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
Items Property Gets a C1GalleryItemCollection object that contains the items of the current C1Gallery control.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Content)>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<LayoutAttribute(LayoutType.Behavior)>
<WidgetOptionAttribute()>
<System.ComponentModel.BrowsableAttribute(False)>
<C1DescriptionAttribute(Key="C1Gallery.Items", Description="Gets a
C1GalleryItemCollection object that contains the items of the current
C1Gallery control.")>
<C1CategoryAttribute("Default")>
<System.ComponentModel.NotifyParentPropertyAttribute(True)>
<System.Web.UI.PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<CollectionItemTypeAttribute(C1.Web.Wijmo.Controls.C1Gallery.C1GalleryItem)>
Public ReadOnly Property Items As C1GalleryItemCollection
C#
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Content)]
ComponentOne Gallery for ASP.NET Webforms
106
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[Layout(LayoutType.Behavior)]
[WidgetOption()]
[System.ComponentModel.Browsable(false)]
[C1Description(Key="C1Gallery.Items", Description="Gets a
C1GalleryItemCollection object that contains the items of the current
C1Gallery control.")]
[C1Category("Default")]
[System.ComponentModel.NotifyParentProperty(true)]
[System.Web.UI.PersistenceMode(PersistenceMode.InnerProperty)]
[CollectionItemType(C1.Web.Wijmo.Controls.C1Gallery.C1GalleryItem)]
public C1GalleryItemCollection Items {get;}
See Also
Reference
C1Gallery Class
C1Gallery Members
LoadOnDemand Property Gets or sets a value indicating whether items are loaded on demand.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.LoadOnDemand", Description="Gets or
sets a value indicating whether items are loaded on demand.")>
<LayoutAttribute(LayoutType.Behavior)>
<WidgetOptionAttribute()>
<C1CategoryAttribute("Behavior")>
Public Property LoadOnDemand As System.Boolean
C#
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1Gallery.LoadOnDemand", Description="Gets or sets a
value indicating whether items are loaded on demand.")]
[Layout(LayoutType.Behavior)]
[WidgetOption()]
[C1Category("Behavior")]
public System.bool LoadOnDemand {get; set;}
ComponentOne Gallery for ASP.NET Webforms
107
See Also
Reference
C1Gallery Class
C1Gallery Members
Mode Property Determines the gallery's display mode.
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionAttribute()>
<LayoutAttribute(LayoutType.Behavior)>
<C1DescriptionAttribute(Key="C1Gallery.Mode", Description="Determines the
gallery's display mode.")>
Public Property Mode As DisplayMode
C#
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
[WidgetOption()]
[Layout(LayoutType.Behavior)]
[C1Description(Key="C1Gallery.Mode", Description="Determines the gallery's
display mode.")]
public DisplayMode Mode {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
OnClientAfterTransition Property The name of the function which will be called after transition to another image.
Syntax
ComponentOne Gallery for ASP.NET Webforms
108
Visual Basic (Declaration)
<WidgetOptionNameAttribute("afterTransition")>
<C1DescriptionAttribute(Key="C1Gallery.OnClientAfterTransition",
Description="The name of the function which will be called after transition
to another image.")>
<WidgetEventAttribute("ev, index")>
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("Client-Side Events")>
Public Property OnClientAfterTransition As System.String
C#
[WidgetOptionName("afterTransition")]
[C1Description(Key="C1Gallery.OnClientAfterTransition", Description="The name
of the function which will be called after transition to another image.")]
[WidgetEvent("ev, index")]
[System.ComponentModel.DefaultValue()]
[C1Category("Client-Side Events")]
public System.string OnClientAfterTransition {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
OnClientBeforeTransition Property The name of the function which will be called before transition to another image.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.OnClientBeforeTransition",
Description="The name of the function which will be called before transition
to another image.")>
<WidgetEventAttribute("ev, index")>
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("Client-Side Events")>
<WidgetOptionNameAttribute("beforeTransition")>
Public Property OnClientBeforeTransition As System.String
ComponentOne Gallery for ASP.NET Webforms
109
C#
[C1Description(Key="C1Gallery.OnClientBeforeTransition", Description="The
name of the function which will be called before transition to another
image.")]
[WidgetEvent("ev, index")]
[System.ComponentModel.DefaultValue()]
[C1Category("Client-Side Events")]
[WidgetOptionName("beforeTransition")]
public System.string OnClientBeforeTransition {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
OnClientLoadCallback Property The name of the function which will be called after created the DOM element.
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Client-Side Events")>
<WidgetOptionNameAttribute("loadCallback")>
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.OnClientLoadCallback",
Description="The name of the function which will be called after created the
DOM element.")>
<WidgetEventAttribute("ev, index")>
Public Property OnClientLoadCallback As System.String
C#
[C1Category("Client-Side Events")]
[WidgetOptionName("loadCallback")]
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1Gallery.OnClientLoadCallback", Description="The name of
the function which will be called after created the DOM element.")]
[WidgetEvent("ev, index")]
public System.string OnClientLoadCallback {get; set;}
See Also
ComponentOne Gallery for ASP.NET Webforms
110
Reference
C1Gallery Class
C1Gallery Members
PagerPosition Property Sets the position of the pager in gallery to the 'relativeTo', 'offsetX', and 'offsetY' properties. For
example, here is the jQuery ui position's position:{my:'top left',at:'right bottom',offset:}.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.PagerPosition", Description="Sets the
position of the pager in gallery.")>
<TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter,
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>
<System.Web.UI.PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<C1CategoryAttribute("Layout")>
<WidgetOptionAttribute()>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Content)>
<System.ComponentModel.NotifyParentPropertyAttribute(True)>
Public Property PagerPosition As PositionSettings
C#
[C1Description(Key="C1Gallery.PagerPosition", Description="Sets the
position of the pager in gallery.")]
[TypeConverter("System.ComponentModel.ExpandableObjectConverter, System,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[System.Web.UI.PersistenceMode(PersistenceMode.InnerProperty)]
[C1Category("Layout")]
[WidgetOption()]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Content)]
[System.ComponentModel.NotifyParentProperty(true)]
public PositionSettings PagerPosition {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ComponentOne Gallery for ASP.NET Webforms
111
ScrollWithSelection Property Determines if the thumbnail images scroll automatically when images are selected.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.ScrollWithSelection",
Description="Determines if the thumbnail images scroll automatically when
images are selected.")>
<C1CategoryAttribute("Behavior")>
<WidgetOptionAttribute()>
<LayoutAttribute(LayoutType.Behavior)>
<System.ComponentModel.DefaultValueAttribute()>
Public Property ScrollWithSelection As System.Boolean
C#
[C1Description(Key="C1Gallery.ScrollWithSelection", Description="Determines
if the thumbnail images scroll automatically when images are selected.")]
[C1Category("Behavior")]
[WidgetOption()]
[Layout(LayoutType.Behavior)]
[System.ComponentModel.DefaultValue()]
public System.bool ScrollWithSelection {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ShowCaption Property Determines if the item caption should be shown.
Syntax
Visual Basic (Declaration)
<WidgetOptionAttribute()>
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("Behavior")>
<LayoutAttribute(LayoutType.Behavior)>
ComponentOne Gallery for ASP.NET Webforms
112
<C1DescriptionAttribute(Key="C1Gallery.ShowCaption", Description="Determines
if the item caption should be shown.")>
Public Property ShowCaption As System.Boolean
C#
[WidgetOption()]
[System.ComponentModel.DefaultValue()]
[C1Category("Behavior")]
[Layout(LayoutType.Behavior)]
[C1Description(Key="C1Gallery.ShowCaption", Description="Determines if the
item caption should be shown.")]
public System.bool ShowCaption {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ShowControls Property Determines if custom controls should be shown.
Syntax
Visual Basic (Declaration)
<LayoutAttribute(LayoutType.Behavior)>
<C1CategoryAttribute("Behavior")>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.ShowControls", Description="Determines
if custom controls should be shown.")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property ShowControls As System.Boolean
C#
[Layout(LayoutType.Behavior)]
[C1Category("Behavior")]
[WidgetOption()]
[C1Description(Key="C1Gallery.ShowControls", Description="Determines if
custom controls should be shown.")]
[System.ComponentModel.DefaultValue()]
public System.bool ShowControls {get; set;}
ComponentOne Gallery for ASP.NET Webforms
113
See Also
Reference
C1Gallery Class
C1Gallery Members
ShowControlsOnHover Property Determines whether the controls should be shown after created or when users hover over the
DOM element.
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Behavior")>
<LayoutAttribute(LayoutType.Behavior)>
<C1DescriptionAttribute(Key="C1Gallery.ShowControlsOnHover",
Description="Determines whether the controls should be shown after created or
when users hover over the DOM element.")>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionAttribute()>
Public Property ShowControlsOnHover As System.Boolean
C#
[C1Category("Behavior")]
[Layout(LayoutType.Behavior)]
[C1Description(Key="C1Gallery.ShowControlsOnHover", Description="Determines
whether the controls should be shown after created or when users hover over
the DOM element.")]
[System.ComponentModel.DefaultValue()]
[WidgetOption()]
public System.bool ShowControlsOnHover {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ShowCounter Property Determines if the counter is shown.
ComponentOne Gallery for ASP.NET Webforms
114
Syntax
Visual Basic (Declaration)
<LayoutAttribute(LayoutType.Behavior)>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.ShowCounter", Description="Determines
if the counter is shown.")>
<C1CategoryAttribute("Behavior")>
Public Property ShowCounter As System.Boolean
C#
[Layout(LayoutType.Behavior)]
[System.ComponentModel.DefaultValue()]
[WidgetOption()]
[C1Description(Key="C1Gallery.ShowCounter", Description="Determines if the
counter is shown.")]
[C1Category("Behavior")]
public System.bool ShowCounter {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ShowMovieControls Property Determines if movie controls are enabled in the movie player.
Syntax
Visual Basic (Declaration)
<WidgetOptionAttribute()>
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.ShowMovieControls",
Description="Determines if movie controls are enabled in the movie player.")>
Public Property ShowMovieControls As System.Boolean
C#
[WidgetOption()]
ComponentOne Gallery for ASP.NET Webforms
115
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1Gallery.ShowMovieControls", Description="Determines if
movie controls are enabled in the movie player.")]
public System.bool ShowMovieControls {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ShowPager Property Determines if the pager should be shown.
Syntax
Visual Basic (Declaration)
<LayoutAttribute(LayoutType.Behavior)>
<C1CategoryAttribute("Behavior")>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.ShowPager", Description="Determines if
the pager should be shown.")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property ShowPager As System.Boolean
C#
[Layout(LayoutType.Behavior)]
[C1Category("Behavior")]
[WidgetOption()]
[C1Description(Key="C1Gallery.ShowPager", Description="Determines if the
pager should be shown.")]
[System.ComponentModel.DefaultValue()]
public System.bool ShowPager {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ShowThumbnailCaptions Property Determines whether the caption of thumbnails should be shown.
ComponentOne Gallery for ASP.NET Webforms
116
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.ShowThumbnailCaptions",
Description="Determines whether the caption of thumbnails should be shown.")>
<WidgetOptionAttribute()>
<LayoutAttribute(LayoutType.Behavior)>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property ShowThumbnailCaptions As System.Boolean
C#
[C1Description(Key="C1Gallery.ShowThumbnailCaptions", Description="Determines
whether the caption of thumbnails should be shown.")]
[WidgetOption()]
[Layout(LayoutType.Behavior)]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
public System.bool ShowThumbnailCaptions {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ShowTimer Property Determines if the gallery timer should be shown.
Syntax
Visual Basic (Declaration)
<LayoutAttribute(LayoutType.Behavior)>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.ShowTimer", Description="Determines if
the gallery timer should be shown.")>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property ShowTimer As System.Boolean
ComponentOne Gallery for ASP.NET Webforms
117
C#
[Layout(LayoutType.Behavior)]
[WidgetOption()]
[C1Description(Key="C1Gallery.ShowTimer", Description="Determines if the
gallery timer should be shown.")]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
public System.bool ShowTimer {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ThumbnailDirection Property Controls the thumbnail images' location. Possible values are "before" and " after".
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Appearance")>
<C1DescriptionAttribute(Key="C1Gallery.ThumbnailDirection",
Description="Controls the thumbnail images' location. Possible values are
"before" and " after".")>
<WidgetOptionAttribute()>
<System.ComponentModel.DefaultValueAttribute()>
<LayoutAttribute(LayoutType.Appearance)>
Public Property ThumbnailDirection As ThumbsPosition
C#
[C1Category("Appearance")]
[C1Description(Key="C1Gallery.ThumbnailDirection", Description="Controls the
thumbnail images' location. Possible values are "before" and " after".")]
[WidgetOption()]
[System.ComponentModel.DefaultValue()]
[Layout(LayoutType.Appearance)]
public ThumbsPosition ThumbnailDirection {get; set;}
See Also
ComponentOne Gallery for ASP.NET Webforms
118
Reference
C1Gallery Class
C1Gallery Members
ThumbnailOrientation Property Controls the gallery's orientation. All images are vertical regardless of the orientation of the
gallery.
Syntax
Visual Basic (Declaration)
<WidgetOptionAttribute()>
<System.ComponentModel.DefaultValueAttribute()>
<LayoutAttribute(LayoutType.Appearance)>
<C1CategoryAttribute("Appearance")>
<C1DescriptionAttribute(Key="C1Gallery.ThumbnailOrientation",
Description="Controls the thumbnail's orientation. All images are vertical
regardless of the orientation of the gallery.")>
Public Property ThumbnailOrientation As Orientation
C#
[WidgetOption()]
[System.ComponentModel.DefaultValue()]
[Layout(LayoutType.Appearance)]
[C1Category("Appearance")]
[C1Description(Key="C1Gallery.ThumbnailOrientation", Description="Controls
the thumbnail's orientation. All images are vertical regardless of the
orientation of the gallery.")]
public Orientation ThumbnailOrientation {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ThumbsDisplay Property Determines the number of thumbnail images to display.
Syntax
ComponentOne Gallery for ASP.NET Webforms
119
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.ThumbsDisplay",
Description="Determines the number of thumbnail images to display.")>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionAttribute()>
<LayoutAttribute(LayoutType.Behavior)>
Public Property ThumbsDisplay As System.Integer
C#
[C1Description(Key="C1Gallery.ThumbsDisplay", Description="Determines the
number of thumbnail images to display.")]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
[WidgetOption()]
[Layout(LayoutType.Behavior)]
public System.int ThumbsDisplay {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
ThumbsLength Property Determines the height/width of thumbnail images.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.ThumbsLength", Description="Determines
the height/width of thumbnail images.")>
<LayoutAttribute(LayoutType.Behavior)>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionAttribute()>
Public Property ThumbsLength As System.Integer
C#
[C1Description(Key="C1Gallery.ThumbsLength", Description="Determines the
ComponentOne Gallery for ASP.NET Webforms
120
height/width of thumbnail images.")]
[Layout(LayoutType.Behavior)]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
[WidgetOption()]
public System.int ThumbsLength {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
Transitions Property Determines the animation effect settings to be used when the gallery is scrolled.
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Behavior")>
<TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter,
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1Gallery.Transitions", Description="Determines
the animation effect settings to be used when the gallery is scrolled.")>
<System.Web.UI.PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<LayoutAttribute(LayoutType.Behavior)>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Content)>
<System.ComponentModel.NotifyParentPropertyAttribute(True)>
Public Property Transitions As Animation
C#
[C1Category("Behavior")]
[TypeConverter("System.ComponentModel.ExpandableObjectConverter, System,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[WidgetOption()]
[C1Description(Key="C1Gallery.Transitions", Description="Determines the
animation effect settings to be used when the gallery is scrolled.")]
[System.Web.UI.PersistenceMode(PersistenceMode.InnerProperty)]
[Layout(LayoutType.Behavior)]
ComponentOne Gallery for ASP.NET Webforms
121
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Content)]
[System.ComponentModel.NotifyParentProperty(true)]
public Animation Transitions {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
Width Property Gets or sets the width of the gallery.
Syntax
Visual Basic (Declaration)
Public Overrides Property Width As System.Web.UI.WebControls.Unit
C#
public override System.Web.UI.WebControls.Unit Width {get; set;}
See Also
Reference
C1Gallery Class
C1Gallery Members
Events For a list of all members of this type, see C1Gallery members.
Public Events
Name Description
CallingDataMethods (Inherited from System.Web.UI.WebControls.DataBoundControl)
CreatingModelDataSource (Inherited from System.Web.UI.WebControls.DataBoundControl)
DataBinding (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
122
DataBound (Inherited from
System.Web.UI.WebControls.BaseDataBoundControl)
Disposed (Inherited from System.Web.UI.Control)
Init (Inherited from System.Web.UI.Control)
ItemDataBinding Occurs before C1GalleryItem being created in data binding.
ItemDataBound Occurs after C1GalleryItem is created in data binding.
Load (Inherited from System.Web.UI.Control)
PreRender (Inherited from System.Web.UI.Control)
Unload (Inherited from System.Web.UI.Control)
Top
See Also
Reference
C1Gallery Class
C1.Web.Wijmo.Controls.C1Gallery Namespace
ItemDataBinding Event Occurs before C1GalleryItem being created in data binding.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1Gallery.ItemDataBinding", Description="Occurs
before C1GalleryItem being created in data binding.")>
<C1CategoryAttribute("Misc")>
Public Event ItemDataBinding As C1GalleryItemEventHandler
C#
[C1Description(Key="C1Gallery.ItemDataBinding", Description="Occurs before
C1GalleryItem being created in data binding.")]
ComponentOne Gallery for ASP.NET Webforms
123
[C1Category("Misc")]
public event C1GalleryItemEventHandler ItemDataBinding
Event Data
The event handler receives an argument of type C1GalleryItemEventArgs containing data
related to this event. The following C1GalleryItemEventArgs properties provide information
specific to this event.
Property Description
Item Gets the C1GalleryItem related with this event.
See Also
Reference
C1Gallery Class
C1Gallery Members
ItemDataBound Event Occurs after C1GalleryItem is created in data binding.
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Misc")>
<C1DescriptionAttribute(Key="C1Gallery.ItemDataBound", Description="Occurs
after C1GalleryItem is created in data binding.")>
Public Event ItemDataBound As C1GalleryItemEventHandler
C#
[C1Category("Misc")]
[C1Description(Key="C1Gallery.ItemDataBound", Description="Occurs after
C1GalleryItem is created in data binding.")]
public event C1GalleryItemEventHandler ItemDataBound
Event Data
The event handler receives an argument of type C1GalleryItemEventArgs containing data
related to this event. The following C1GalleryItemEventArgs properties provide information
specific to this event.
ComponentOne Gallery for ASP.NET Webforms
124
Property Description
Item Gets the C1GalleryItem related with this event.
See Also
Reference
C1Gallery Class
C1Gallery Members
C1GalleryItem Items within the gallery control.
Object Model
Syntax
Visual Basic (Declaration)
<System.ComponentModel.ToolboxItemAttribute(ToolboxItemType=,
ToolboxItemTypeName="")>
Public Class C1GalleryItem
Inherits C1.Web.Wijmo.Controls.Base.UIElement
C#
[System.ComponentModel.ToolboxItem(ToolboxItemType=, ToolboxItemTypeName="")]
public class C1GalleryItem : C1.Web.Wijmo.Controls.Base.UIElement
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
C1.Web.Wijmo.Controls.C1Gallery.C1GalleryItem
See Also
Reference
C1GalleryItem Members
C1.Web.Wijmo.Controls.C1Gallery Namespace
ComponentOne Gallery for ASP.NET Webforms
125
Overview Items within the gallery control.
Object Model
Syntax
Visual Basic (Declaration)
<System.ComponentModel.ToolboxItemAttribute(ToolboxItemType=,
ToolboxItemTypeName="")>
Public Class C1GalleryItem
Inherits C1.Web.Wijmo.Controls.Base.UIElement
C#
[System.ComponentModel.ToolboxItem(ToolboxItemType=, ToolboxItemTypeName="")]
public class C1GalleryItem : C1.Web.Wijmo.Controls.Base.UIElement
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
C1.Web.Wijmo.Controls.C1Gallery.C1GalleryItem
See Also
Reference
C1GalleryItem Members
C1.Web.Wijmo.Controls.C1Gallery Namespace
Members The following tables list the members exposed by C1GalleryItem.
Public Constructors
Name Description
C1GalleryItem Constructor Overloaded.
Top
ComponentOne Gallery for ASP.NET Webforms
126
Public Properties
Name Description
AccessKey (Inherited from
System.Web.UI.WebControls.WebControl)
AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)
Attributes (Inherited from
System.Web.UI.WebControls.WebControl)
Caption Gets or sets the gallery item's caption.
ClientID (Inherited from System.Web.UI.Control)
ClientIDMode (Inherited from System.Web.UI.Control)
Controls (Inherited from System.Web.UI.Control)
ControlStyle (Inherited from
System.Web.UI.WebControls.WebControl)
ControlStyleCreated (Inherited from
System.Web.UI.WebControls.WebControl)
DataItem Gets or sets the underlying data object that
the C1GalleryItem object is bound to.
HasAttributes (Inherited from
System.Web.UI.WebControls.WebControl)
ID (Inherited from System.Web.UI.Control)
ImageUrl Gets or sets the image URL of gallery item.
LinkUrl Gets or sets the link URL for the gallery item.
ComponentOne Gallery for ASP.NET Webforms
127
NamingContainer (Inherited from System.Web.UI.Control)
Page (Inherited from System.Web.UI.Control)
Parent (Inherited from System.Web.UI.Control)
RenderingCompatibility (Inherited from System.Web.UI.Control)
Site (Inherited from System.Web.UI.Control)
SkinID (Inherited from
System.Web.UI.WebControls.WebControl)
Style (Inherited from
System.Web.UI.WebControls.WebControl)
SupportsDisabledAttribute (Inherited from
System.Web.UI.WebControls.WebControl)
TabIndex (Inherited from
System.Web.UI.WebControls.WebControl)
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
Title Gets or sets the image's title.
ToolTip (Inherited from
System.Web.UI.WebControls.WebControl)
UniqueID (Inherited from System.Web.UI.Control)
ValidateRequestMode (Inherited from System.Web.UI.Control)
ViewStateMode (Inherited from System.Web.UI.Control)
Visible Overridden.
ComponentOne Gallery for ASP.NET Webforms
128
Top
Public Methods
Name Description
ApplyStyle (Inherited from System.Web.UI.WebControls.WebControl)
ApplyStyleSheetSkin (Inherited from System.Web.UI.Control)
CopyBaseAttributes (Inherited from System.Web.UI.WebControls.WebControl)
DataBind (Inherited from System.Web.UI.Control)
Dispose (Inherited from System.Web.UI.Control)
FindControl (Inherited from System.Web.UI.Control)
Focus (Inherited from System.Web.UI.Control)
GetRouteUrl Overloaded. (Inherited from System.Web.UI.Control)
GetUniqueIDRelativeTo (Inherited from System.Web.UI.Control)
HasControls (Inherited from System.Web.UI.Control)
MergeStyle (Inherited from System.Web.UI.WebControls.WebControl)
RenderBeginTag (Inherited from System.Web.UI.WebControls.WebControl)
RenderControl (Inherited from System.Web.UI.Control)
RenderEndTag (Inherited from System.Web.UI.WebControls.WebControl)
ResolveClientUrl (Inherited from System.Web.UI.Control)
ResolveUrl (Inherited from System.Web.UI.Control)
SetRenderMethodDelegate (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
129
Top
Public Events
Name Description
DataBinding (Inherited from System.Web.UI.Control)
Disposed (Inherited from System.Web.UI.Control)
Init (Inherited from System.Web.UI.Control)
Load (Inherited from System.Web.UI.Control)
PreRender (Inherited from System.Web.UI.Control)
Unload (Inherited from System.Web.UI.Control)
Top
See Also
Reference
C1GalleryItem Class
C1.Web.Wijmo.Controls.C1Gallery Namespace
C1GalleryItem Constructor
Overload List
Overload Description
C1GalleryItem Constructor() Initializes a new instance of the C1GalleryItem class.
C1GalleryItem Constructor(Int32) Initializes a new instance of the C1GalleryItem class.
See Also
Reference
C1GalleryItem Class
C1GalleryItem Members
ComponentOne Gallery for ASP.NET Webforms
130
C1GalleryItem Constructor() Initializes a new instance of the C1GalleryItem class.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public C1GalleryItem()
See Also
Reference
C1GalleryItem Class
C1GalleryItem Members
Overload List
C1GalleryItem Constructor(Int32) Initializes a new instance of the C1GalleryItem class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal index As System.Integer _
)
C#
public C1GalleryItem(
System.int index
)
Parameters
index
See Also
Reference
ComponentOne Gallery for ASP.NET Webforms
131
C1GalleryItem Class
C1GalleryItem Members
Overload List
Properties For a list of all members of this type, see C1GalleryItem members.
Public Properties
Name Description
AccessKey (Inherited from
System.Web.UI.WebControls.WebControl)
AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)
Attributes (Inherited from
System.Web.UI.WebControls.WebControl)
Caption Gets or sets the gallery item's caption.
ClientID (Inherited from System.Web.UI.Control)
ClientIDMode (Inherited from System.Web.UI.Control)
Controls (Inherited from System.Web.UI.Control)
ControlStyle (Inherited from
System.Web.UI.WebControls.WebControl)
ControlStyleCreated (Inherited from
System.Web.UI.WebControls.WebControl)
DataItem Gets or sets the underlying data object that
the C1GalleryItem object is bound to.
HasAttributes (Inherited from
System.Web.UI.WebControls.WebControl)
ComponentOne Gallery for ASP.NET Webforms
132
ID (Inherited from System.Web.UI.Control)
ImageUrl Gets or sets the image URL of gallery item.
LinkUrl Gets or sets the link URL for the gallery item.
NamingContainer (Inherited from System.Web.UI.Control)
Page (Inherited from System.Web.UI.Control)
Parent (Inherited from System.Web.UI.Control)
RenderingCompatibility (Inherited from System.Web.UI.Control)
Site (Inherited from System.Web.UI.Control)
SkinID (Inherited from
System.Web.UI.WebControls.WebControl)
Style (Inherited from
System.Web.UI.WebControls.WebControl)
SupportsDisabledAttribute (Inherited from
System.Web.UI.WebControls.WebControl)
TabIndex (Inherited from
System.Web.UI.WebControls.WebControl)
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
Title Gets or sets the image's title.
ToolTip (Inherited from
System.Web.UI.WebControls.WebControl)
UniqueID (Inherited from System.Web.UI.Control)
ComponentOne Gallery for ASP.NET Webforms
133
ValidateRequestMode (Inherited from System.Web.UI.Control)
ViewStateMode (Inherited from System.Web.UI.Control)
Visible Overridden.
Top
See Also
Reference
C1GalleryItem Class
C1.Web.Wijmo.Controls.C1Gallery Namespace
Caption Property Gets or sets the gallery item's caption.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1GalleryItem.Caption", Description="Gets or
sets the gallery item's caption.")>
<WidgetOptionAttribute()>
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("Appearance")>
<LayoutAttribute(LayoutType.Appearance)>
Public Property Caption As System.String
C#
[C1Description(Key="C1GalleryItem.Caption", Description="Gets or sets the
gallery item's caption.")]
[WidgetOption()]
[System.ComponentModel.DefaultValue()]
[C1Category("Appearance")]
[Layout(LayoutType.Appearance)]
public System.string Caption {get; set;}
See Also
Reference
ComponentOne Gallery for ASP.NET Webforms
134
C1GalleryItem Class
C1GalleryItem Members
DataItem Property Gets or sets the underlying data object that the C1GalleryItem object is bound to.
Syntax
Visual Basic (Declaration)
Public Overridable ReadOnly Property DataItem As System.Object
C#
public virtual System.object DataItem {get;}
See Also
Reference
C1GalleryItem Class
C1GalleryItem Members
ImageUrl Property Gets or sets the image URL of gallery item.
Syntax
Visual Basic (Declaration)
<System.Web.UI.UrlPropertyAttribute()>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1GalleryItem.ImageUrl", Description="Gets or
sets the image URL of gallery item.")>
<System.ComponentModel.DefaultValueAttribute()>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor,
System.Drawing, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a",
EditorTypeName="System.Web.UI.Design.ImageUrlEditor")>
<C1CategoryAttribute("Appearance")>
<LayoutAttribute(LayoutType.Appearance)>
Public Property ImageUrl As System.String
C#
ComponentOne Gallery for ASP.NET Webforms
135
[System.Web.UI.UrlProperty()]
[WidgetOption()]
[C1Description(Key="C1GalleryItem.ImageUrl", Description="Gets or sets the
image URL of gallery item.")]
[System.ComponentModel.DefaultValue()]
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor,
System.Drawing, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a",
EditorTypeName="System.Web.UI.Design.ImageUrlEditor")]
[C1Category("Appearance")]
[Layout(LayoutType.Appearance)]
public System.string ImageUrl {get; set;}
See Also
Reference
C1GalleryItem Class
C1GalleryItem Members
LinkUrl Property Gets or sets the link URL for the gallery item.
Syntax
Visual Basic (Declaration)
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor,
System.Drawing, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a",
EditorTypeName="System.Web.UI.Design.UrlEditor")>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1GalleryItem.LinkUrl", Description="Gets or
sets the link URL for the gallery item.")>
<C1CategoryAttribute("Appearance")>
<System.Web.UI.UrlPropertyAttribute()>
<System.ComponentModel.DefaultValueAttribute()>
<LayoutAttribute(LayoutType.Appearance)>
Public Property LinkUrl As System.String
C#
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor,
System.Drawing, Version=4.0.0.0, Culture=neutral,
ComponentOne Gallery for ASP.NET Webforms
136
PublicKeyToken=b03f5f7f11d50a3a",
EditorTypeName="System.Web.UI.Design.UrlEditor")]
[WidgetOption()]
[C1Description(Key="C1GalleryItem.LinkUrl", Description="Gets or sets the
link URL for the gallery item.")]
[C1Category("Appearance")]
[System.Web.UI.UrlProperty()]
[System.ComponentModel.DefaultValue()]
[Layout(LayoutType.Appearance)]
public System.string LinkUrl {get; set;}
See Also
Reference
C1GalleryItem Class
C1GalleryItem Members
Title Property Gets or sets the image's title.
Syntax
Visual Basic (Declaration)
<LayoutAttribute(LayoutType.Appearance)>
<C1DescriptionAttribute(Key="C1GalleryItem.Title", Description="Gets or sets
the image's title.")>
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("Appearance")>
Public Property Title As System.String
C#
[Layout(LayoutType.Appearance)]
[C1Description(Key="C1GalleryItem.Title", Description="Gets or sets the
image's title.")]
[System.ComponentModel.DefaultValue()]
[C1Category("Appearance")]
public System.string Title {get; set;}
See Also
Reference
ComponentOne Gallery for ASP.NET Webforms
137
C1GalleryItem Class
C1GalleryItem Members
Visible Property
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()> <LayoutAttribute(LayoutType.Appearance)> <WidgetOptionAttribute()> Public Overrides Property Visible As System.Boolean
C#
[System.ComponentModel.DefaultValue()] [Layout(LayoutType.Appearance)] [WidgetOption()] public override System.bool Visible {get; set;}
C1GalleryItemCollection Represents the structure that manages the C1GalleryItem items.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1GalleryItemCollection
Inherits
C1.Web.Wijmo.Controls.Base.Collections.C1ObservableItemCollection(Of
C1Gallery,C1GalleryItem)
C#
public class C1GalleryItemCollection :
C1.Web.Wijmo.Controls.Base.Collections.C1ObservableItemCollection<C1Gallery,C
1GalleryItem>
Inheritance Hierarchy
System.Object
System.Collections.ObjectModel.Collection<T>
C1.Web.Wijmo.Controls.C1Gallery.C1GalleryItemCollection
ComponentOne Gallery for ASP.NET Webforms
138
See Also
Reference
C1GalleryItemCollection Members
C1.Web.Wijmo.Controls.C1Gallery Namespace
Overview Represents the structure that manages the C1GalleryItem items.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1GalleryItemCollection
Inherits
C1.Web.Wijmo.Controls.Base.Collections.C1ObservableItemCollection(Of
C1Gallery,C1GalleryItem)
C#
public class C1GalleryItemCollection :
C1.Web.Wijmo.Controls.Base.Collections.C1ObservableItemCollection<C1Gallery,C
1GalleryItem>
Inheritance Hierarchy
System.Object
System.Collections.ObjectModel.Collection<T>
C1.Web.Wijmo.Controls.C1Gallery.C1GalleryItemCollection
See Also
Reference
C1GalleryItemCollection Members
C1.Web.Wijmo.Controls.C1Gallery Namespace
Members The following tables list the members exposed by C1GalleryItemCollection.
ComponentOne Gallery for ASP.NET Webforms
139
Public Constructors
Name Description
C1GalleryItemCollection Constructor Initializes a new instance of the
C1GalleryItemCollection class.
Top
Public Properties
Name Description
Item (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
Top
Public Methods
Name Description
Add Adds C1GalleryItem node to the collection.
Clear (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
Contains (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
CopyTo (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
IndexOf (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
Insert Insert a C1GalleryItem item into a specific position in the collection.
Remove (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
ComponentOne Gallery for ASP.NET Webforms
140
RemoveAt (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
Top
See Also
Reference
C1GalleryItemCollection Class
C1.Web.Wijmo.Controls.C1Gallery Namespace
C1GalleryItemCollection Constructor Initializes a new instance of the C1GalleryItemCollection class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal owner As C1Gallery _
)
C#
public C1GalleryItemCollection(
C1Gallery owner
)
Parameters
owner
Parent ComboBox.
See Also
Reference
C1GalleryItemCollection Class
C1GalleryItemCollection Members
Methods For a list of all members of this type, see C1GalleryItemCollection members.
Public Methods
ComponentOne Gallery for ASP.NET Webforms
141
Name Description
Add Adds C1GalleryItem node to the collection.
Clear (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
Contains (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
CopyTo (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
IndexOf (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
Insert Insert a C1GalleryItem item into a specific position in the collection.
Remove (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
RemoveAt (Inherited from
System.Collections.ObjectModel.Collection<C1GalleryItem>)
Top
See Also
Reference
C1GalleryItemCollection Class
C1.Web.Wijmo.Controls.C1Gallery Namespace
Add Method Adds C1GalleryItem node to the collection.
Syntax
Visual Basic (Declaration)
Public Shadows Sub Add( _
ComponentOne Gallery for ASP.NET Webforms
142
ByVal item As C1GalleryItem _
)
C#
public new void Add(
C1GalleryItem item
)
Parameters
item
item to add.
See Also
Reference
C1GalleryItemCollection Class
C1GalleryItemCollection Members
Insert Method Item position. Value should be greater or equal to 0
The new C1GalleryItem item
Insert a C1GalleryItem item into a specific position in the collection.
Syntax
Visual Basic (Declaration)
Public Shadows Sub Insert( _
ByVal index As System.Integer, _
ByVal child As C1GalleryItem _
)
C#
public new void Insert(
System.int index,
C1GalleryItem child
)
Parameters
index
ComponentOne Gallery for ASP.NET Webforms
143
Item position. Value should be greater or equal to 0
child
The new C1GalleryItem item
See Also
Reference
C1GalleryItemCollection Class
C1GalleryItemCollection Members
C1GalleryItemEventArgs Contains event data for data binding events, such as the
C1Gallery.ItemDataBound and C1Gallery.ItemDataBinding events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1GalleryItemEventArgs
Inherits System.EventArgs
C#
public class C1GalleryItemEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Web.Wijmo.Controls.C1Gallery.C1GalleryItemEventArgs
See Also
Reference
C1GalleryItemEventArgs Members
C1.Web.Wijmo.Controls.C1Gallery Namespace
ComponentOne Gallery for ASP.NET Webforms
144
Overview Contains event data for data binding events, such as the
C1Gallery.ItemDataBound and C1Gallery.ItemDataBinding events.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1GalleryItemEventArgs
Inherits System.EventArgs
C#
public class C1GalleryItemEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Web.Wijmo.Controls.C1Gallery.C1GalleryItemEventArgs
See Also
Reference
C1GalleryItemEventArgs Members
C1.Web.Wijmo.Controls.C1Gallery Namespace
Members The following tables list the members exposed by C1GalleryItemEventArgs.
Public Constructors
Name Description
C1GalleryItemEventArgs Constructor Initializes a new instance of the C1GalleryItem class.
Top
Public Properties
ComponentOne Gallery for ASP.NET Webforms
145
Name Description
Item Gets the C1GalleryItem related with this event.
Top
See Also
Reference
C1GalleryItemEventArgs Class
C1.Web.Wijmo.Controls.C1Gallery Namespace
C1GalleryItemEventArgs Constructor Initializes a new instance of the C1GalleryItem class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal item As C1GalleryItem _
)
C#
public C1GalleryItemEventArgs(
C1GalleryItem item
)
Parameters
item
C1GalleryItem related with this event
See Also
Reference
C1GalleryItemEventArgs Class
C1GalleryItemEventArgs Members
Properties For a list of all members of this type, see C1GalleryItemEventArgs members.
ComponentOne Gallery for ASP.NET Webforms
146
Public Properties
Name Description
Item Gets the C1GalleryItem related with this event.
Top
See Also
Reference
C1GalleryItemEventArgs Class
C1.Web.Wijmo.Controls.C1Gallery Namespace
Item Property Gets the C1GalleryItem related with this event.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Item As C1GalleryItem
C#
public C1GalleryItem Item {get;}
See Also
Reference
C1GalleryItemEventArgs Class
C1GalleryItemEventArgs Members
Enumerations
DisplayMode Specifies the display mode of gallery.
Syntax
Visual Basic (Declaration)
ComponentOne Gallery for ASP.NET Webforms
147
Public Enum DisplayMode
Inherits System.Enum
C#
public enum DisplayMode : System.Enum
Members
Member Description
Flv Flv mode.
Iframe Iframe mode.
Img Image mode.
Swf Swf mode.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Web.Wijmo.Controls.C1Gallery.DisplayMode
See Also
Reference
C1.Web.Wijmo.Controls.C1Gallery Namespace
ThumbsPosition Specifies the position of the thumbnail image navigation buttons.
Syntax
Visual Basic (Declaration)
Public Enum ThumbsPosition
Inherits System.Enum
C#
ComponentOne Gallery for ASP.NET Webforms
148
public enum ThumbsPosition : System.Enum
Members
Member Description
After Inside of frame
Before Outside of frame
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Web.Wijmo.Controls.C1Gallery.ThumbsPosition
See Also
Reference
C1.Web.Wijmo.Controls.C1Gallery Namespace
Delegates
C1GalleryItemEventHandler The source of the event.
An C1GalleryItemEventArgs that contains event data.
Represents the method that will handle an data binding events of C1GalleryItem, such as the
C1Gallery.ItemDataBound and C1Gallery.ItemDataBinding events.
Syntax
Visual Basic (Declaration)
Public Delegate Sub C1GalleryItemEventHandler( _
ByVal sender As System.Object, _
ByVal args As C1GalleryItemEventArgs _
)
C#
ComponentOne Gallery for ASP.NET Webforms
149
public delegate void C1GalleryItemEventHandler(
System.object sender,
C1GalleryItemEventArgs args
)
Parameters
sender
The source of the event.
args
An C1GalleryItemEventArgs that contains event data.
See Also
Reference
C1GalleryItemEventHandler Members
C1.Web.Wijmo.Controls.C1Gallery Namespace