componentone appview for aspprerelease.componentone.com/help/aspnetwebforms/asp... ·...
TRANSCRIPT
ComponentOne
AppView for ASP.NET
Web Forms
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.
AppView for ASP.NET Web Forms
1
Table of Contents Overview ................................................................................................................................. 7
Help with ASP.NET Web Forms Edition ................................................................................ 7
Key Features ............................................................................................................................ 7
Quick Start............................................................................................................................... 8
Step 1 of 3: Add C1AppView to the Page .............................................................................. 8
Step 2 of 3: Add C1AppViewItems and C1AppViewPages ..................................................... 9
Step 3 of 3: Run your Application ....................................................................................... 11
Design-Time Support ............................................................................................................. 12
Smart Tag .......................................................................................................................... 13
Context Menu.................................................................................................................... 14
Designer Form ................................................................................................................... 15
Exploring the C1AppView Designer Form ....................................................................... 15
C1AppView Designer Form Menu ............................................................................... 19
C1AppView Designer Form Toolbar ............................................................................ 20
How to Use the C1AppView Designer Form .................................................................... 21
Deleting a C1AppViewItem......................................................................................... 22
Renaming a C1AppViewItem ...................................................................................... 22
Adding a Child Item .................................................................................................... 22
Inserting a C1AppViewItem ........................................................................................ 22
Elements ............................................................................................................................... 23
C1AppView ........................................................................................................................ 23
The Content Page........................................................................................................... 24
The Header Element ...................................................................................................... 24
C1AppViewItem ................................................................................................................. 25
C1AppViewPage ................................................................................................................ 25
Appearance ........................................................................................................................... 26
Theme Swatches................................................................................................................ 26
Swatch a ........................................................................................................................ 28
Swatch b ........................................................................................................................ 28
Swatch c ........................................................................................................................ 29
Swatch d ........................................................................................................................ 29
Swatch e ........................................................................................................................ 30
AppView for ASP.NET Web Forms
2
Task Based Help..................................................................................................................... 30
Theming ............................................................................................................................ 30
Applying Default Swatches ............................................................................................. 31
Setting a Default Theme in Code .................................................................................... 31
Using a Custom Theme .................................................................................................. 32
Tutorials ................................................................................................................................ 32
Creating an Event Planning Application .............................................................................. 32
Step 1 of 4: Setting Up the Application ........................................................................... 33
Step 2 of 4: Creating the Application's Web Forms ......................................................... 34
a. Adding Markup to the Main.aspx file ...................................................................... 34
b. Creating the Calendar............................................................................................. 35
c. Creating the Events................................................................................................. 37
d. Creating the Home Folder Elements ....................................................................... 49
Step 3 of 4: Creating the Models .................................................................................... 50
Step 4 of 4: Running Your Application ............................................................................ 53
Working with the Client-Side ................................................................................................. 55
Client-Side Events .............................................................................................................. 56
Client-Side Reference ............................................................................................................ 56
Using the Wijmo CDN ........................................................................................................ 57
C1.Web.Wijmo.Controls.4 Assembly ...................................................................................... 58
Namespaces ...................................................................................................................... 58
C1.Web.Wijmo.Controls Namespace .............................................................................. 58
Overview ................................................................................................................... 58
Classes ....................................................................................................................... 59
C1BaseStateManager ............................................................................................. 59
Overview ............................................................................................................ 59
Members............................................................................................................ 60
C1TargetControlBase.............................................................................................. 60
Overview ............................................................................................................ 61
Members............................................................................................................ 62
Methods............................................................................................................. 67
GetPropertyValue<V> Method........................................................................ 68
GetScriptDescriptors Method ......................................................................... 69
GetScriptReferences Method .......................................................................... 70
AppView for ASP.NET Web Forms
3
RegisterDesignTimeStyleSheet Method .......................................................... 70
SetPropertyValue<V> Method ........................................................................ 71
Properties .......................................................................................................... 72
CDNDependencyPaths Property...................................................................... 75
CDNPath Property .......................................................................................... 76
DisplayVisible Property ................................................................................... 77
EnableCombinedJavaScripts Property ............................................................. 78
Enabled Property ............................................................................................ 79
Theme Property .............................................................................................. 79
ThemeSwatch Property .................................................................................. 80
UseCDN Property ............................................................................................ 81
WijmoControlMode Property ......................................................................... 82
WijmoCssAdapter Property............................................................................. 83
C1TargetControlHelper........................................................................................... 84
Overview ............................................................................................................ 84
Members............................................................................................................ 85
C1TargetControlHelper Constructor ................................................................... 86
Methods............................................................................................................. 86
ResolveEmbeddedResourceUrl Method .......................................................... 86
C1TargetControlHelper<T> ..................................................................................... 87
Overview ............................................................................................................ 88
Members............................................................................................................ 89
C1TargetControlHelper<T> Constructor .............................................................. 90
Methods............................................................................................................. 91
EnsureEnabledState Method .......................................................................... 92
GetScriptDescriptors Method ......................................................................... 92
GetScriptDescriptors() Method ................................................................... 93
GetScriptDescriptors(String) Method .......................................................... 93
RegisterDesignTimeStyleSheet Method .......................................................... 94
RegisterDesignTimeStyleSheets Method ......................................................... 95
RegisterIncludes Method ................................................................................ 95
RegisterOnSubmitStatement Method ............................................................. 96
RegisterRunTimeStylesheets Method ............................................................. 96
RegisterScriptDescriptors Method .................................................................. 97
AppView for ASP.NET Web Forms
4
RegisterScriptDescriptorsWithoutScriptManager Method............................... 97
RegisterScriptDescriptorsWithScriptManager Method .................................... 98
RenderJsonDataField Method ......................................................................... 98
ShowAbout Method ....................................................................................... 99
Properties .......................................................................................................... 99
Control Property ............................................................................................100
JsonSerializableHelper Property .....................................................................100
Page Property ................................................................................................100
ScriptManager Property.................................................................................101
WijChartNavigator.................................................................................................101
Overview ...........................................................................................................102
Members...........................................................................................................102
WijChartNavigator Constructor .........................................................................103
C1.Web.Wijmo.Controls.C1AppView Namespace ..........................................................103
Overview ..................................................................................................................103
Classes ......................................................................................................................104
C1AppView............................................................................................................104
Overview ...........................................................................................................105
Members...........................................................................................................107
C1AppView Constructor ....................................................................................112
Methods............................................................................................................113
LoadLayout Method.......................................................................................114
LoadLayout(String) Method .......................................................................115
LoadLayout(Stream) Method .....................................................................115
LoadLayout(String,LayoutType) Method ....................................................116
LoadLayout(Stream,LayoutType) Method ..................................................117
RaisePostBackEvent Method..........................................................................118
RenderBeginTag Method ...............................................................................118
SaveLayout Method .......................................................................................119
SaveLayout(String) Method........................................................................119
SaveLayout(Stream) Method .....................................................................120
Properties .........................................................................................................121
AppViewPageUrlField Property ......................................................................124
DataTextField Property ..................................................................................125
AppView for ASP.NET Web Forms
5
DefaultContent Property ...............................................................................126
HeaderTitle Property .....................................................................................127
Items Property ...............................................................................................128
LoadSettings Property....................................................................................129
OnClientPageBeforeChange Property ............................................................130
OnClientPageBeforeLoad Property.................................................................130
OnClientPageChange Property .......................................................................131
OnClientPageChangeFailed Property..............................................................132
OnClientPageLoad Property ...........................................................................133
OnClientPageLoadFailed Property ..................................................................133
ThemeSwatch Property .................................................................................134
UrlParamName Property ...............................................................................135
C1AppViewItem ....................................................................................................136
Overview ...........................................................................................................137
Members...........................................................................................................138
C1AppViewItem Constructor .............................................................................142
C1AppViewItem Constructor() .......................................................................142
C1AppViewItem Constructor(C1AppView) .....................................................142
Properties .........................................................................................................143
AppViewPageUrl Property .............................................................................145
Text Property .................................................................................................146
ThemeSwatch Property .................................................................................147
C1AppViewItemCollection .....................................................................................147
Overview ...........................................................................................................148
Members...........................................................................................................149
C1AppViewItemCollection Constructor ..............................................................150
Methods............................................................................................................151
Add Method ..................................................................................................152
Clear Method.................................................................................................152
Insert Method................................................................................................153
Remove Method ............................................................................................153
RemoveAt Method ........................................................................................154
C1AppViewPage ....................................................................................................155
Overview ...........................................................................................................156
AppView for ASP.NET Web Forms
6
Members...........................................................................................................157
C1AppViewPage Constructor .............................................................................162
Methods............................................................................................................162
RenderBeginTag Method ...............................................................................163
Properties .........................................................................................................164
Content Property ...........................................................................................167
Header Property ............................................................................................168
HeaderTitle Property .....................................................................................168
C1AppViewSerializer .............................................................................................169
Overview ...........................................................................................................170
Members...........................................................................................................170
C1AppViewSerializer Constructor ......................................................................171
C1AppViewTemplateContent ................................................................................171
Overview ...........................................................................................................172
Members...........................................................................................................173
C1AppViewTemplateContent Constructor .........................................................177
Properties .........................................................................................................177
Template Property .........................................................................................179
TemplateContainer Property .........................................................................180
AppView for ASP.NET Web Forms
7
Overview Create interactive applications with AppView for ASP.NET Web
Forms. This special control was created to give you a robust
framework for creating adaptive, all-in-one applications. Build a
single application with built-in navigation, ajax-loaded content, and
a responsive layout system, which will work on both phones and
tablets while optimizing screen real estate.
Getting Started
Get started with the
following topics:
Key Features
Control Elements
See Also
Help with ASP.NET Web Forms Edition
Help with ASP.NET Web Forms Edition Getting Started
For information on installing ComponentOne Studio ASP.NET Web Forms Edition, licensing,
technical support, namespaces and creating a project with the control, please visit Getting
Started with ASP.NET Web Forms Edition.
Key Features
Mobile Application Optimization
C1AppView was designed specifically for mobile applications, allowing you to create a
flexible, touch-centric mobile application.
Adaptive for Mobile Use
The C1AppView control automatically determines the best layout for your screen size.
When viewed on a tablet, you'll see both halves of the container side-by-side with the
menu on the left and the content pane on the right. When you use a mobile phone to
view the application, you'll see the menu first. On menu-item selection, the display will
move to the content pane.
Build a single application
Use the C1AppView's robust framework to create an all-in-one application with built-in
navigation.
AppView for ASP.NET Web Forms
8
Quick Start This quick start describes how to get started with AppView for ASP.NET Web Forms. In the
quick start you'll create a project in Visual Studio, add a C1AppView control to your project, and
add and customize content for your C1AppView control.
See Also
Step 1 of 3: Add C1AppView to the Page
Step 2 of 3: Add C1AppViewItems and C1AppViewPages
Step 3 of 3: Run your Application
Step 1 of 3: Add C1AppView to the Page In this step you'll create a new project and add an AppView for ASP.NET Web Forms control
to your project. To begin the Quick Start, complete the following steps:
1. From the Visual Studio File menu select New │ Project. The New Project dialog box
will appear.
a. Expand a language in the left-have pane and select Web.
b. In the right-hand pane, choose ASP.NET Empty Web Application, enter a
Name for your application, and select OK.
c. A new application will be created.
2. In the Solution Explorer, right-click the project and choose Add Reference.
a. In the Add Reference dialog box, locate and select the
C1.Web.Wijmo.Controls.4 and C1.Web.Wijmo.Controls.Design.4
assemblies.
b. Click OK to add the assembly references.
3. Right-click the project in the Solution Explorer and from the context menu choose Add
│ New Item.
a. In the Add New Item dialog box, choose Web Form from the list of templates.
b. Name this item "Main.aspx".
c. Click Add to open the new page.
4. Locate the <body> tags on the page. The markup should resemble the following
sample:
To write code in Source View
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
5. Edit the existing <div> </div> tags so that they resemble the following:
AppView for ASP.NET Web Forms
9
To write code in Source View
<div data-role="page"> </div>
6. Place your cursor between the <div> </div> tags, and add the C1AppView control in
one of the following ways:
a. Locate the C1AppView control in the Visual Studio Toolbox. Double-click the
control to add it to your application.
b. Insert the following markup between the <div> </div> tags:
To write code in Source View
<cc1:C1AppView ID="C1AppView1" runat="server" Height="300px"
></cc1:C1AppView>
You've completed creating a new project and adding a C1AppView control to your project. In
the next step you'll customize the control's appearance and behavior.
Step 2 of 3: Add C1AppViewItems and
C1AppViewPages In this step you'll add a C1AppViewItem and C1AppViewPages to your application. Complete
the following steps to customize your AppView for ASP.NET Web Forms control:
1. Click the opening <cc1:C1AppView> tag to reveal the control's smart tag .
2. Locate the Mobile Mode option in the C1AppView Tasks Menu and check the
checkbox.
3. Click the page to close the C1AppView Tasks Menu.
4. Alter the <cc1:C1AppView> markup so that it resembles the markup that follows. This
will add one C1AppViewItems to your project:
To write code in Source View
<cc1:C1AppView ID="C1AppView1" runat="server" HeaderTitle="Home
Page" Height="300px">
<DefaultContent>
<p>
This application was built with Wijmo, jQuery Mobile.
Learn more about Wijmo at
<ahref="http://wijmo.com">http://wijmo.com</a>.
</p>
</DefaultContent>
<Items>
<cc1:C1AppViewItem Text="Wizard"
AppViewPageUrl="/Wizard/Index.aspx">
</cc1:C1AppViewItem>
</Items>
</cc1:C1AppView>
AppView for ASP.NET Web Forms
10
Note that the AppViewPageUrl property is set. In the next step, you'll add the
C1AppViewPages.
5. In the Solution Explorer, right-click the name of your application. Select Add | New
Folder from the menu. Name the added folder Wizard.
6. Right-click the Wizard folder and complete the following steps:
a. Select Add | New Item from the menu.
b. From the Add New Item dialog window, select Web Form and name it
Index.aspx. The page should open when you click OK.
7. Select the Index.aspx page and edit the markup within the <body> tags so that it
resembles the following:
Markup Copy Code
<cc1:C1AppViewPage runat="server">
<content id="Content1" runat="server">
<Template>
<cc1:C1Wizard ID="C1Wizard1" runat="server" Delay="300">
<steps>
<cc1:C1WizardStep runat="server" Title="Step1"
ID="C1Wizard1_Step1">
Mauris eleifend est et turpis. Duis id erat. Duis cursus.
</cc1:C1WizardStep>
<cc1:C1WizardStep runat="server" Title="Step2"
ID="C1Wizard1_Step2">
This is the second step.
</cc1:C1WizardStep>
<cc1:C1WizardStep runat="server" Title="Step3"
ID="C1Wizard1_Step3">
This is the third step.
</cc1:C1WizardStep>
<cc1:C1WizardStep runat="server" Title="Step4"
ID="C1Wizard1_Step4">
This is the fourth step.
</cc1:C1WizardStep>
<cc1:C1WizardStep runat="server" Title="Step5"
ID="C1Wizard1_Step5">
This is the final step.
</cc1:C1WizardStep>
</steps>
</cc1:C1Wizard>
</Template>
</content>
AppView for ASP.NET Web Forms
11
</cc1:C1AppViewPage>
Step 3 of 3: Run your Application Now that you've customized your C1AppView control's appearance and behavior, the only thing
left to do is to run your application and observe some of the run-time functionality of the
C1AppView control.
Complete the following steps:
1. Press F5 or start debugging to run your application.
2. Initially, your application should resemble the following image:
AppView for ASP.NET Web Forms
12
3. When you tap or click the Wizard C1AppViewItem, the page containing the C1Wizard
control will be displayed:
Congratulations, you've created and customized a C1AppView control and completed the
AppView for ASP.NET Web Forms Quick Start guide!
Design-Time Support AppView for ASP.NET Web Forms includes customized context menus, smart tags, and
design-time support that simplify working with the object model.
The following sections describe how to use the AppView for ASP.NET Web Forms design-time
environment, particularly the C1AppView Tasks menu accessible from the Smart Tag and
Context Menu, to configure the C1AppView control.
See Also
Smart Tag
Context Menu
Designer Form
AppView for ASP.NET Web Forms
13
Smart Tag The C1AppView control includes a smart tag . A smart tag represents a short-cut tasks menu
that provides the most commonly used properties in each component/command.
To access the C1AppView Tasks menu, click on the smart tag arrow in the upper right corner of
the C1AppView control. This will open the C1AppView Tasks menu.
The C1AppView Tasks menu operates as follows:
Edit AppView Items
When you click Edit AppView Items, the C1AppView Designer Form opens. You can
use this form to set C1AppView properties, add C1AppViewItems, and set
C1AppViewItem properties. You can also preview your C1AppView application. See the
Designer Form topic for more information.
Theme
Clicking the Theme drop-down box allows you to select from various visual schemes.
For more information about the available visual styles, see Appearance.
Create new theme...
Clicking the Create new theme... option opens the ThemeRoller for Visual Studio. To
find more information on using ThemeRoller in your application, see ThemeRoller for
Visual Studio.
Use CDNSelecting 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
The Use BootStrap option indicates whether or not to use BootStrap integration. To
find more information about Bootstrap theming in your application, see Bootstrap
theming.
AppView for ASP.NET Web Forms
14
Mobile Mode
Mobile Mode must be checked in order to use the C1AppView and C1ListView
controls.
ThemeSwatch
The ThemeSwatch option allows easy global theming.
About
Clicking on the About item displays a dialog box, which is helpful in finding the version
number for ASP.NET Web Forms Edition and online resources.
Add Extender
Clicking the Add Extender item opens the Extender Wizard, allowing you to add and
extender to the C1AppView control.
Context Menu The C1AppView control has additional commands with the context menu that Visual Studio
provides for all .NET controls. To access the C1AppView context menu, right-click anywhere on
the C1AppView control. This will open the C1AppView context menu.
The C1AppView context menu includes the following custom commands added by C1AppView:
Edit AppView Items
When you click Edit AppView Items, the C1AppView Designer Form opens. You can
use this form to set C1AppView properties, add C1AppViewItems, and set
C1AppViewItem properties. You can also preview your C1AppView application. See the
C1AppView Designer Form topic for more information.
Add Extender
Clicking the Add Extender item opens the Extender Wizard, allowing you to add an
extender to the C1AppView control.
AppView for ASP.NET Web Forms
15
Designer Form The C1AppView Designer Form is C1AppViews designer for editing its properties, adding
C1AppViewItems to the application, editing C1AppViewItem properties, and previewing your
C1AppView application. The C1AppView Designer Form resembles the Visual Studio
Properties window as it allows users to visually modify the control. However, the Designer Form
also allows you to add C1AppViewItems, edit the properties for both the C1AppView control
and the C1AppViewItems, and preview your application in the Preview tab.
In this topic, you will become familiar with the C1AppView Designer Form's interface so you
can use the commands within it to edit the C1AppView control with minimal effort and time.
To open the C1AppView Designer Form, click the Smart Tag. Select the Edit AppView Items
link from the C1AppView Tasks menu:
See Also
Exploring the C1AppView Designer Form
How to Use the C1AppView Designer Form
Exploring the C1AppView Designer Form The C1AppView Designer Form contains a menu, a toolbar, an Edit tab, and a Preview tab:
AppView for ASP.NET Web Forms
16
The Edit Tab
Click the Edit tab and select the C1AppView or the C1AppViewItem you wish to edit. This will
give you the properties available for you to edit:
AppView for ASP.NET Web Forms
17
The Preview Tab
Click the Preview tab for a preview of the C1AppView control:
AppView for ASP.NET Web Forms
18
The Properties Pane
The C1AppView Designer Form Properties pane is almost identical to the Visual Studio
Properties window. Use the Properties pane to change the properties of the C1AppView or the
C1AppViewItem.
AppView for ASP.NET Web Forms
19
Command Buttons
There are two command buttons summarized in the following table:
Button Description
OK Clicking OK applies the new settings to the C1AppView control.
Cancel Clicking Cancel closes the C1AppView Designer Form, cancelling the new settings and
applying the default settings to the C1AppView control.
See Also
C1AppView Designer Form Menu
C1AppView Designer Form Toolbar
C1AppView Designer Form Menu The C1AppView Designer Form menu contains the following available menu items and
submenus:
AppView for ASP.NET Web Forms
20
Menu
Item
Submenu
Item
Submenu Item
Icon Description
File Load from
XML
Load the formatting for the C1AppView control from
an .xml file.
Save as XML
Save the current formatting of the C1AppView control
to an .xml file.
Exit
Closes the C1AppView Designer Form.
Edit Insert Item
Inserts a new C1AppViewItem at the specified place in
the list of C1AppViewItems.
Add Child
Adds a new C1AppViewItem as a child of the
C1AppView or of another C1AppViewItem
Cut
Cuts the selected C1AppViewItem from the list of
C1AppViewItems.
Copy
Copies the selected C1AppViewItem
Paste
Pastes a C1AppViewItem at the specified location in
the list of C1AppViewItems.
Delete
Removes the selected C1AppViewItem
Rename
Allows you to change the name of the C1AppViewItem
C1AppView Designer Form Toolbar The C1AppView Designer Form Toolbar has options available depending on whether you
have chosen the main C1AppView control or one of the C1AppViewItems.
Note: The Move Item Left and Move Item Right buttons are not available. The Move
Item Up, Move Item Down, Cut, Copy, Paste, and Delete buttons are only available when
AppView for ASP.NET Web Forms
21
you select a C1AppViewItem.
The table below describes each available button:
Button Name Description
Move Item
Up
Moves the selected C1AppViewItem up one place in the list of Items. This
button is available when you select one of the C1AppViewItem s.
Move Item
Down
Moves the selected C1AppViewItem down one place in the list of Items.
This button is available when you select one of the C1AppViewItem s.
Add Child
Item
Adds a C1AppViewItem to the C1AppView control. This button is only
available when you select the C1AppView control.
Insert Item Inserts a C1AppViewItem above a selected C1AppViewItem. This button is
only available when you select a C1AppViewItem
Cut Cuts the selected C1AppViewItem from the list of C1AppViewItems.
Copy Copies the selected C1AppViewItem
Paste Pastes a C1AppViewItem at the specified location in the list of
C1AppViewItems.
Delete Removes the selected C1AppViewItem
How to Use the C1AppView Designer Form The following topics detail how to use the C1AppView Designer Form for several tasks.
See Also
Deleting a C1AppViewItem
Renaming a C1AppViewItem
Adding a Child Item
Inserting a C1AppViewItem
AppView for ASP.NET Web Forms
22
Deleting a C1AppViewItem
Deleting a C1AppViewItem through the shortcut menu.
Right-click the C1AppViewItem you wish to delete and select Delete from the shortcut
menu.
Deleting a C1AppViewItem by pressing the delete button.
Select the C1AppViewItem you wish to delete and press the delete button.
Deleting a C1AppViewItem through the Edit menu.
Select the C1AppViewItem you wish to delete. Select Delete from the Edit menu.
Renaming a C1AppViewItem
Pressing F2
1. Select the C1AppViewItem you wish to rename.
2. Press F2 and enter a new name for the C1AppViewItem.
Selecting Rename from the shortcut menu
1. Right-click the C1AppViewItem you wish to rename.
2. Enter a new name for the C1AppViewItem.
Selecting Rename from the Edit menu
1. Select the C1AppViewItem you wish to rename.
2. Select Edit | Rename and enter a new name for the C1AppViewItem.
Renaming the C1AppViewItem in the Properties pane
1. Select the C1AppViewItem you with to rename. Its properties will appear in the
Properties pane.
2. Locate the Text property. Enter a new name for the C1AppViewItem in the Text
property area.
Adding a Child Item You can use one of the following methods to add a child C1AppViewItem to your C1AppView
control.
Adding a child item through the shortcut menu.
Right-click the C1AppView and select Add Child | AppViewItem from the shortcut
menu.
Adding a child item by pressing the Add Child Item button.
Select the C1AppView to which you wish to add a C1AppViewItem. Click the Add Child
Item button in the Designer Form Toolbar to add a C1AppViewItem.
Adding a child item through the Edit menu.
Select the C1AppView to which you wish to add a C1AppViewItem. Select Add Child |
AppView Item from the Edit menu.
Inserting a C1AppViewItem
Inserting a C1AppViewItem through the shortcut menu.
1. Right-click a C1AppViewItem.
2. Select Insert Item | AppView Item from the shortcut menu.
3. A C1AppViewItem will be added above the selected item.
AppView for ASP.NET Web Forms
23
Inserting a C1AppViewItem through pressing the Insert Item button.
Select a C1AppViewItem. Press the Insert Item button to insert another
C1AppViewItem above the selected item.
Inserting a C1AppViewItem through the Edit menu.
Select the C1AppViewItem to which you wish to add a C1AppViewItem. Select Insert
Item | AppView Item from the Edit menu.
Elements This section provides a visual and descriptive overview of the elements that comprise the
C1AppView control. This control's UI contains a content page, and a menu element made up of
C1AppViewItems; it can also contain a page header element. When viewed on a small mobile
device, like a smart phone, the menu element will be shown. The following image shows a
labeled C1AppView control:
See Also
C1AppView
C1AppViewItem
C1AppViewPage
C1AppView The C1AppView control is comprised of three elements: the menu element, the content page,
and the header element. For more information on the menu element, please see the
C1AppViewItem topic. To create a C1AppView control, you can either locate the control in the
Visual Studio Toolbox and double-click to add it to your application, or you can place the
following markup within the <body> tags of your application:
AppView for ASP.NET Web Forms
24
To write code in Source View
<cc1:C1AppView ID="C1AppView1" runat="server"></cc1:C1AppView>
Note: The C1AppView control must be set to Mobile in order for the C1AppView control to
function properly. You can set this property through the C1AppView Tasks Menu.
In the following topics, we'll discuss the elements that make up the C1AppView control, and the
markup that is used to create them. For a discussion of the menu element, and the markup
used to create the element, please see the C1AppViewItem topic.
See Also
The Content Page
The Header Element
The Content Page The content page appears on the right side of the C1AppView application. The content page
displays the content you have set within the <DefaultContent> tags. You can see the markup
used to set content in the sample below:
To write code in Source View
<cc1:C1AppView ID="C1AppView1" runat="server"
WijmoControlMode="Mobile">
<DefaultContent>
<p>
This application was built with Wijmo, jQuery Mobile.
Learn more about Wijmo at <a
href="http://wijmo.com">http://wijmo.com</a>.
</p>
</DefaultContent>
</cc1:C1AppView>
You can display any content in the content page, including other controls.
The Header Element The header element allows you to add a title to your application. This will appear as a header
bar across the top of your application. You can set the header with the Header Title property,
as in the following markup:
To write code in Source View
<cc1:C1AppView ID="C1AppView1" runat="server" HeaderTitle="Home Page"
WijmoControlMode="Mobile">
AppView for ASP.NET Web Forms
25
C1AppViewItem C1AppViewItems are used to create the menu element, which appears at the left side of the
C1AppView control. They are contained within a <Items> tags, as in the following markup:
To write code in Source View
<cc1:C1AppView ID="C1AppView1" runat="server" HeaderTitle="Home Page"
Height="300px" WijmoControlMode="Mobile">
<Items>
<cc1:C1AppViewItem Text="List view"
AppViewPageUrl="/Event/Index.aspx"></cc1:C1AppViewItem>
<cc1:C1AppViewItem Text="Calendar view"
AppViewPageUrl="/Calendar/Index.aspx"></cc1:C1AppViewItem>
<cc1:C1AppViewItem Text="About"
AppViewPageUrl="/Home/About.aspx"></cc1:C1AppViewItem>
<cc1:C1AppViewItem Text="Contact"
AppViewPageUrl="/Home/Contact.aspx"></cc1:C1AppViewItem>
</Items>
</cc1:C1AppView>
The AppViewPageUrl property points the C1AppViewItem to the correct location. In the
sample above, the AppViewPageUrl property points to local C1AppViewPages.
C1AppViewPage The items contained in the C1AppViewPage are displayed in the content page of the
C1AppView control. The markup used to create a C1AppViewPage should resemble the
following:
To write code in Source View
<cc1:C1AppViewPage ID="C1AppViewPage1"
runat="server"></cc1:C1AppViewPage>
The C1AppViewPage as created above will not have any content attached to it. To create a
C1AppViewPage with content, the markup should resemble the following:
To write code in Source View
<cc1:C1AppViewPage ID="C1AppViewPage1" runat="server">
<Content ID="Content1" runat="server">
<Template>
<cc1:C1ListView ID="ListView1" runat="server" Inset="true">
<Items>
<cc1:C1ListViewItem Text="Item 1"></cc1:C1ListViewItem>
<cc1:C1ListViewItem Text="Item 2"></cc1:C1ListViewItem>
<cc1:C1ListViewItem Text="Item 3"></cc1:C1ListViewItem>
<cc1:C1ListViewItem Text="Item 4"></cc1:C1ListViewItem>
<cc1:C1ListViewItem Text="Item 5"></cc1:C1ListViewItem>
<cc1:C1ListViewItem Text="Item 6"></cc1:C1ListViewItem>
AppView for ASP.NET Web Forms
26
<cc1:C1ListViewItem Text="Item 7"></cc1:C1ListViewItem>
</Items>
</cc1:C1ListView>
</Template>
</Content>
</cc1:C1AppViewPage>
This will create a C1AppViewPage that contains a basic display list. A C1AppViewPage can
display any content, including text and other controls.
Appearance C1AppView is designed to make customization easy for you, so the possibilities are endless
when it comes to changing your C1AppView control. C1AppView uses jQuery Mobile Theme
swatches, or you can roll your own theme using jQuery Mobile Themeroller for further
customization.
See Also
Theme Swatches
Theme Swatches C1AppView uses the jQuery Mobile Theme Swatches as the default themes. There are five
swatches in the default theme, and they can be mixed and matched within the C1AppView
control for complete customization.
You can either apply one swatch to the entire C1AppView control using the ThemeSwatch
property, or you can apply a different swatch to each C1AppViewPage or C1AppViewItem in
your control. By default, this is how the C1AppView control appears:
AppView for ASP.NET Web Forms
27
See Also
Swatch a
Swatch b
Swatch c
Swatch d
Swatch e
AppView for ASP.NET Web Forms
28
Swatch a
Swatch b
AppView for ASP.NET Web Forms
29
Swatch c
Swatch d
AppView for ASP.NET Web Forms
30
Swatch e
Task Based Help The task-based help section assumes that you are familiar with programming in the Visual
Studio ASP.NET environment and have a general understanding of the AppView for ASP.NET
Web Forms control.
Each topic provides a solution for specific tasks using the C1AppView control. By following the
steps outlined in each topic, you will be able to create projects using a variety of C1AppView
features.
Each task-based help topic also assumes that you have created a new ASP.NET project.
See Also
Theming
Theming Theming a mobile application is simple when using jQuery Mobile Themes. You can mix and
match the default theme swatches to create unique combinations, or you can apply a custom
theme that you rolled using jQuery's new Mobile Themeroller.
See Also
Applying Default Swatches
Setting a Default Theme in Code
Using a Custom Theme
AppView for ASP.NET Web Forms
31
Applying Default Swatches You can mix and match the default theme swatches to create a unique application. Follow these
steps to apply the default swatches to your C1AppView application
1. The markup for your C1AppView control should resemble the following:
To write code in Source View
<cc1:C1AppView ID="C1AppView1" runat="server"
HeaderTitle="Wizard" Height="300px" >
<Items>
<cc1:C1AppViewItem Text="Wizard Page"
AppViewPageUrl="~/Wizard/Index.aspx"></cc1:C1AppViewItem>
</Items>
</cc1:C1AppView>
2. Open the C1AppView Designer Form by clicking the control's smart tag and selecting
Edit AppView Items from the C1AppView Tasks menu.
3. Select the C1AppView control and locate the Appearance properties in the Properties
pane.
4. Set the ThemeSwatch property to "e," and press OK. The opening <cc1:C1AppView>
tag for your application should now resemble the following sample:
To write code in Source View
<cc1:C1AppView ID="C1AppView1" runat="server"
HeaderTitle="Wizard" Height="300px" ThemeSwatch="e">
5. Press F5 or start debugging to run your application. It should resemble the following
image:
Setting a Default Theme in Code You can also set one of the default theme swatches through code.
AppView for ASP.NET Web Forms
32
1. Switch to Code View by right-clicking the page, either from the Design View or from the
Source View, and selecting View Code from the list.
2. Insert the following code into the PageLoad event: this.C1AppView1.ThemeSwatch="e";
Using a Custom Theme Using jQuery Mobile Themeroller to roll your own theme is both simple and intuitive. All you
have to do is drag colors from the color-picker to the desired section of the swatch. Once
you've downloaded and saved your new theme, follow these directions to apply it to your
application.
1. In the Solution Explorer, select Show All Files to display the hidden files in your
application.
2. Locate the Content folder and right-click to display the list. Select Include in Project.
3. Right-click the Content folder again and select Add | Existing Item from the list.
4. Browse to locate the file which contains your custom theme, and select the minified
theme file. Click Add to add the file to your application.
5. Add the following reference to the <head> </head> tags of your application. Make
certain that the theme name references the name you gave your theme:
To write code in Source View
<link rel="stylesheet" href="~/Content/mycustomtheme1.min.css"
type="text/css" />
6. Select the swatch you'd like to use in your application and set the ThemeSwatch
property. Your markup will resemble the following:
To write code in Source View
<cc1:C1AppView ID="C1AppView1" runat="server" ThemeSwatch="g">
7. Press F5 or start debugging to run your application. Note that your custom theme has
been applied to your application.
Tutorials The tutorial in this section provides step-by-step instructions; no prior knowledge of AppView
for ASP.NET Web Forms is needed. By following the steps outlined in this section, you will be
able to create a project demonstrating a variety of AppView for ASP.NET Web Forms features,
and get a good sense of what AppView for ASP.NET Web Forms can do and how to do it.
Creating an Event Planning Application You can easily create a complex event planning application using the C1AppView and
C1ListView controls.
AppView for ASP.NET Web Forms
33
See Also
Step 1 of 4: Setting Up the Application
Step 2 of 4: Creating the Application's Web Forms
Step 3 of 4: Creating the Models
Step 4 of 4: Running Your Application
Step 1 of 4: Setting Up the Application In this step, you'll set up your application. First, you'll create a new application, add references
to the appropriate assemblies, and create the folders and files you'll need for a complex event
planning application.
1. Create a new blank ASP.NET application:
a. Select New | Project from the Visual Studio File menu.
b. Use the drop-down arrow next to C# or Visual Basic to expand the Template
list, and select Web.
c. Choose ASP.NET Empty Web Application, enter a Name for the application,
and click OK.
2. Add references to the ASP.NET Web Forms assemblies by right-clicking the References
folder and selecting Add Reference from the list. Browse to find the following
reference assemblies:
o C1.Web.Wijmo.Controls.4.dll
o C1.Web.Wijmo.Controls.Design.4.dll
o NewtonsoftJson.dll
o EntityFramework.dll
And click OK.
3. Right-click your application name and select Add | Web Form from the list. Enter name
for your Web Form, in this case Main, and click OK.
4. In this step, you'll add four folders to your application:
. Right-click your application name and select Add | New Folder from the list.
Name the folder Calendar.
a. Right-click your application name and select Add | New Folder from the list.
Name the folder Event.
b. Right-click your application name and select Add | New Folder from the list.
Name the folder Home.
c. Right-click your application name and select Add | New Folder from the list.
Name the folder Models.
5. Right-click the Calendar folder and select Add | Web Form from the list. Name this
Web Form Index.
6. In this step, you'll add five Web Forms to the Event folder:
. Right-click your Event folder and select Add | Web Form from the list. Name
the Web Form Create
a. Right-click you Event folder and select Add | Web Form from the list. Name
the Web Form Delete.
b. Right-click your Event folder and select Add | Web Form from the list. Name
the Web Form Details.
AppView for ASP.NET Web Forms
34
c. Right-click your Event folder and select Add | Web Form from the list. Name
the Web Form Edit.
d. Right-click your Event folder and select Add | Web Form from the list. Name
the Web Form Index.
7. In this step, you'll add three Web Forms to the Home folder:
. Right-click your Home folder and select Add | Web Form from the list. Name
the Web Form About.
a. Right-click your Home folder and select Add | Web Form from the list. Name
the Web Form Contact.
b. Right-click your Home folder and select Add | Web Form from the list. Name
the Web Form Index.
8. In this step, you'll add three Code Files to your Models folder:
. Right-click your Models folder and select Add | Code File from the list. Name
the Code File Event.
a. Right-click the Models folder and select Add | Code File from the list. Name
the Code File EventAction.
b. Right-click the Models folder and select Add | Code File from the list. Name
the Code File EventPlannerEntities.
In this step, you created a new ASP.NET application, added the appropriate assembly
references, and set up the structure for your event calendar application. In Step 2, you'll add
markup and script to the Web Forms you just created.
Step 2 of 4: Creating the Application's Web
Forms In the following steps, you'll add markup and code to the Web Forms you created in the
previous step.
See Also
a. Adding Markup to the Main.aspx file
b. Creating the Calendar
c. Creating the Events
d. Creating the Home Folder Elements
a. Adding Markup to the Main.aspx file
1. Double-click your Main.aspx file to open it.
2. Directly below the Page call, add the following to register the
C1.Web.Wijmo.Controls.4 assembly:
To write code in Source View
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1AppView" TagPrefix="cc1" %>
AppView for ASP.NET Web Forms
35
3. Locate the <form> </form> tags on your page. Insert the following markup between
the tags:
To write code in Source View
<div data-role="page">
<cc1:C1AppView ID="C1AppView1" runat="server" >
<LoadSettings Type="Get" LoadMsgDelay="100" />
<DefaultContent>
<p>
This application was built
with Wijmo, jQuery Mobile. Learn more about Wijmo at <a
href="http://wijmo.com">http://wijmo.com</a>.
</p>
</DefaultContent>
<Items>
<cc1:C1AppViewItem Text="Events List"
AppViewPageUrl="/Event/Index.aspx"></cc1:C1AppViewItem>
<cc1:C1AppViewItem Text="Calendar
view" AppViewPageUrl="/Calendar/Index.aspx"></cc1:C1AppViewItem>
<cc1:C1AppViewItem Text="About"
AppViewPageUrl="/Home/About.aspx"></cc1:C1AppViewItem>
<cc1:C1AppViewItem Text="Contact"
AppViewPageUrl="/Home/Contact.aspx"></cc1:C1AppViewItem>
</Items>
</cc1:C1AppView>
</div>
b. Creating the Calendar
1. From your Calendar folder, open the Index.aspx file by double-clicking on it.
2. Add the following assembly registries:
To write code in Source View
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1EventsCalendar"
TagPrefix="cc1" %>
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1AppView" TagPrefix="cc1" %>
3. Locate the <form> </form> tags on your page and insert the following markup
between them:
To write code in Source View
<asp:EntityDataSource ID="EventPlannerEntityDataSource"
runat="server"
OnContextCreating="EventPlannerEntityDataSource_Co
ntextCreating"
EntitySetName="Events">
AppView for ASP.NET Web Forms
36
</asp:EntityDataSource>
<cc1:C1AppViewPage ID="C1AppViewPage1" runat="server"
HeaderTitle="Event Calendar">
<Header ID="Header1" runat="server">
<Template>
<a href="../Main.aspx" data-
icon="back">Back</a>
<h2>Event Calendar</h2>
</Template>
</Header>
<Content ID="Content1" runat="server">
<Template>
<cc1:C1EventsCalendar
ID="C1EventsCalendar1" runat="server">
<DataStorage>
<EventStorage
DataSourceID="EventPlannerEntityDataSource">
<Mappings>
<IdMappin
g MappingName="Id" />
<SubjectM
apping MappingName="Subject" />
<StartMap
ping MappingName="Start" />
<EndMappi
ng MappingName="End" />
<Location
Mapping MappingName="Location" />
<Descript
ionMapping MappingName="Description" />
</Mappings>
</EventStorage>
</DataStorage>
</cc1:C1EventsCalendar>
</Template>
</Content>
</cc1:C1AppViewPage>
4. Right-click the page and select View Code from the list. Check the namespaces you
reference in the code. They should resemble the following. Note that the reference to
the Models needs to resemble the last reference in the list, using your application's
name:
To write code in C#
C# Copy Code
using System; using System.Collections.Generic; using System.Data.Entity.Infrastructure; using System.Diagnostics; using System.Linq;
AppView for ASP.NET Web Forms
37
using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using YourApplicationName.Models;
5. Add the following below the Page_Load event:
To write code in C#
C# Copy Code
protected void EventPlannerEntityDataSource_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e) { var db = EventAction.GetEventDb(); e.Context = (db as IObjectContextAdapter).ObjectContext; } } }
c. Creating the Events In this step, you'll add the markup and code used to create the application's Events.
1. From the Event folder, open the Create.aspx file by double-clicking it.
a. Register the following assemblies by adding the following:
To write code in Source View
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1ListView"
TagPrefix="cc1" %>
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1AppView"
TagPrefix="cc1" %>
b. Locate the <body> </body> tags on your page and insert the following
markup between them:
To write code in Source View
<cc1:C1AppViewPage ID="C1AppViewPage1" runat="server"
HeaderTitle="Create">
<Header ID="Header1" runat="server">
<Template>
<h2>Create</h2>
<input type="button" value="Save"
class="ui-btn-right" data-theme="b"
onclick="$('#createForm').trigger('submit')" />
</Template>
</Header>
AppView for ASP.NET Web Forms
38
<Content ID="Content1" runat="server">
<Template>
<form id="createForm" runat="server">
<cc1:C1ListView ID="C1ListView1"
runat="server" Inset="true">
<Items>
<cc1:C1ListViewInput
Item ID="SubjectInput" LabelText="Subject"
Type="text"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="LocationInput" LabelText="Location"
Type="text"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="StartInput" LabelText="Start"
Type="text"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="EndInput" LabelText="End"
Type="text"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="DescriptionInput" LabelText="Description"
Type="text"></cc1:C1ListViewInputItem>
<cc1:C1ListViewFlipSwitchItem
ID="AllDayInput" LabelText="AllDay" ONMessage="Yes"
ONValue="true" OFFMessage="No"
OFFValue="false"></cc1:C1ListViewFlipSwitchItem>
</Items>
</cc1:C1ListView>
</form>
</Template>
</Content>
</cc1:C1AppViewPage>
c. Right-click the page and select View Code from the list. Check your references
and make sure they resemble the following:
To write code in C#
C# Copy Code
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YourApplicationName.Models;
AppView for ASP.NET Web Forms
39
d. Add the following code to the Page_PreRenderComplete Event:
To write code in C#
C# Copy Code
protected void Page_PreRenderComplete(object sender, EventArgs e)
{
if (!IsPostBack)
{
EventObj newEvent = EventAction.Create();
SubjectInput.Text = newEvent.Subject;
LocationInput.Text = newEvent.Location;
StartInput.Text = newEvent.Start.ToString("G");
EndInput.Text = newEvent.End.ToString("G");
DescriptionInput.Text = newEvent.Description;
AllDayInput.SelectedON = newEvent.AllDay;
createForm.Action = "/Event/Create.aspx";
}
else
{
EventObj newEvent = EventAction.Create();
newEvent.Subject = SubjectInput.Text;
newEvent.Location = LocationInput.Text;
newEvent.Start = DateTime.Parse(StartInput.Text);
newEvent.End = DateTime.Parse(EndInput.Text);
newEvent.Description = DescriptionInput.Text;
newEvent.AllDay = AllDayInput.SelectedON;
EventAction.Add(newEvent);
Response.Redirect("../Main.aspx#appviewpage=Event/Index.aspx");
}
}
}
2. From the Event folder, double-click the Delete.aspx file to open it.
AppView for ASP.NET Web Forms
40
a. Register the following assemblies by adding the following:
To write code in Source View
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1ListView"
TagPrefix="cc1" %>
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1AppView"
TagPrefix="cc1" %>
b. Locate the <body> </body> tags on the page, and insert the following markup
between them:
To write code in Source View
<cc1:C1AppViewPage ID="C1AppViewPage1" runat="server"
HeaderTitle="Delete">
<Header ID="Header1" runat="server">
<Template>
<h2>Delete</h2>
</Template>
</Header>
<Content ID="Content1" runat="server">
<Template>
<form id="deleteForm" runat="server">
<cc1:C1ListView ID="C1ListView1"
runat="server" Inset="true">
<Items>
<cc1:C1ListViewInputItem
ID="SubjectInput" LabelText="Subject"
Type="label"></cc1:C1ListViewInputItem>
</Items>
</cc1:C1ListView>
<input type="button"
value="Delete" data-theme="e"
onclick="$('#deleteForm').trigger('submit')" />
<a href="Index.aspx" data-
theme="c" data-role="button">Cancel</a>
</form>
</Template>
</Content>
</cc1:C1AppViewPage>
c. Right-click the page and select View Code from the list. Check your references
and make sure they resemble the following:
To write code in C#
C# Copy Code
AppView for ASP.NET Web Forms
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YourApplicationName.Models;
d. Edit the existing code so that it resembles the following:
To write code in C#
C# Copy Code
public partial class Delete : System.Web.UI.Page
{
protected int id;
protected void Page_PreRenderComplete(object sender, EventArgs e)
{
if (!IsPostBack)
{
id = int.Parse(Request["id"]);
EventObj detail = EventAction.GetEventDetail(id);
SubjectInput.Text = detail.Subject;
deleteForm.Action = "/Event/Delete.aspx?id=" + id.ToString();
}
else
{
id = int.Parse(Request["id"]);
EventAction.Delete(id);
Response.Redirect("../Main.aspx#appviewpage=Event/Index.aspx");
}
}
}
AppView for ASP.NET Web Forms
42
}
3. From the Event folder, double click the Details file to open it. The Details.aspx file
should open.
a. At the top of the page, register your assemblies with the following block:
To write code in Source View
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1ListView"
TagPrefix="cc1" %>
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1AppView"
TagPrefix="cc1" %>
b. Locate the <body> </body> tags on your page. Insert the following markup
between them:
To write code in Source View
<form id="detailForm" runat="server">
<cc1:C1AppViewPage ID="C1AppViewPage1" runat="server"
HeaderTitle="Details">
<Header ID="Header1" runat="server">
<Template>
<a href="Index.aspx" data-
icon="back">Back</a>
<h2>Details</h2>
<a href="Edit.aspx?id=<%=id %>"
data-icon="gear">Edit</a>
</Template>
</Header>
<Content ID="Content1" runat="server">
<Template>
<cc1:C1ListView ID="C1ListView1"
runat="server" Inset="true">
<Items>
<cc1:C1ListViewInputItem
ID="SubjectInput" LabelText="Subject"
Type="label"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="LocationInput" LabelText="Location"
Type="label"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="StartInput" LabelText="Start"
Type="label"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="EndInput" LabelText="End"
Type="label"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="DescriptionInput" LabelText="Description"
AppView for ASP.NET Web Forms
43
Type="label"></cc1:C1ListViewInputItem>
<cc1:C1ListViewFlipSwitchItem
ID="AllDayInput" LabelText="AllDay" Disable="true"
ONMessage="Yes" ONValue="true" OFFMessage="No"
OFFValue="false"></cc1:C1ListViewFlipSwitchItem>
</Items>
</cc1:C1ListView>
<a href="Delete.aspx?id=<%=id %>"
data-role="button" data-theme="e">Delete</a>
</Template>
</Content>
</cc1:C1AppViewPage>
</form>
c. Right-click the page and select View Code from the list. Check your references
and make sure they resemble the following:
To write code in C#
C# Copy Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YourApplicationName.Models;
d. Edit the existing code to resemble the following:
To write code in C#
C# Copy Code
public partial class Details : System.Web.UI.Page
{
protected int id;
protected void Page_PreRenderComplete(object sender, EventArgs e)
{
if (!IsPostBack)
{
id = int.Parse(Request["id"]);
AppView for ASP.NET Web Forms
44
EventObj eventDetail = EventAction.GetEventDetail(id);
SubjectInput.Text = eventDetail.Subject;
LocationInput.Text = eventDetail.Location;
StartInput.Text = eventDetail.Start.ToString("G");
EndInput.Text = eventDetail.End.ToString("G");
DescriptionInput.Text = eventDetail.Description;
AllDayInput.SelectedON = eventDetail.AllDay;
}
}
}
}
4. From the Event folder, open the Edit file by double-clicking the Edit.aspx file.
a. Register the C1ListView and C1AppView assemblies by adding this block
below the page declaration:
To write code in Source View
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1ListView"
TagPrefix="cc1" %>
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1AppView"
TagPrefix="cc1" %>
b. Locate the <body> </body> tags on your page. Insert the following markup
between them:
To write code in Source View
<cc1:C1AppViewPage ID="C1AppViewPage1" runat="server"
HeaderTitle="Edit">
<Header ID="Header1" runat="server">
<Template>
<a href="Index.aspx">Cancel</a>
<h2>Create</h2>
<input type="button" value="Save"
class="ui-btn-right" data-theme="b"
onclick="$('#editForm').trigger('submit')" />
</Template>
</Header>
<Content ID="Content1" runat="server">
<Template>
<form id="editForm" runat="server">
<cc1:C1ListView ID="C1ListView1"
runat="server" Inset="true">
<Items>
AppView for ASP.NET Web Forms
45
<cc1:C1ListViewInputItem
ID="SubjectInput" LabelText="Subject"
Type="text"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="LocationInput" LabelText="Location"
Type="text"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="StartInput" LabelText="Start"
Type="text"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="EndInput" LabelText="End"
Type="text"></cc1:C1ListViewInputItem>
<cc1:C1ListViewInputItem
ID="DescriptionInput" LabelText="Description"
Type="text"></cc1:C1ListViewInputItem>
<cc1:C1ListViewFlipSwitchItem
ID="AllDayInput" LabelText="AllDay" ONMessage="Yes"
ONValue="true" OFFMessage="No"
OFFValue="false"></cc1:C1ListViewFlipSwitchItem>
</Items>
</cc1:C1ListView>
</form>
</Template>
</Content>
</cc1:C1AppViewPage>
c. Right-click the page and select View Code from the list. Check your references
and make sure that they resemble the following:
To write code in C#
C# Copy Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YourApplicationName.Models;
d. Edit the existing code so that it resembles the following:
To write code in C#
C# Copy Code
AppView for ASP.NET Web Forms
46
public partial class Edit : System.Web.UI.Page
{
private EventObj detail;
protected int id;
protected void Page_PreRenderComplete(object sender, EventArgs e)
{
if (!IsPostBack)
{
id = int.Parse(Request["id"]);
detail = EventAction.GetEventDetail(id);
SubjectInput.Text = detail.Subject;
LocationInput.Text = detail.Location;
StartInput.Text = detail.Start.ToString("G");
EndInput.Text = detail.End.ToString("G");
DescriptionInput.Text = detail.Description;
AllDayInput.SelectedON = detail.AllDay;
editForm.Action = "/Event/Edit.aspx?id=" + id.ToString();
}
else
{
id = int.Parse(Request["id"]);
detail = EventAction.GetEventDetail(id);
detail.Subject = SubjectInput.Text;
detail.Location = LocationInput.Text;
detail.Start = DateTime.Parse(StartInput.Text);
detail.End = DateTime.Parse(EndInput.Text);
detail.Description = DescriptionInput.Text;
detail.AllDay = AllDayInput.SelectedON;
EventAction.Edit(detail);
Response.Redirect("../Main.aspx#appviewpage=Event/Index.aspx");
}
}
}
AppView for ASP.NET Web Forms
47
}
5. From the Event folder, double-click the Index file to open it. The Index.aspx file should
open.
a. Register the C1ListView and C1AppView assemblies by adding this block
below the page declaration:
To write code in Source View
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1ListView"
TagPrefix="cc1" %>
<%@ Register Assembly="C1.Web.Wijmo.Controls.4"
Namespace="C1.Web.Wijmo.Controls.C1AppView"
TagPrefix="cc1" %>
b. Locate the <body> </body> tags on your page. Insert the following markup
between them:
To write code in Source View
<form id="form1" runat="server">
<cc1:C1AppViewPage ID="C1AppViewPage1"
runat="server" HeaderTitle="List View">
<Header ID="Header1" runat="server">
<Template>
<a href="../Main.aspx" data-
icon="back">Back</a>
<h2>List View</h2>
<a href="Create.aspx" data-icon="plus"
data-iconpos="notext">Add</a>
</Template>
</Header>
<Content ID="Content1" runat="server">
<Template>
<cc1:C1ListView ID="C1ListView1"
runat="server" Inset="true">
</cc1:C1ListView>
</Template>
</Content>
</cc1:C1AppViewPage>
</form>
c. Right-click the page and select View Code from the list. Check your references
and make sure that they resemble the following:
To write code in C#
C# Copy Code
AppView for ASP.NET Web Forms
48
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using C1.Web.Wijmo.Controls.C1ListView;
using C1.Web.Wijmo.Controls.C1ListView;
using YourApplicationName.Models;
d. Edit the existing code to reflect the following sample:
To write code in C#
C# Copy Code
public partial class Index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
foreach (EventObj item in EventAction.GetEvents())
{
C1ListViewLinkItem listItem = new C1ListViewLinkItem();
listItem.Text = item.Subject;
listItem.NavigateUrl = "/Event/Details.aspx?id=" + item.Id;
C1ListView1.Items.Add(listItem);
}
}
}
}
}
AppView for ASP.NET Web Forms
49
d. Creating the Home Folder Elements In this step, you'll create the application elements found in the Home folder.
1. From the Home folder, double-click the About file to open it. Replace the existing
markup with the following:
To write code in Source View
<div data-role="appviewpage" data-title="About">
<div data-role="header"><h2>About</h2></div>
<div data-role="content">
<article>
<p>
Use this area to provide additional
information.
</p>
</article>
<aside>
<h3>Aside Title</h3>
<p>
Use this area to provide additional
information.
</p>
<ul>
<li><a
href="Index.aspx">Home</a></li>
<li><a
href="About.aspx">About</a></li>
<li><a
href="Contact.aspx">Contact</a></li>
</ul>
</aside>
</div>
</div>
2. From the Home folder, double-click the Contact file to open it. Replace the existing
markup with the following:
To write code in Source View
<div data-role="appviewpage" data-title="Contact">
<div data-role="header"><h2>Contact</h2></div>
<div data-role="content">
<h3>Phone</h3>
<span>425.555.0100</span>
<h3>Email</h3>
<span><a
href="mailto:[email protected]">[email protected]</a></span>
</div>
</div>
AppView for ASP.NET Web Forms
50
3. From the Home folder, double-click the Index file to open it. Replace the existing
markup with the following:
To write code in Source View
<div data-role="appviewpage" data-title="Index">
<div data-role="header"><h2>Home Page</h2></div>
<div data-role="content">
<p>
This application was built with Wijmo,
jQuery Mobile. Learn more about Wijmo at <a
href="http://wijmo.com">http://wijmo.com</a>.
</p>
</div>
</div>
Step 3 of 4: Creating the Models
1. From the Models folder, double-click the Event.cs file to open it.
a. Check your references and make sure that they resemble the following:
To write code in C#
C# Copy Code
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
b. Add the following code below the namespace declaration:
To write code in C#
C# Copy Code
public class EventObj
{
[Key]
public int Id { get; set; }
public string Subject { get; set; }
public string Location { get; set; }
public DateTime Start { get; set; }
public DateTime End { get; set; }
public string Description { get; set; }
AppView for ASP.NET Web Forms
51
public bool AllDay { get; set; }
}
2. From the Models folder again, double-click the EventAction.cs file to open it.
a. Check your references and make sure that they resemble the following:
To write code in C#
C# Copy Code
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
b. Add the following code below the namespace declaration:
To write code in C#
C# Copy Code
public static class EventAction
{
private static EventPlannerEntities _eventDb = new EventPlannerEntities();
internal static EventPlannerEntities GetEventDb()
{
return new EventPlannerEntities();
}
public static IList<EventObj> GetEvents()
{
return _eventDb.Events.ToList();
}
public static EventObj GetEventDetail(int id)
{
return _eventDb.Events.Find(id);
}
public static EventObj Create()
{
return new EventObj
{
AppView for ASP.NET Web Forms
52
Subject = "New event",
Start = DateTime.Today,
End = DateTime.Today.AddDays(1).AddSeconds(-1),
AllDay = false
};
}
public static void Add(EventObj eventObj)
{
_eventDb.Events.Add(eventObj);
_eventDb.SaveChanges();
}
public static void Edit(EventObj eventObj)
{
_eventDb.Entry(eventObj).State = EntityState.Modified;
_eventDb.SaveChanges();
}
public static void Delete(int id)
{
EventObj eventObj = _eventDb.Events.Find(id);
_eventDb.Events.Remove(eventObj);
_eventDb.SaveChanges();
}
}
}
3. Double-click the last code file in the Models folder to open the
EventPlannerEntities.cs file.
a. Check the references and make sure that they resemble the following:
To write code in C#
C# Copy Code
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
b. Add the following code below the namespace declaration:
To write code in C#
AppView for ASP.NET Web Forms
53
C# Copy Code
public class EventPlannerEntities : DbContext
{
public DbSet<EventObj> Events { get; set; }
public EventPlannerEntities()
{
Database.CreateIfNotExists();
}
}
}
Step 4 of 4: Running Your Application In this step, you'll run your application.
1. Press F5 or start debugging to run your application. Initially, your application should
resemble the following image:
2. When you click or tap the Events List C1AppViewItem for the first time, there will be no
events listed. To create an event, click or tap the Add button in the top right of the
AppView for ASP.NET Web Forms
54
application. The Add button is circled in the following image:
3. When you've clicked or tapped the Add button, your application will load the Create
form:
4. Once you've entered information into the event form and clicked or tapped Save, the
event will be saved to both the list that you see when you select Events List, and the
AppView for ASP.NET Web Forms
55
Calendar that you see when you select Calendar View:
Congratulations! You have completed the Creating an Event Planning Application Tutorial.
In this tutorial, you built an application using the C1AppView, C1ListView, and C1Calendar
controls that allows you to create, save, and display events. Using this application, you can
either display the events in a list, or you can display the events in the C1Calendar control.
Displaying events in a calendar, while it makes the application more complex, also makes it
easier to see where and when your events occur, giving both you and users a way to make sure
there's no conflict.
Working with the Client-Side The AppView for ASP.NET Web Forms control has a very rich client-side object model since
most of its members are identical to the members in the server-side control.
When an AppView control is rendered, an instance of the client-side control will be created
automatically. This means that you can enjoy the convenience of accessing the properties and
methods of the C1AppView controls without having to postback to the server.
Using client-side code, you can implement many features in your Web page without the need
to send information to the Web server, which takes time. Using the client-side object model
increases the efficiency of your Web site.
See Also
AppView for ASP.NET Web Forms
56
Client-Side Events
Client-Side Events AppView for ASP.NET Web Forms includes several client-side events that allow you to
manipulate the C1AppView controls when an action such as resizing the dialog window occurs.
You can use the server-side properties, listed in the Client Side Event table, to specify the name
of the JavaScript function that will respond to a particular client-side event. For example, to
assign a JavaScript function called "pagechange" to respond when the C1AppViewPage is
changed, you would set the OnClientPageChange property to "pagechange".
The following table lists the events that you can use in your client scripts. These properties are
defined on the server side, but the actual events of the name you declare for each JavaScript
function are defined on the client side.
Event Server-Side
Property Name Event Name Description
OnClientPageBeforeChanged pagebeforechanged Occurs before the page is changed.
OnClientPageBeforeLoad pagebeforeload Occurs before the page loads.
OnClientPageChange pagechange Occurs when the page changes.
OnClientPageChangeFailed pagechangefailed Occurs when the page change fails.
OnClientPageLoad pageload Occurs when the page loads.
OnClientPageLoadFailed pageloadfailed Occurs when the page load fails.
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.
AppView for ASP.NET Web Forms
57
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 AppView for
ASP.NET Web Forms, click one of the external links to view our Wijmo wiki documentation.
Note that the Overview topic for each of the widgets applies mainly to the widget, not to the
server-side ASP.NET Web Forms control.
See Also
Using the Wijmo CDN
Using the Wijmo CDN You can easily load the client-side Wijmo widgets into your web page using a Content Delivery
Network (CDN). CDN makes it quick and easy to use external libraries, and deploy them to your
users. A CDN is a network of computers around the world that host content. Ideally, if you're in
the United States and you access a webpage using a CDN, you'll get your content from a server
based in the US. If you're in India or China, and you access the SAME webpage, the content will
come from a server a little closer to your location.
When web browsers load content, they commonly will check to see if they already have a copy
of the file cached. By using a CDN, you can benefit from this. If a user had previously visited a
site using the same CDN, they will already have a cached version of the files on their machine.
Your page will load quicker since it doesn't need to re-download your support content.
Wijmo has had CDN support from the very beginning. You can find the CDN page at
http://wijmo.com/downloads/cdn/. The markup required for loading Wijmo into your page
looks similar to this:
To write code in Source View
<!--jQuery References-->
<script src="http://code.jquery.com/jquery-1.9.1.min.js"
type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.10.1/jquery-ui.min.js"
type="text/javascript"></script>
<!--Theme-->
<link href="http://cdn.wijmo.com/themes/aristo/jquery-wijmo.css"
rel="stylesheet" type="text/css" />
<!--Wijmo Widgets CSS-->
<link href="http://cdn.wijmo.com/jquery.wijmo-
pro.all.3.20132.8.min.css" rel="stylesheet" type="text/css" />
<!--Wijmo Widgets JavaScript-->
<script src="http://cdn.wijmo.com/jquery.wijmo-
open.all.3.20132.8.min.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/jquery.wijmo-
pro.all.3.20132.8.min.js" type="text/javascript"></script>
AppView for ASP.NET Web Forms
58
In this markup, you'll notice that some of the .js files are labeled as *.min.js. These files have
been minified - in other words, all unnecessary characters have been removed - to make the
pages load faster. You will also notice that there are no references to individual .js files. The
JavaScript for all widgets, CSS, and jQuery references have been combined into one file,
respectively, such as wijmo-pro.all.3.20132.8.min.js.
With the ASP.NET Web Forms Edition controls, you can click the Use CDN checkbox in the
control's Tasks menu and specify the CDN path if you want to access the client-side widgets.
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>
WijChartNavigator
See Also
Reference
AppView for ASP.NET Web Forms
59
C1.Web.Wijmo.Controls.4 Assembly
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)
AppView for ASP.NET Web Forms
60
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
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#
AppView for ASP.NET Web Forms
61
[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
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
AppView for ASP.NET Web Forms
62
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
AppView for ASP.NET Web Forms
63
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)
AppView for ASP.NET Web Forms
64
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)
AppView for ASP.NET Web Forms
65
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.
AppView for ASP.NET Web Forms
66
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)
AppView for ASP.NET Web Forms
67
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.
AppView for ASP.NET Web Forms
68
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 _
AppView for ASP.NET Web Forms
69
) 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.
AppView for ASP.NET Web Forms
70
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( _
AppView for ASP.NET Web Forms
71
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
AppView for ASP.NET Web Forms
72
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)
AppView for ASP.NET Web Forms
73
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)
AppView for ASP.NET Web Forms
74
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)
AppView for ASP.NET Web Forms
75
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)
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<C1DescriptionAttribute(Key="C1Base.CDNDependencyPaths", Description="A
string array value specifies all css/js references that wijmo control depends
on.")>
<System.ComponentModel.DefaultValueAttribute()>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
AppView for ASP.NET Web Forms
76
lizationVisibility.Hidden)>
Public Overridable Property CDNDependencyPaths As System.String()
C#
[C1Category("Behavior")]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[C1Description(Key="C1Base.CDNDependencyPaths", Description="A string
array value specifies all css/js references that wijmo control depends
on.")]
[System.ComponentModel.DefaultValue()]
[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)
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<C1DescriptionAttribute(Key="C1Base.CDNPath", Description="Content Delivery
Network path.")>
<System.ComponentModel.DefaultValueAttribute()>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
AppView for ASP.NET Web Forms
77
Public Overridable Property CDNPath As System.String
C#
[C1Category("Behavior")]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[C1Description(Key="C1Base.CDNPath", Description="Content Delivery
Network path.")]
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
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()>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1Controls.DisplayVisible", Description="Gets or
sets a value that indicates whether a server control is rendered as UI on the
page.")>
<C1CategoryAttribute("Behavior")>
<LayoutAttribute(LayoutType.Behavior)>
Public Property DisplayVisible As System.Boolean
C#
[System.ComponentModel.DefaultValue()]
[WidgetOption()]
[C1Description(Key="C1Controls.DisplayVisible", Description="Gets or sets a
value that indicates whether a server control is rendered as UI on the
page.")]
[C1Category("Behavior")]
[Layout(LayoutType.Behavior)]
AppView for ASP.NET Web Forms
78
public System.bool DisplayVisible {get; set;}
Remarks
Note that a server control is created and invisible if DisplayVisible is set to false.
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)
<C1DescriptionAttribute(Key="C1Base.EnableCombinedJavaScripts",
Description="Enable JavaScripts files combined into one file.")>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
Public Overridable Property EnableCombinedJavaScripts As System.Boolean
C#
[C1Description(Key="C1Base.EnableCombinedJavaScripts",
Description="Enable JavaScripts files combined into one file.")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
public virtual System.bool EnableCombinedJavaScripts {get; set;}
See Also
Reference
C1TargetControlBase Class
C1TargetControlBase Members
AppView for ASP.NET Web Forms
79
Enabled Property Gets or sets a value indicating whether the Web server control is enabled.
Syntax
Visual Basic (Declaration)
<WidgetOptionAttribute()>
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1Base.Enabled", Description="Indicates whether
control is enabled.")>
<C1CategoryAttribute("Behavior")>
Public Overrides Property Enabled As System.Boolean
C#
[WidgetOption()]
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1Base.Enabled", Description="Indicates whether control
is enabled.")]
[C1Category("Behavior")]
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)
<TypeConverterAttribute("C1.Web.Wijmo.Controls.WijmoThemeNameConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20151.207, Culture=neutral,
AppView for ASP.NET Web Forms
80
PublicKeyToken=9b75583953471eea")>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
<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.")>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
Public Overridable Property Theme As System.String
C#
[TypeConverter("C1.Web.Wijmo.Controls.WijmoThemeNameConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
[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.")]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
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)
AppView for ASP.NET Web Forms
81
<C1CategoryAttribute("Appearance")>
<WidgetOptionAttribute()>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1Base.ThemeSwatch", Description="A value that
indicates the theme swatch of the control, this property only works when
WijmoControlMode property is Mobile.")>
<TypeConverterAttribute("C1.Web.Wijmo.Controls.WijmoThemeSwatchConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
Public Overridable Property ThemeSwatch As System.String
C#
[C1Category("Appearance")]
[WidgetOption()]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1Base.ThemeSwatch", Description="A value that
indicates the theme swatch of the control, this property only works when
WijmoControlMode property is Mobile.")]
[TypeConverter("C1.Web.Wijmo.Controls.WijmoThemeSwatchConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")]
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)
<C1DescriptionAttribute(Key="C1Base.UseCDN", Description="Determines whether
AppView for ASP.NET Web Forms
82
this extender loads client script references from CDN.")>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DefaultValueAttribute()>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
Public Overridable Property UseCDN As System.Boolean
C#
[C1Description(Key="C1Base.UseCDN", Description="Determines whether this
extender loads client script references from CDN.")]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[C1Category("Behavior")]
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
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)
<C1CategoryAttribute("Behavior")>
<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.DefaultValueAttribute()>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
Public Overridable Property WijmoControlMode As WijmoControlMode
AppView for ASP.NET Web Forms
83
C#
[C1Category("Behavior")]
[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.DefaultValue()]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
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.RefreshPropertiesAttribute(RefreshProperties.All)>
<C1CategoryAttribute("Behavior")>
<C1DescriptionAttribute(Key="C1Base.WijmoCssAdapter", Description="Indicates
the control applies the theme of JQuery UI or Bootstrap.")>
<System.ComponentModel.DefaultValueAttribute()>
<TypeConverterAttribute("C1.Web.Wijmo.Controls.WijmoCssAdapterConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
Public Overridable Property WijmoCssAdapter As System.String
C#
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[C1Category("Behavior")]
[C1Description(Key="C1Base.WijmoCssAdapter", Description="Indicates the
control applies the theme of JQuery UI or Bootstrap.")]
AppView for ASP.NET Web Forms
84
[System.ComponentModel.DefaultValue()]
[TypeConverter("C1.Web.Wijmo.Controls.WijmoCssAdapterConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
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
AppView for ASP.NET Web Forms
85
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
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
AppView for ASP.NET Web Forms
86
Reference
C1TargetControlHelper Class
C1.Web.Wijmo.Controls Namespace
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
AppView for ASP.NET Web Forms
87
Visual Basic (Declaration)
Public Shared Function ResolveEmbeddedResourceUrl( _
ByVal resourceName As System.String, _
ByVal page As System.Web.UI.Page, _
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#
AppView for ASP.NET Web Forms
88
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
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
AppView for ASP.NET Web Forms
89
System.Object
C1.Web.Wijmo.Controls.C1TargetControlHelper
C1.Web.Wijmo.Controls.C1TargetControlHelper<T>
See Also
Reference
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
AppView for ASP.NET Web Forms
90
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
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 _
)
AppView for ASP.NET Web Forms
91
C#
public C1TargetControlHelper<T>(
T control
)
Parameters
control
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
AppView for ASP.NET Web Forms
92
RegisterScriptDescriptorsWithoutScriptManager
RegisterScriptDescriptorsWithScriptManager
RenderJsonDataField
ShowAbout Show about message box.
Top
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
AppView for ASP.NET Web Forms
93
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
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)
AppView for ASP.NET Web Forms
94
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
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
)
AppView for ASP.NET Web Forms
95
Parameters
writer
cssResourceName
CSS resource name.
Remarks
The cssResourceName is the link to an resource element.
See Also
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
AppView for ASP.NET Web Forms
96
Visual Basic (Declaration)
Public Sub RegisterIncludes()
C#
public void RegisterIncludes()
See Also
Reference
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)
AppView for ASP.NET Web Forms
97
Public Sub RegisterRunTimeStylesheets()
C#
public void RegisterRunTimeStylesheets()
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
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
AppView for ASP.NET Web Forms
98
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
RegisterScriptDescriptorsWithScriptManager Method
Syntax
Visual Basic (Declaration)
Public Sub RegisterScriptDescriptorsWithScriptManager()
C#
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
AppView for ASP.NET Web Forms
99
ShowAbout Method Show about message box.
Syntax
Visual Basic (Declaration)
Public Sub ShowAbout()
C#
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
AppView for ASP.NET Web Forms
100
Control Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Control As T
C#
public T Control {get;}
See Also
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#
AppView for ASP.NET Web Forms
101
public System.Web.UI.Page Page {get;}
See Also
Reference
C1TargetControlHelper<T> Class
C1TargetControlHelper<T> Members
ScriptManager Property
Syntax
Visual Basic (Declaration)
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
WijChartNavigator
Object Model
Syntax
Visual Basic (Declaration)
<WidgetDependenciesAttribute(System.Object[])>
Friend Class WijChartNavigator
Inherits WijChartCore
C#
[WidgetDependencies(System.Object[])]
internal class WijChartNavigator : WijChartCore
AppView for ASP.NET Web Forms
102
Inheritance Hierarchy
System.Object
C1.Web.Wijmo.Controls.WijChartNavigator
See Also
Reference
WijChartNavigator Members
C1.Web.Wijmo.Controls Namespace
Overview
Object Model
Syntax
Visual Basic (Declaration)
<WidgetDependenciesAttribute(System.Object[])>
Friend Class WijChartNavigator
Inherits WijChartCore
C#
[WidgetDependencies(System.Object[])]
internal class WijChartNavigator : WijChartCore
Inheritance Hierarchy
System.Object
C1.Web.Wijmo.Controls.WijChartNavigator
See Also
Reference
WijChartNavigator Members
C1.Web.Wijmo.Controls Namespace
Members The following tables list the members exposed by WijChartNavigator.
AppView for ASP.NET Web Forms
103
Public Constructors
Name Description
WijChartNavigator Constructor
Top
See Also
Reference
WijChartNavigator Class
C1.Web.Wijmo.Controls Namespace
WijChartNavigator Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public WijChartNavigator()
See Also
Reference
WijChartNavigator Class
WijChartNavigator Members
C1.Web.Wijmo.Controls.C1AppView
Namespace
Overview Inheritance Hierarchy
Classes
Class Description
AppView for ASP.NET Web Forms
104
C1AppView Represents a Appview control in an ASP.NET Web page.
C1AppViewItem Represents a single tab page in a C1Tabs.
C1AppViewItemCollection Represents a collection of Appview item.
C1AppViewPage Represents a Appview page in an ASP.NET Web page.
C1AppViewSerializer
C1AppViewTemplateContent
See Also
Reference
C1.Web.Wijmo.Controls.4 Assembly
Classes
C1AppView Represents a Appview control in an ASP.NET Web page.
Object Model
Syntax
Visual Basic (Declaration)
<System.Drawing.ToolboxBitmapAttribute()>
<System.ComponentModel.LicenseProviderAttribute()>
<WidgetDependenciesAttribute(System.Object[])>
<System.ComponentModel.DesignerAttribute(DesignerBaseTypeName="System.Compone
ntModel.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1AppView.C1AppViewDesigner,
C1.Web.Wijmo.Controls.Design.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
<System.Web.UI.ToolboxDataAttribute("<{0}:C1AppView
runat=server></{0}:C1AppView>")>
AppView for ASP.NET Web Forms
105
Public Class C1AppView
Inherits C1.Web.Wijmo.Controls.Base.C1TargetDataBoundControlBase
C#
[System.Drawing.ToolboxBitmap()]
[System.ComponentModel.LicenseProvider()]
[WidgetDependencies(System.Object[])]
[System.ComponentModel.Designer(DesignerBaseTypeName="System.ComponentMod
el.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1AppView.C1AppViewDesigne
r, C1.Web.Wijmo.Controls.Design.4, Version=4.0.20151.207,
Culture=neutral, PublicKeyToken=9b75583953471eea")]
[System.Web.UI.ToolboxData("<{0}:C1AppView
runat=server></{0}:C1AppView>")]
public class C1AppView :
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.C1AppView.C1AppView
See Also
Reference
C1AppView Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Overview Represents a Appview control in an ASP.NET Web page.
Object Model
Syntax
Visual Basic (Declaration)
AppView for ASP.NET Web Forms
106
<System.Drawing.ToolboxBitmapAttribute()>
<System.ComponentModel.LicenseProviderAttribute()>
<WidgetDependenciesAttribute(System.Object[])>
<System.ComponentModel.DesignerAttribute(DesignerBaseTypeName="System.Compone
ntModel.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1AppView.C1AppViewDesigner,
C1.Web.Wijmo.Controls.Design.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
<System.Web.UI.ToolboxDataAttribute("<{0}:C1AppView
runat=server></{0}:C1AppView>")>
Public Class C1AppView
Inherits C1.Web.Wijmo.Controls.Base.C1TargetDataBoundControlBase
C#
[System.Drawing.ToolboxBitmap()]
[System.ComponentModel.LicenseProvider()]
[WidgetDependencies(System.Object[])]
[System.ComponentModel.Designer(DesignerBaseTypeName="System.ComponentMod
el.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1AppView.C1AppViewDesigne
r, C1.Web.Wijmo.Controls.Design.4, Version=4.0.20151.207,
Culture=neutral, PublicKeyToken=9b75583953471eea")]
[System.Web.UI.ToolboxData("<{0}:C1AppView
runat=server></{0}:C1AppView>")]
public class C1AppView :
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.C1AppView.C1AppView
See Also
Reference
C1AppView Members
C1.Web.Wijmo.Controls.C1AppView Namespace
AppView for ASP.NET Web Forms
107
Members The following tables list the members exposed by C1AppView.
Public Constructors
Name Description
C1AppView Constructor Initializes a new instance of the C1AppView class.
Top
Public Properties
Name Description
AccessKey (Inherited from
System.Web.UI.WebControls.WebControl)
AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)
AppViewPageUrlField Gets or sets the field in the data source from which
to load appview page url values.
Attributes (Inherited from
System.Web.UI.WebControls.WebControl)
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
AppView for ASP.NET Web Forms
108
System.Web.UI.WebControls.WebControl)
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)
DataTextField Gets or sets the field in the data source from which
to load text values.
DefaultContent Gets or sets the default content displays in the
appview control.
EnableTheming (Inherited from
System.Web.UI.WebControls.WebControl)
EnableViewState (Inherited from System.Web.UI.Control)
HasAttributes (Inherited from
System.Web.UI.WebControls.WebControl)
HeaderTitle Defines the default content of the AppView control
Header.
ID (Inherited from System.Web.UI.Control)
Items Gets the app view item collection.
ItemType (Inherited from
System.Web.UI.WebControls.DataBoundControl)
AppView for ASP.NET Web Forms
109
LoadSettings Additional Ajax loading options to consider when
loading pages.
NamingContainer (Inherited from System.Web.UI.Control)
OnClientPageBeforeChange Triggered before changing page.
OnClientPageBeforeLoad Triggered before loading page.
OnClientPageChange Triggered when appview change a page succeeded.
OnClientPageChangeFailed Triggered when appview change page failed.
OnClientPageLoad Triggered when appview load a page succeeded.
OnClientPageLoadFailed Triggered when appview load page failed.
Page (Inherited from System.Web.UI.Control)
Parent (Inherited from System.Web.UI.Control)
RenderingCompatibility (Inherited from System.Web.UI.Control)
SelectMethod (Inherited from
System.Web.UI.WebControls.DataBoundControl)
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.BaseDataBoundControl)
TabIndex (Inherited from
AppView for ASP.NET Web Forms
110
System.Web.UI.WebControls.WebControl)
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
ThemeSwatch Overridden. 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)
UrlParamName Defines the name of url parameter for appview.
ValidateRequestMode (Inherited from System.Web.UI.Control)
ViewStateMode (Inherited from System.Web.UI.Control)
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.WebControls.BaseDataBoundControl)
Dispose (Inherited from System.Web.UI.Control)
FindControl (Inherited from System.Web.UI.Control)
AppView for ASP.NET Web Forms
111
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)
RaisePostBackEvent Process an event raised when a form is posted to the server.
RenderBeginTag Overridden. Renders the HTML opening tag of the control to
the specified writer. This method is used primarily by control
developers.
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
Public Events
Name Description
CallingDataMethods (Inherited from System.Web.UI.WebControls.DataBoundControl)
CreatingModelDataSource (Inherited from System.Web.UI.WebControls.DataBoundControl)
AppView for ASP.NET Web Forms
112
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)
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
C1AppView Class
C1.Web.Wijmo.Controls.C1AppView Namespace
C1AppView Constructor Initializes a new instance of the C1AppView class.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public C1AppView()
See Also
Reference
C1AppView Class
C1AppView Members
AppView for ASP.NET Web Forms
113
Methods For a list of all members of this type, see C1AppView 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.WebControls.BaseDataBoundControl)
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)
LoadLayout Overloaded. Loads control layout properties from the file.
MergeStyle (Inherited from System.Web.UI.WebControls.WebControl)
RaisePostBackEvent Process an event raised when a form is posted to the server.
RenderBeginTag Overridden. Renders the HTML opening tag of the control to
the specified writer. This method is used primarily by control
developers.
AppView for ASP.NET Web Forms
114
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
C1AppView Class
C1.Web.Wijmo.Controls.C1AppView Namespace
LoadLayout Method Loads control layout properties from the file.
Overload List
Overload Description
LoadLayout(String) Loads control layout properties from the file.
LoadLayout(Stream) Load control layout properties from the stream.
LoadLayout(String,LayoutType) Loads control layout properties with specified types from the
file.
LoadLayout(Stream,LayoutType) Loads the control layout properties with specified types from
the stream.
See Also
Reference
AppView for ASP.NET Web Forms
115
C1AppView Class
C1AppView 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
C1AppView Class
C1AppView Members
Overload List
LoadLayout(Stream) Method
Load control layout properties from the stream.
Syntax
Visual Basic (Declaration)
Public Overloads Sub LoadLayout( _
ByVal stream As System.IO.Stream _
)
C#
AppView for ASP.NET Web Forms
116
public void LoadLayout(
System.IO.Stream stream
)
Parameters
stream
The stream where the values of layout properties will be loaded.
See Also
Reference
C1AppView Class
C1AppView 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
)
Parameters
filename
The file where the values of layout properties will be loaded.
layoutTypes
AppView for ASP.NET Web Forms
117
The layout types to load.
See Also
Reference
C1AppView Class
C1AppView 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
The layout types to load.
See Also
Reference
AppView for ASP.NET Web Forms
118
C1AppView Class
C1AppView Members
Overload List
RaisePostBackEvent Method A System.String that represents an optional event argument to be passed to the event hander.
Process an event raised when a form is posted to the server.
Syntax
Visual Basic (Declaration)
Public Sub RaisePostBackEvent( _
ByVal eventArgument As System.String _
)
C#
public void RaisePostBackEvent(
System.string eventArgument
)
Parameters
eventArgument
A System.String that represents an optional event argument to be passed to the event
hander.
See Also
Reference
C1AppView Class
C1AppView Members
RenderBeginTag Method A System.Web.UI.HtmlTextWriter that represents the output stream to render HTML content on
the client.
Renders the HTML opening tag of the control to the specified writer. This method is used
primarily by control developers.
Syntax
AppView for ASP.NET Web Forms
119
Visual Basic (Declaration)
Public Overrides Sub RenderBeginTag( _
ByVal writer As System.Web.UI.HtmlTextWriter _
)
C#
public override void RenderBeginTag(
System.Web.UI.HtmlTextWriter writer
)
Parameters
writer
A System.Web.UI.HtmlTextWriter that represents the output stream to render HTML
content on the client.
See Also
Reference
C1AppView Class
C1AppView Members
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
C1AppView Class
C1AppView Members
SaveLayout(String) Method
Saves the control layout properties to the file.
AppView for ASP.NET Web Forms
120
Syntax
Visual Basic (Declaration)
Public Overloads Sub SaveLayout( _
ByVal filename As System.String _
)
C#
public void SaveLayout(
System.string filename
)
Parameters
filename
The file where the values of the layout properties will be saved.
See Also
Reference
C1AppView Class
C1AppView 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
AppView for ASP.NET Web Forms
121
The stream where the values of layout properties will be saved.
See Also
Reference
C1AppView Class
C1AppView Members
Overload List
Properties For a list of all members of this type, see C1AppView members.
Public Properties
Name Description
AccessKey (Inherited from
System.Web.UI.WebControls.WebControl)
AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)
AppViewPageUrlField Gets or sets the field in the data source from which
to load appview page url values.
Attributes (Inherited from
System.Web.UI.WebControls.WebControl)
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)
AppView for ASP.NET Web Forms
122
CssClass (Inherited from
System.Web.UI.WebControls.WebControl)
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)
DataTextField Gets or sets the field in the data source from which
to load text values.
DefaultContent Gets or sets the default content displays in the
appview control.
EnableTheming (Inherited from
System.Web.UI.WebControls.WebControl)
EnableViewState (Inherited from System.Web.UI.Control)
HasAttributes (Inherited from
System.Web.UI.WebControls.WebControl)
HeaderTitle Defines the default content of the AppView control
Header.
ID (Inherited from System.Web.UI.Control)
Items Gets the app view item collection.
ItemType (Inherited from
AppView for ASP.NET Web Forms
123
System.Web.UI.WebControls.DataBoundControl)
LoadSettings Additional Ajax loading options to consider when
loading pages.
NamingContainer (Inherited from System.Web.UI.Control)
OnClientPageBeforeChange Triggered before changing page.
OnClientPageBeforeLoad Triggered before loading page.
OnClientPageChange Triggered when appview change a page succeeded.
OnClientPageChangeFailed Triggered when appview change page failed.
OnClientPageLoad Triggered when appview load a page succeeded.
OnClientPageLoadFailed Triggered when appview load page failed.
Page (Inherited from System.Web.UI.Control)
Parent (Inherited from System.Web.UI.Control)
RenderingCompatibility (Inherited from System.Web.UI.Control)
SelectMethod (Inherited from
System.Web.UI.WebControls.DataBoundControl)
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.BaseDataBoundControl)
AppView for ASP.NET Web Forms
124
TabIndex (Inherited from
System.Web.UI.WebControls.WebControl)
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
ThemeSwatch Overridden. 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)
UrlParamName Defines the name of url parameter for appview.
ValidateRequestMode (Inherited from System.Web.UI.Control)
ViewStateMode (Inherited from System.Web.UI.Control)
Top
See Also
Reference
C1AppView Class
C1.Web.Wijmo.Controls.C1AppView Namespace
AppViewPageUrlField Property Gets or sets the field in the data source from which to load appview page url values.
Syntax
Visual Basic (Declaration)
<LayoutAttribute(LayoutType.Misc)>
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1AppView.AppViewPageUrlField",
AppView for ASP.NET Web Forms
125
Description="Gets or sets the field in the data source from which to load
appview page url values.")>
<C1CategoryAttribute("Data")>
Public Property AppViewPageUrlField As System.String
C#
[Layout(LayoutType.Misc)]
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1AppView.AppViewPageUrlField", Description="Gets or sets
the field in the data source from which to load appview page url values.")]
[C1Category("Data")]
public System.string AppViewPageUrlField {get; set;}
Example
C#
C1AppView c = new C1AppView(); c.DataSource = data; c.DataTextField = "textField"; c.AppViewPageUrlField = "valueField"; c.DataBind();
See Also
Reference
C1AppView Class
C1AppView Members
DataTextField Property Gets or sets the field in the data source from which to load text values.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()>
<LayoutAttribute(LayoutType.Misc)>
<C1DescriptionAttribute(Key="C1AppView.DataTextField", Description="Gets or
sets the field in the data source from which to load text values.")>
<C1CategoryAttribute("Data")>
Public Property DataTextField As System.String
C#
AppView for ASP.NET Web Forms
126
[System.ComponentModel.DefaultValue()]
[Layout(LayoutType.Misc)]
[C1Description(Key="C1AppView.DataTextField", Description="Gets or sets the
field in the data source from which to load text values.")]
[C1Category("Data")]
public System.string DataTextField {get; set;}
Example
C#
C1AppView c = new C1AppView(); c.DataSource = data; c.DataTextField = "textField"; c.AppViewPageUrlField = "valueField"; c.DataBind();
See Also
Reference
C1AppView Class
C1AppView Members
DefaultContent Property Gets or sets the default content displays in the appview control.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.BrowsableAttribute(False)>
<System.Web.UI.TemplateContainerAttribute(BindingDirection=BindingDirection.O
neWay, ContainerType=System.Web.UI.WebControls.PlaceHolder)>
<System.Web.UI.PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<System.Web.UI.TemplateInstanceAttribute(TemplateInstance.Single)>
<C1DescriptionAttribute(Key="C1AppView.DefaultConent", Description="Gets or
sets the default content displays in the appview control.")>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Content)>
<System.ComponentModel.BindableAttribute(Bindable=False,
Direction=BindingDirection.OneWay)>
Public Property DefaultContent As System.Web.UI.WebControls.PlaceHolder
C#
AppView for ASP.NET Web Forms
127
[System.ComponentModel.Browsable(false)]
[System.Web.UI.TemplateContainer(BindingDirection=BindingDirection.OneWay
, ContainerType=System.Web.UI.WebControls.PlaceHolder)]
[System.Web.UI.PersistenceMode(PersistenceMode.InnerProperty)]
[System.Web.UI.TemplateInstance(TemplateInstance.Single)]
[C1Description(Key="C1AppView.DefaultConent", Description="Gets or sets
the default content displays in the appview control.")]
[C1Category("Behavior")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Content)]
[System.ComponentModel.Bindable(Bindable=false,
Direction=BindingDirection.OneWay)]
public System.Web.UI.WebControls.PlaceHolder DefaultContent {get; set;}
See Also
Reference
C1AppView Class
C1AppView Members
HeaderTitle Property Defines the default content of the AppView control Header.
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Appearance")>
<C1DescriptionAttribute(Key="C1AppView.HeaderTitle", Description="Defines the
default content of the AppView control Header.")>
<System.ComponentModel.DefaultValueAttribute()>
<LayoutAttribute(LayoutType.Appearance)>
Public Property HeaderTitle As System.String
C#
[C1Category("Appearance")]
[C1Description(Key="C1AppView.HeaderTitle", Description="Defines the default
content of the AppView control Header.")]
[System.ComponentModel.DefaultValue()]
[Layout(LayoutType.Appearance)]
public System.string HeaderTitle {get; set;}
See Also
AppView for ASP.NET Web Forms
128
Reference
C1AppView Class
C1AppView Members
Items Property Gets the app view item collection.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<C1CategoryAttribute("Appearance")>
<CollectionItemTypeAttribute(C1.Web.Wijmo.Controls.C1AppView.C1AppViewItem)>
<C1DescriptionAttribute(Key="C1AppView.Items", Description="Gets the app view
item collection.")>
<System.ComponentModel.NotifyParentPropertyAttribute(True)>
<System.ComponentModel.BrowsableAttribute(False)>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Content)>
<System.Web.UI.PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<System.ComponentModel.MergablePropertyAttribute(False)>
<LayoutAttribute(LayoutType.Appearance)>
Public ReadOnly Property Items As C1AppViewItemCollection
C#
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[C1Category("Appearance")]
[CollectionItemType(C1.Web.Wijmo.Controls.C1AppView.C1AppViewItem)]
[C1Description(Key="C1AppView.Items", Description="Gets the app view item
collection.")]
[System.ComponentModel.NotifyParentProperty(true)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Content)]
[System.Web.UI.PersistenceMode(PersistenceMode.InnerProperty)]
[System.ComponentModel.MergableProperty(false)]
[Layout(LayoutType.Appearance)]
public C1AppViewItemCollection Items {get;}
See Also
AppView for ASP.NET Web Forms
129
Reference
C1AppView Class
C1AppView Members
LoadSettings Property Additional Ajax loading options to consider when loading pages.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Content)>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1AppView.LoadSettings", Description="Additional
Ajax loading options to consider when loading pages.")>
<LayoutAttribute(LayoutType.Misc)>
<System.Web.UI.PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter,
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>
<C1CategoryAttribute("Misc")>
<System.ComponentModel.NotifyParentPropertyAttribute(True)>
Public Property LoadSettings As LoadSettings
C#
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Content)]
[WidgetOption()]
[C1Description(Key="C1AppView.LoadSettings", Description="Additional Ajax
loading options to consider when loading pages.")]
[Layout(LayoutType.Misc)]
[System.Web.UI.PersistenceMode(PersistenceMode.InnerProperty)]
[TypeConverter("System.ComponentModel.ExpandableObjectConverter, System,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[C1Category("Misc")]
[System.ComponentModel.NotifyParentProperty(true)]
public LoadSettings LoadSettings {get; set;}
See Also
Reference
AppView for ASP.NET Web Forms
130
C1AppView Class
C1AppView Members
OnClientPageBeforeChange Property Triggered before changing page.
Syntax
Visual Basic (Declaration)
<WidgetEventAttribute("e, item")>
<WidgetOptionNameAttribute("pagebeforechange")>
<LayoutAttribute(LayoutType.Behavior)>
<C1CategoryAttribute("Client-Side Events")>
<C1DescriptionAttribute(Key="C1AppView.OnClientPageBeforeChange",
Description="Triggered before changing page.")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property OnClientPageBeforeChange As System.String
C#
[WidgetEvent("e, item")]
[WidgetOptionName("pagebeforechange")]
[Layout(LayoutType.Behavior)]
[C1Category("Client-Side Events")]
[C1Description(Key="C1AppView.OnClientPageBeforeChange",
Description="Triggered before changing page.")]
[System.ComponentModel.DefaultValue()]
public System.string OnClientPageBeforeChange {get; set;}
See Also
Reference
C1AppView Class
C1AppView Members
OnClientPageBeforeLoad Property Triggered before loading page.
Syntax
Visual Basic (Declaration)
<LayoutAttribute(LayoutType.Behavior)>
AppView for ASP.NET Web Forms
131
<WidgetOptionNameAttribute("pagebeforeload")>
<C1DescriptionAttribute(Key="C1AppView.OnClientPageBeforeLoad",
Description="Triggered before loading page.")>
<C1CategoryAttribute("Client-Side Events")>
<WidgetEventAttribute("e")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property OnClientPageBeforeLoad As System.String
C#
[Layout(LayoutType.Behavior)]
[WidgetOptionName("pagebeforeload")]
[C1Description(Key="C1AppView.OnClientPageBeforeLoad", Description="Triggered
before loading page.")]
[C1Category("Client-Side Events")]
[WidgetEvent("e")]
[System.ComponentModel.DefaultValue()]
public System.string OnClientPageBeforeLoad {get; set;}
See Also
Reference
C1AppView Class
C1AppView Members
OnClientPageChange Property Triggered when appview change a page succeeded.
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Client-Side Events")>
<WidgetOptionNameAttribute("pagechange")>
<LayoutAttribute(LayoutType.Behavior)>
<C1DescriptionAttribute(Key="C1AppView.OnClientPageChange",
Description="Triggered when appview change a page succeeded.")>
<WidgetEventAttribute("e")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property OnClientPageChange As System.String
C#
[C1Category("Client-Side Events")]
AppView for ASP.NET Web Forms
132
[WidgetOptionName("pagechange")]
[Layout(LayoutType.Behavior)]
[C1Description(Key="C1AppView.OnClientPageChange", Description="Triggered
when appview change a page succeeded.")]
[WidgetEvent("e")]
[System.ComponentModel.DefaultValue()]
public System.string OnClientPageChange {get; set;}
See Also
Reference
C1AppView Class
C1AppView Members
OnClientPageChangeFailed Property Triggered when appview change page failed.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()>
<WidgetEventAttribute("e, item")>
<C1DescriptionAttribute(Key="C1AppView.OnClientPageChangeFailed",
Description="Triggered when appview change page failed.")>
<WidgetOptionNameAttribute("pagechangefailed")>
<LayoutAttribute(LayoutType.Behavior)>
<C1CategoryAttribute("Client-Side Events")>
Public Property OnClientPageChangeFailed As System.String
C#
[System.ComponentModel.DefaultValue()]
[WidgetEvent("e, item")]
[C1Description(Key="C1AppView.OnClientPageChangeFailed",
Description="Triggered when appview change page failed.")]
[WidgetOptionName("pagechangefailed")]
[Layout(LayoutType.Behavior)]
[C1Category("Client-Side Events")]
public System.string OnClientPageChangeFailed {get; set;}
See Also
Reference
AppView for ASP.NET Web Forms
133
C1AppView Class
C1AppView Members
OnClientPageLoad Property Triggered when appview load a page succeeded.
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Client-Side Events")>
<WidgetEventAttribute("e")>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionNameAttribute("pageload")>
<LayoutAttribute(LayoutType.Behavior)>
<C1DescriptionAttribute(Key="C1AppView.OnClientPageLoad",
Description="Triggered when appview load a page succeeded.")>
Public Property OnClientPageLoad As System.String
C#
[C1Category("Client-Side Events")]
[WidgetEvent("e")]
[System.ComponentModel.DefaultValue()]
[WidgetOptionName("pageload")]
[Layout(LayoutType.Behavior)]
[C1Description(Key="C1AppView.OnClientPageLoad", Description="Triggered when
appview load a page succeeded.")]
public System.string OnClientPageLoad {get; set;}
See Also
Reference
C1AppView Class
C1AppView Members
OnClientPageLoadFailed Property Triggered when appview load page failed.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1AppView.OnClientPageLoadFailed",
AppView for ASP.NET Web Forms
134
Description="Triggered when appview load page failed.")>
<C1CategoryAttribute("Client-Side Events")>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionNameAttribute("pageloadfailed")>
<LayoutAttribute(LayoutType.Behavior)>
<WidgetEventAttribute("e, item")>
Public Property OnClientPageLoadFailed As System.String
C#
[C1Description(Key="C1AppView.OnClientPageLoadFailed", Description="Triggered
when appview load page failed.")]
[C1Category("Client-Side Events")]
[System.ComponentModel.DefaultValue()]
[WidgetOptionName("pageloadfailed")]
[Layout(LayoutType.Behavior)]
[WidgetEvent("e, item")]
public System.string OnClientPageLoadFailed {get; set;}
See Also
Reference
C1AppView Class
C1AppView 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)
<C1CategoryAttribute("Appearance")>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Visible)>
<C1DescriptionAttribute(Key="C1Base.ThemeSwatch", Description="A value that
indicates the theme swatch of the control, this property only works when
WijmoControlMode property is Mobile.")>
<LayoutAttribute(LayoutType.Appearance)>
<System.ComponentModel.BrowsableAttribute(True)>
<System.ComponentModel.DefaultValueAttribute()>
<WidgetOptionAttribute()>
AppView for ASP.NET Web Forms
135
<TypeConverterAttribute("C1.Web.Wijmo.Controls.WijmoThemeSwatchConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
Public Overrides Property ThemeSwatch As System.String
C#
[C1Category("Appearance")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Visible)]
[C1Description(Key="C1Base.ThemeSwatch", Description="A value that
indicates the theme swatch of the control, this property only works when
WijmoControlMode property is Mobile.")]
[Layout(LayoutType.Appearance)]
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.DefaultValue()]
[WidgetOption()]
[TypeConverter("C1.Web.Wijmo.Controls.WijmoThemeSwatchConverter,
C1.Web.Wijmo.Controls.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")]
public override System.string ThemeSwatch {get; set;}
See Also
Reference
C1AppView Class
C1AppView Members
UrlParamName Property Defines the name of url parameter for appview.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()>
<LayoutAttribute(LayoutType.Misc)>
<C1CategoryAttribute("Misc")>
<WidgetOptionAttribute()>
<C1DescriptionAttribute(Key="C1AppView.UrlParamName", Description="Defines
the name of url parameter for appview.")>
Public Property UrlParamName As System.String
AppView for ASP.NET Web Forms
136
C#
[System.ComponentModel.DefaultValue()]
[Layout(LayoutType.Misc)]
[C1Category("Misc")]
[WidgetOption()]
[C1Description(Key="C1AppView.UrlParamName", Description="Defines the name of
url parameter for appview.")]
public System.string UrlParamName {get; set;}
See Also
Reference
C1AppView Class
C1AppView Members
C1AppViewItem Represents a single tab page in a C1Tabs.
Object Model
Syntax
Visual Basic (Declaration)
<System.ComponentModel.ToolboxItemAttribute(ToolboxItemType=,
ToolboxItemTypeName="")>
<System.Web.UI.ParseChildrenAttribute()>
<System.Web.UI.PersistChildrenAttribute(Persist=True,
UsesCustomPersistence=False)>
Public Class C1AppViewItem
Inherits C1.Web.Wijmo.Controls.Base.UIElement
C#
[System.ComponentModel.ToolboxItem(ToolboxItemType=, ToolboxItemTypeName="")]
[System.Web.UI.ParseChildren()]
[System.Web.UI.PersistChildren(Persist=true, UsesCustomPersistence=false)]
public class C1AppViewItem : C1.Web.Wijmo.Controls.Base.UIElement
Inheritance Hierarchy
AppView for ASP.NET Web Forms
137
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
C1.Web.Wijmo.Controls.C1AppView.C1AppViewItem
See Also
Reference
C1AppViewItem Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Overview Represents a single tab page in a C1Tabs.
Object Model
Syntax
Visual Basic (Declaration)
<System.ComponentModel.ToolboxItemAttribute(ToolboxItemType=,
ToolboxItemTypeName="")>
<System.Web.UI.ParseChildrenAttribute()>
<System.Web.UI.PersistChildrenAttribute(Persist=True,
UsesCustomPersistence=False)>
Public Class C1AppViewItem
Inherits C1.Web.Wijmo.Controls.Base.UIElement
C#
[System.ComponentModel.ToolboxItem(ToolboxItemType=, ToolboxItemTypeName="")]
[System.Web.UI.ParseChildren()]
[System.Web.UI.PersistChildren(Persist=true, UsesCustomPersistence=false)]
public class C1AppViewItem : C1.Web.Wijmo.Controls.Base.UIElement
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
C1.Web.Wijmo.Controls.C1AppView.C1AppViewItem
AppView for ASP.NET Web Forms
138
See Also
Reference
C1AppViewItem Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Members The following tables list the members exposed by C1AppViewItem.
Public Constructors
Name Description
C1AppViewItem Constructor Overloaded.
Top
Public Properties
Name Description
AccessKey (Inherited from
System.Web.UI.WebControls.WebControl)
AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)
AppViewPageUrl Gets or sets the page url of the menu that loaded by
the appview.
Attributes (Inherited from
System.Web.UI.WebControls.WebControl)
ClientID (Inherited from System.Web.UI.Control)
ClientIDMode (Inherited from System.Web.UI.Control)
Controls (Inherited from System.Web.UI.Control)
ControlStyle (Inherited from
AppView for ASP.NET Web Forms
139
System.Web.UI.WebControls.WebControl)
ControlStyleCreated (Inherited from
System.Web.UI.WebControls.WebControl)
Enabled (Inherited from
System.Web.UI.WebControls.WebControl)
HasAttributes (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)
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)
AppView for ASP.NET Web Forms
140
Text Gets or sets the text displayed in the menu of the
appview.
ThemeSwatch Gets or sets the DataTheme setting of the Appview
item.
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)
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)
AppView for ASP.NET Web Forms
141
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)
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
AppView for ASP.NET Web Forms
142
C1AppViewItem Class
C1.Web.Wijmo.Controls.C1AppView Namespace
C1AppViewItem Constructor
Overload List
Overload Description
C1AppViewItem Constructor() Constructor of the C1AppViewItem class.
C1AppViewItem Constructor(C1AppView) Constructor of the C1AppViewItem class.
See Also
Reference
C1AppViewItem Class
C1AppViewItem Members
C1AppViewItem Constructor() Constructor of the C1AppViewItem class.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public C1AppViewItem()
See Also
Reference
C1AppViewItem Class
C1AppViewItem Members
Overload List
C1AppViewItem Constructor(C1AppView) Constructor of the C1AppViewItem class.
Syntax
AppView for ASP.NET Web Forms
143
Visual Basic (Declaration)
Public Function New( _
ByVal appView As C1AppView _
)
C#
public C1AppViewItem(
C1AppView appView
)
Parameters
appView
See Also
Reference
C1AppViewItem Class
C1AppViewItem Members
Overload List
Properties For a list of all members of this type, see C1AppViewItem members.
Public Properties
Name Description
AccessKey (Inherited from
System.Web.UI.WebControls.WebControl)
AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)
AppViewPageUrl Gets or sets the page url of the menu that loaded by
the appview.
Attributes (Inherited from
System.Web.UI.WebControls.WebControl)
ClientID (Inherited from System.Web.UI.Control)
AppView for ASP.NET Web Forms
144
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)
Enabled (Inherited from
System.Web.UI.WebControls.WebControl)
HasAttributes (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)
Style (Inherited from
System.Web.UI.WebControls.WebControl)
SupportsDisabledAttribute (Inherited from
System.Web.UI.WebControls.WebControl)
TabIndex (Inherited from
AppView for ASP.NET Web Forms
145
System.Web.UI.WebControls.WebControl)
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
Text Gets or sets the text displayed in the menu of the
appview.
ThemeSwatch Gets or sets the DataTheme setting of the Appview
item.
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)
Top
See Also
Reference
C1AppViewItem Class
C1.Web.Wijmo.Controls.C1AppView Namespace
AppViewPageUrl Property Gets or sets the page url of the menu that loaded by the appview.
Syntax
Visual Basic (Declaration)
<LayoutAttribute(LayoutType.Behavior)>
<C1DescriptionAttribute(Key="C1AppViewItem.AppViewPageUrl", Description="Gets
or sets the page url of the menu that laoded by the appview.")>
<System.ComponentModel.DefaultValueAttribute()>
AppView for ASP.NET Web Forms
146
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.LocalizableAttribute(True)>
Public Property AppViewPageUrl As System.String
C#
[Layout(LayoutType.Behavior)]
[C1Description(Key="C1AppViewItem.AppViewPageUrl", Description="Gets or sets
the page url of the menu that laoded by the appview.")]
[System.ComponentModel.DefaultValue()]
[C1Category("Behavior")]
[System.ComponentModel.Localizable(true)]
public System.string AppViewPageUrl {get; set;}
See Also
Reference
C1AppViewItem Class
C1AppViewItem Members
Text Property Gets or sets the text displayed in the menu of the appview.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("Behavior")>
<System.ComponentModel.LocalizableAttribute(True)>
<LayoutAttribute(LayoutType.Behavior)>
<C1DescriptionAttribute(Key="C1AppViewItem.Text", Description="Gets or sets
the text displayed in the menu of the appview.")>
Public Property Text As System.String
C#
[System.ComponentModel.DefaultValue()]
[C1Category("Behavior")]
[System.ComponentModel.Localizable(true)]
[Layout(LayoutType.Behavior)]
[C1Description(Key="C1AppViewItem.Text", Description="Gets or sets the text
displayed in the menu of the appview.")]
public System.string Text {get; set;}
AppView for ASP.NET Web Forms
147
See Also
Reference
C1AppViewItem Class
C1AppViewItem Members
ThemeSwatch Property Gets or sets the DataTheme setting of the Appview item.
Syntax
Visual Basic (Declaration)
<C1CategoryAttribute("Appearance")>
<C1DescriptionAttribute(Key="C1AppViewItem.DataTheme", Description="Gets or
sets the DataTheme setting of the Appview item.")>
<LayoutAttribute(LayoutType.Appearance)>
<System.ComponentModel.DefaultValueAttribute()>
Public Property ThemeSwatch As System.String
C#
[C1Category("Appearance")]
[C1Description(Key="C1AppViewItem.DataTheme", Description="Gets or sets the
DataTheme setting of the Appview item.")]
[Layout(LayoutType.Appearance)]
[System.ComponentModel.DefaultValue()]
public System.string ThemeSwatch {get; set;}
See Also
Reference
C1AppViewItem Class
C1AppViewItem Members
C1AppViewItemCollection Represents a collection of Appview item.
Object Model
Syntax
AppView for ASP.NET Web Forms
148
Visual Basic (Declaration)
Public Class C1AppViewItemCollection
Inherits
C1.Web.Wijmo.Controls.Base.Collections.C1ObservableItemCollection(Of
C1AppView,C1AppViewItem)
C#
public class C1AppViewItemCollection :
C1.Web.Wijmo.Controls.Base.Collections.C1ObservableItemCollection<C1AppView,C
1AppViewItem>
Inheritance Hierarchy
System.Object
System.Collections.ObjectModel.Collection<T>
C1.Web.Wijmo.Controls.C1AppView.C1AppViewItemCollection
See Also
Reference
C1AppViewItemCollection Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Overview Represents a collection of Appview item.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1AppViewItemCollection
Inherits
C1.Web.Wijmo.Controls.Base.Collections.C1ObservableItemCollection(Of
C1AppView,C1AppViewItem)
C#
public class C1AppViewItemCollection :
AppView for ASP.NET Web Forms
149
C1.Web.Wijmo.Controls.Base.Collections.C1ObservableItemCollection<C1AppView,C
1AppViewItem>
Inheritance Hierarchy
System.Object
System.Collections.ObjectModel.Collection<T>
C1.Web.Wijmo.Controls.C1AppView.C1AppViewItemCollection
See Also
Reference
C1AppViewItemCollection Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Members The following tables list the members exposed by C1AppViewItemCollection.
Public Constructors
Name Description
C1AppViewItemCollection Constructor Initializes a new instance of the
AccordionPaneCollection class.
Top
Public Properties
Name Description
Item (Inherited from
System.Collections.ObjectModel.Collection<C1AppViewItem>)
Top
Public Methods
Name Description
Add Adds a new pane item to the end of the list.
AppView for ASP.NET Web Forms
150
Clear Removes all items from collection.
Contains (Inherited from
System.Collections.ObjectModel.Collection<C1AppViewItem>)
CopyTo (Inherited from
System.Collections.ObjectModel.Collection<C1AppViewItem>)
IndexOf (Inherited from
System.Collections.ObjectModel.Collection<C1AppViewItem>)
Insert Insert a C1AppViewItem item into a specific position in the collection.
Remove Removes the specified item from the list.
RemoveAt Removes an item from the list using its index.
Top
See Also
Reference
C1AppViewItemCollection Class
C1.Web.Wijmo.Controls.C1AppView Namespace
C1AppViewItemCollection Constructor Initializes a new instance of the AccordionPaneCollection class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal owner As C1AppView _
)
C#
public C1AppViewItemCollection(
C1AppView owner
)
AppView for ASP.NET Web Forms
151
Parameters
owner
Parent C1AppView class instance.
See Also
Reference
C1AppViewItemCollection Class
C1AppViewItemCollection Members
Methods For a list of all members of this type, see C1AppViewItemCollection members.
Public Methods
Name Description
Add Adds a new pane item to the end of the list.
Clear Removes all items from collection.
Contains (Inherited from
System.Collections.ObjectModel.Collection<C1AppViewItem>)
CopyTo (Inherited from
System.Collections.ObjectModel.Collection<C1AppViewItem>)
IndexOf (Inherited from
System.Collections.ObjectModel.Collection<C1AppViewItem>)
Insert Insert a C1AppViewItem item into a specific position in the collection.
Remove Removes the specified item from the list.
RemoveAt Removes an item from the list using its index.
Top
See Also
AppView for ASP.NET Web Forms
152
Reference
C1AppViewItemCollection Class
C1.Web.Wijmo.Controls.C1AppView Namespace
Add Method Adds a new pane item to the end of the list.
Syntax
Visual Basic (Declaration)
Public Shadows Sub Add( _
ByVal child As C1AppViewItem _
)
C#
public new void Add(
C1AppViewItem child
)
Parameters
child
See Also
Reference
C1AppViewItemCollection Class
C1AppViewItemCollection Members
Clear Method Removes all items from collection.
Syntax
Visual Basic (Declaration)
Public Shadows Sub Clear()
C#
public new void Clear()
See Also
AppView for ASP.NET Web Forms
153
Reference
C1AppViewItemCollection Class
C1AppViewItemCollection Members
Insert Method Item position. Value should be greater or equal to 0
The new C1AppViewItem item.
Insert a C1AppViewItem item into a specific position in the collection.
Syntax
Visual Basic (Declaration)
Public Shadows Sub Insert( _
ByVal index As System.Integer, _
ByVal child As C1AppViewItem _
)
C#
public new void Insert(
System.int index,
C1AppViewItem child
)
Parameters
index
Item position. Value should be greater or equal to 0
child
The new C1AppViewItem item.
See Also
Reference
C1AppViewItemCollection Class
C1AppViewItemCollection Members
Remove Method Removes the specified item from the list.
AppView for ASP.NET Web Forms
154
Syntax
Visual Basic (Declaration)
Public Shadows Sub Remove( _
ByVal child As C1AppViewItem _
)
C#
public new void Remove(
C1AppViewItem child
)
Parameters
child
The C1AppViewItem item to be removed.
See Also
Reference
C1AppViewItemCollection Class
C1AppViewItemCollection Members
RemoveAt Method Removes an item from the list using its index.
Syntax
Visual Basic (Declaration)
Public Shadows Sub RemoveAt( _
ByVal index As System.Integer _
)
C#
public new void RemoveAt(
System.int index
)
Parameters
index
AppView for ASP.NET Web Forms
155
The index of the C1AppViewItem item to be removed.
See Also
Reference
C1AppViewItemCollection Class
C1AppViewItemCollection Members
C1AppViewPage Represents a Appview page in an ASP.NET Web page.
Object Model
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DesignerAttribute(DesignerBaseTypeName="System.Compone
ntModel.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1AppView.AppViewPageDesigner,
C1.Web.Wijmo.Controls.Design.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
<System.Drawing.ToolboxBitmapAttribute()>
<System.Web.UI.ToolboxDataAttribute("<{0}:C1AppViewPage
runat=server></{0}:C1AppViewPage>")>
Public Class C1AppViewPage
Inherits System.Web.UI.WebControls.WebControl
C#
[System.ComponentModel.Designer(DesignerBaseTypeName="System.ComponentMod
el.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1AppView.AppViewPageDesig
ner, C1.Web.Wijmo.Controls.Design.4, Version=4.0.20151.207,
Culture=neutral, PublicKeyToken=9b75583953471eea")]
[System.Drawing.ToolboxBitmap()]
[System.Web.UI.ToolboxData("<{0}:C1AppViewPage
runat=server></{0}:C1AppViewPage>")]
public class C1AppViewPage : System.Web.UI.WebControls.WebControl
Inheritance Hierarchy
AppView for ASP.NET Web Forms
156
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
C1.Web.Wijmo.Controls.C1AppView.C1AppViewPage
See Also
Reference
C1AppViewPage Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Overview Represents a Appview page in an ASP.NET Web page.
Object Model
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DesignerAttribute(DesignerBaseTypeName="System.Compone
ntModel.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1AppView.AppViewPageDesigner,
C1.Web.Wijmo.Controls.Design.4, Version=4.0.20151.207, Culture=neutral,
PublicKeyToken=9b75583953471eea")>
<System.Drawing.ToolboxBitmapAttribute()>
<System.Web.UI.ToolboxDataAttribute("<{0}:C1AppViewPage
runat=server></{0}:C1AppViewPage>")>
Public Class C1AppViewPage
Inherits System.Web.UI.WebControls.WebControl
C#
[System.ComponentModel.Designer(DesignerBaseTypeName="System.ComponentMod
el.Design.IDesigner",
DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1AppView.AppViewPageDesig
ner, C1.Web.Wijmo.Controls.Design.4, Version=4.0.20151.207,
Culture=neutral, PublicKeyToken=9b75583953471eea")]
[System.Drawing.ToolboxBitmap()]
[System.Web.UI.ToolboxData("<{0}:C1AppViewPage
runat=server></{0}:C1AppViewPage>")]
AppView for ASP.NET Web Forms
157
public class C1AppViewPage : System.Web.UI.WebControls.WebControl
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
C1.Web.Wijmo.Controls.C1AppView.C1AppViewPage
See Also
Reference
C1AppViewPage Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Members The following tables list the members exposed by C1AppViewPage.
Public Constructors
Name Description
C1AppViewPage Constructor
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)
BackColor (Inherited from
System.Web.UI.WebControls.WebControl)
AppView for ASP.NET Web Forms
158
BorderColor (Inherited from
System.Web.UI.WebControls.WebControl)
BorderStyle (Inherited from
System.Web.UI.WebControls.WebControl)
BorderWidth (Inherited from
System.Web.UI.WebControls.WebControl)
ClientID (Inherited from System.Web.UI.Control)
ClientIDMode (Inherited from System.Web.UI.Control)
Content Defines the content container of the appview page.
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)
Enabled (Inherited from
System.Web.UI.WebControls.WebControl)
EnableTheming (Inherited from
System.Web.UI.WebControls.WebControl)
EnableViewState (Inherited from System.Web.UI.Control)
Font (Inherited from
System.Web.UI.WebControls.WebControl)
ForeColor (Inherited from
AppView for ASP.NET Web Forms
159
System.Web.UI.WebControls.WebControl)
HasAttributes (Inherited from
System.Web.UI.WebControls.WebControl)
Header Defines the header container of the appview page.
HeaderTitle Defines the header title of the Appview page.
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)
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)
AppView for ASP.NET Web Forms
160
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
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 (Inherited from System.Web.UI.Control)
Width (Inherited from
System.Web.UI.WebControls.WebControl)
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)
AppView for ASP.NET Web Forms
161
HasControls (Inherited from System.Web.UI.Control)
MergeStyle (Inherited from System.Web.UI.WebControls.WebControl)
RenderBeginTag Overridden. add data-role and data-title for the appviewpage
container.
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)
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
AppView for ASP.NET Web Forms
162
C1AppViewPage Class
C1.Web.Wijmo.Controls.C1AppView Namespace
C1AppViewPage Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public C1AppViewPage()
See Also
Reference
C1AppViewPage Class
C1AppViewPage Members
Methods For a list of all members of this type, see C1AppViewPage 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)
AppView for ASP.NET Web Forms
163
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 Overridden. add data-role and data-title for the appviewpage
container.
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)
Top
See Also
Reference
C1AppViewPage Class
C1.Web.Wijmo.Controls.C1AppView Namespace
RenderBeginTag Method add data-role and data-title for the appviewpage container.
Syntax
Visual Basic (Declaration)
Public Overrides Sub RenderBeginTag( _
ByVal writer As System.Web.UI.HtmlTextWriter _
)
AppView for ASP.NET Web Forms
164
C#
public override void RenderBeginTag(
System.Web.UI.HtmlTextWriter writer
)
Parameters
writer
See Also
Reference
C1AppViewPage Class
C1AppViewPage Members
Properties For a list of all members of this type, see C1AppViewPage 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)
BackColor (Inherited from
System.Web.UI.WebControls.WebControl)
BorderColor (Inherited from
System.Web.UI.WebControls.WebControl)
BorderStyle (Inherited from
System.Web.UI.WebControls.WebControl)
BorderWidth (Inherited from
AppView for ASP.NET Web Forms
165
System.Web.UI.WebControls.WebControl)
ClientID (Inherited from System.Web.UI.Control)
ClientIDMode (Inherited from System.Web.UI.Control)
Content Defines the content container of the appview page.
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)
Enabled (Inherited from
System.Web.UI.WebControls.WebControl)
EnableTheming (Inherited from
System.Web.UI.WebControls.WebControl)
EnableViewState (Inherited from System.Web.UI.Control)
Font (Inherited from
System.Web.UI.WebControls.WebControl)
ForeColor (Inherited from
System.Web.UI.WebControls.WebControl)
HasAttributes (Inherited from
System.Web.UI.WebControls.WebControl)
Header Defines the header container of the appview page.
AppView for ASP.NET Web Forms
166
HeaderTitle Defines the header title of the Appview page.
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)
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)
ToolTip (Inherited from
System.Web.UI.WebControls.WebControl)
UniqueID (Inherited from System.Web.UI.Control)
AppView for ASP.NET Web Forms
167
ValidateRequestMode (Inherited from System.Web.UI.Control)
ViewStateMode (Inherited from System.Web.UI.Control)
Visible (Inherited from System.Web.UI.Control)
Width (Inherited from
System.Web.UI.WebControls.WebControl)
Top
See Also
Reference
C1AppViewPage Class
C1.Web.Wijmo.Controls.C1AppView Namespace
Content Property Defines the content container of the appview page.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1AppViewPage.Content", Description="Defines the
content container of the appview page.")>
<System.Web.UI.PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<System.ComponentModel.BrowsableAttribute(False)>
<LayoutAttribute(LayoutType.Misc)>
<System.ComponentModel.DefaultValueAttribute()>
Public Property Content As C1AppViewTemplateContent
C#
[C1Description(Key="C1AppViewPage.Content", Description="Defines the content
container of the appview page.")]
[System.Web.UI.PersistenceMode(PersistenceMode.InnerProperty)]
[System.ComponentModel.Browsable(false)]
[Layout(LayoutType.Misc)]
[System.ComponentModel.DefaultValue()]
public C1AppViewTemplateContent Content {get; set;}
See Also
AppView for ASP.NET Web Forms
168
Reference
C1AppViewPage Class
C1AppViewPage Members
Header Property Defines the header container of the appview page.
Syntax
Visual Basic (Declaration)
<LayoutAttribute(LayoutType.Misc)>
<System.ComponentModel.BrowsableAttribute(False)>
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute(Key="C1AppViewPage.Header", Description="Defines the
header container of the appview page.")>
<System.Web.UI.PersistenceModeAttribute(PersistenceMode.InnerProperty)>
Public Property Header As C1AppViewTemplateContent
C#
[Layout(LayoutType.Misc)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DefaultValue()]
[C1Description(Key="C1AppViewPage.Header", Description="Defines the header
container of the appview page.")]
[System.Web.UI.PersistenceMode(PersistenceMode.InnerProperty)]
public C1AppViewTemplateContent Header {get; set;}
See Also
Reference
C1AppViewPage Class
C1AppViewPage Members
HeaderTitle Property Defines the header title of the Appview page.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1AppViewPage.HeaderTitle", Description="Defines
AppView for ASP.NET Web Forms
169
the header title of the Appview page.")>
<LayoutAttribute(LayoutType.Appearance)>
<C1CategoryAttribute("Appearance")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property HeaderTitle As System.String
C#
[C1Description(Key="C1AppViewPage.HeaderTitle", Description="Defines the
header title of the Appview page.")]
[Layout(LayoutType.Appearance)]
[C1Category("Appearance")]
[System.ComponentModel.DefaultValue()]
public System.string HeaderTitle {get; set;}
See Also
Reference
C1AppViewPage Class
C1AppViewPage Members
C1AppViewSerializer
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1AppViewSerializer
Inherits C1.Web.Wijmo.Controls.Base.C1BaseSerializer(Of
C1AppView,C1AppViewItem,C1AppView)
C#
public class C1AppViewSerializer :
C1.Web.Wijmo.Controls.Base.C1BaseSerializer<C1AppView,C1AppViewItem,C1AppView
>
Inheritance Hierarchy
System.Object
C1.Web.Wijmo.Controls.C1AppView.C1AppViewSerializer
AppView for ASP.NET Web Forms
170
See Also
Reference
C1AppViewSerializer Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Overview
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1AppViewSerializer
Inherits C1.Web.Wijmo.Controls.Base.C1BaseSerializer(Of
C1AppView,C1AppViewItem,C1AppView)
C#
public class C1AppViewSerializer :
C1.Web.Wijmo.Controls.Base.C1BaseSerializer<C1AppView,C1AppViewItem,C1AppView
>
Inheritance Hierarchy
System.Object
C1.Web.Wijmo.Controls.C1AppView.C1AppViewSerializer
See Also
Reference
C1AppViewSerializer Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Members The following tables list the members exposed by C1AppViewSerializer.
Public Constructors
Name Description
AppView for ASP.NET Web Forms
171
C1AppViewSerializer Constructor Initializes a new instance of the C1AppViewSerializer
class.
Top
See Also
Reference
C1AppViewSerializer Class
C1.Web.Wijmo.Controls.C1AppView Namespace
C1AppViewSerializer Constructor Initializes a new instance of the C1AppViewSerializer class.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal obj As System.Object _
)
C#
public C1AppViewSerializer(
System.object obj
)
Parameters
obj
See Also
Reference
C1AppViewSerializer Class
C1AppViewSerializer Members
C1AppViewTemplateContent
Object Model
AppView for ASP.NET Web Forms
172
Syntax
Visual Basic (Declaration)
<System.Web.UI.ParseChildrenAttribute(True)>
<System.ComponentModel.ToolboxItemAttribute(ToolboxItemType=,
ToolboxItemTypeName="")>
Public Class C1AppViewTemplateContent
Inherits C1.Web.Wijmo.Controls.Base.UIElement
C#
[System.Web.UI.ParseChildren(true)]
[System.ComponentModel.ToolboxItem(ToolboxItemType=, ToolboxItemTypeName="")]
public class C1AppViewTemplateContent : C1.Web.Wijmo.Controls.Base.UIElement
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
C1.Web.Wijmo.Controls.C1AppView.C1AppViewTemplateContent
See Also
Reference
C1AppViewTemplateContent Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Overview
Object Model
Syntax
Visual Basic (Declaration)
<System.Web.UI.ParseChildrenAttribute(True)>
<System.ComponentModel.ToolboxItemAttribute(ToolboxItemType=,
ToolboxItemTypeName="")>
Public Class C1AppViewTemplateContent
Inherits C1.Web.Wijmo.Controls.Base.UIElement
AppView for ASP.NET Web Forms
173
C#
[System.Web.UI.ParseChildren(true)]
[System.ComponentModel.ToolboxItem(ToolboxItemType=, ToolboxItemTypeName="")]
public class C1AppViewTemplateContent : C1.Web.Wijmo.Controls.Base.UIElement
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
C1.Web.Wijmo.Controls.C1AppView.C1AppViewTemplateContent
See Also
Reference
C1AppViewTemplateContent Members
C1.Web.Wijmo.Controls.C1AppView Namespace
Members The following tables list the members exposed by C1AppViewTemplateContent.
Public Constructors
Name Description
C1AppViewTemplateContent Constructor
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)
AppView for ASP.NET Web Forms
174
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)
Enabled (Inherited from
System.Web.UI.WebControls.WebControl)
HasAttributes (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)
Style (Inherited from
System.Web.UI.WebControls.WebControl)
SupportsDisabledAttribute (Inherited from
System.Web.UI.WebControls.WebControl)
AppView for ASP.NET Web Forms
175
TabIndex (Inherited from
System.Web.UI.WebControls.WebControl)
Template Gets or sets the content template used to display the
content of the header or content container of
appview page.
TemplateContainer Gets or sets the template container.
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
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)
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)
AppView for ASP.NET Web Forms
176
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)
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)
AppView for ASP.NET Web Forms
177
Top
See Also
Reference
C1AppViewTemplateContent Class
C1.Web.Wijmo.Controls.C1AppView Namespace
C1AppViewTemplateContent Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public C1AppViewTemplateContent()
See Also
Reference
C1AppViewTemplateContent Class
C1AppViewTemplateContent Members
Properties For a list of all members of this type, see C1AppViewTemplateContent 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)
ClientID (Inherited from System.Web.UI.Control)
AppView for ASP.NET Web Forms
178
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)
Enabled (Inherited from
System.Web.UI.WebControls.WebControl)
HasAttributes (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)
Style (Inherited from
System.Web.UI.WebControls.WebControl)
SupportsDisabledAttribute (Inherited from
System.Web.UI.WebControls.WebControl)
TabIndex (Inherited from
AppView for ASP.NET Web Forms
179
System.Web.UI.WebControls.WebControl)
Template Gets or sets the content template used to display the
content of the header or content container of
appview page.
TemplateContainer Gets or sets the template container.
TemplateControl (Inherited from System.Web.UI.Control)
TemplateSourceDirectory (Inherited from System.Web.UI.Control)
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)
Top
See Also
Reference
C1AppViewTemplateContent Class
C1.Web.Wijmo.Controls.C1AppView Namespace
Template Property Gets or sets the content template used to display the content of the header or content
container of appview page.
Syntax
Visual Basic (Declaration)
<C1DescriptionAttribute(Key="C1AppViewTemplateContent.Template",
Description="Gets or sets the content template used to display the content of
the header or content container of appview page.")>
AppView for ASP.NET Web Forms
180
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<LayoutAttribute(LayoutType.Misc)>
<System.ComponentModel.BrowsableAttribute(False)>
<System.ComponentModel.DefaultValueAttribute()>
<System.Web.UI.PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<System.Web.UI.TemplateInstanceAttribute(TemplateInstance.Single)>
Public Property Template As System.Web.UI.ITemplate
C#
[C1Description(Key="C1AppViewTemplateContent.Template", Description="Gets or
sets the content template used to display the content of the header or
content container of appview page.")]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[Layout(LayoutType.Misc)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DefaultValue()]
[System.Web.UI.PersistenceMode(PersistenceMode.InnerProperty)]
[System.Web.UI.TemplateInstance(TemplateInstance.Single)]
public System.Web.UI.ITemplate Template {get; set;}
See Also
Reference
C1AppViewTemplateContent Class
C1AppViewTemplateContent Members
TemplateContainer Property Gets or sets the template container.
Syntax
Visual Basic (Declaration)
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria
lizationVisibility.Hidden)>
<System.ComponentModel.BrowsableAttribute(False)>
Public Property TemplateContainer As
System.Web.UI.HtmlControls.HtmlGenericControl
C#
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializat
ionVisibility.Hidden)]
AppView for ASP.NET Web Forms
181
[System.ComponentModel.Browsable(false)]
public System.Web.UI.HtmlControls.HtmlGenericControl TemplateContainer
{get; set;}
Property Value
The template container.
See Also
Reference
C1AppViewTemplateContent Class
C1AppViewTemplateContent Members