The following is a loose description of the structure of tags
within a <wm:SlidingMenu> container. (You can also see the XSD used
for IntelliSense support for the SlidingMenu
here, however IntelliSense do not at all support the w3 recommendations
and as such, the XSD is not a sufficient description of the SlidingMenu
tag structure). Not all objects of the SlidingMenu is documentet here, the description corresponds exactly to the XML structure as you can write it in HTML view of a Web Form Page in VS.NET. All these objects and more are available code behind (C# or VB.NET or another .NET language), these extra objects are especially with respect to databinding. Databinding the SlidingMenu follow the standard model of .NET Server Control databinding very close, you can read more about it here. |
 |
SlidingMenu
AddManualGroup
DataBound
SlidingMenuStyle
GroupHeaderStyle
GroupCanvasStyle
GroupHeader
GroupCanvas
HeaderTemplate
CanvasTemplate
|
|
| |
|
|
|
| <wm:SlidingMenu ...>...</wm:SlidingMenu> |
|
id |
|
[unique string] |
|
|
|
If dragged in from the ToolBox, the id will be set
as SlidingMenu[counter], you can just change the id (remember that after
changing the id of a Control and before clicking the design tab of a Web Form
page, Controls are NOT updated in the code-behind file) |
|
runat |
|
server |
|
|
|
Well, the domain is "server", so if not dragged
from the ToolBox, you must add the runat attribute yourself. |
|
style |
|
[position, z-index, top, left] |
|
|
|
It is possible to set a range of values using the
style attribute, however it is recommended that you set only the position,
z-index, top and left and otherwise use the styles exposed by the
SlidingMenuStyle class. |
|
SlidingMenuStyle |
|
0,1 |
|
|
|
Even if it is possible not to set the
SlidingMenuStyle, you will probably allways do it. |
|
GroupHeaderStyle |
|
0,1 |
|
|
|
Define default styles for all GroupHeader. If a
style is not specified for a specific GroupHeader, the SlidingMenu will
search for that style here and if not found, take the SlidingMenu default
value for that style |
|
GroupCanvasStyle |
|
0,1 |
|
|
|
Define default styles for all GroupCanvas. If a
style is not specified for a specific GroupCanvas, the SlidingMenu will
search for that style here and if not found, take the SlidingMenu default
value of that style |
|
AddManualGroup |
|
0,* |
|
|
|
|
|
DataBound |
|
0,1 |
|
|
|
|
|
|
|
| <AddManualGroup>...</AddManualGroup> |
|
<AddManualGroup> does not have any attributes |
|
GroupHeaderStyle |
|
0,1 |
|
|
|
Defines styles for the GroupHeader only in this ManualGroup. Styles defined here will override styles declared in the top-level GroupHeaderStyle. |
|
GroupCanvasStyle |
|
0,1 |
|
|
|
Same logic as for GroupHeaderStyle |
|
GroupHeader |
|
1 |
|
|
|
Can contain any html markup, ASP.Net Server
Controls and new SlidingMenues |
|
GroupCanvas |
|
1 |
|
|
|
Can contain any html markup, ASP.Net Server
Controls and new SlidingMenues |
|
|
|
| <DataBound>...</DataBound> |
|
<DataBound> does not have any attributes |
|
HeaderTemplate |
|
1 |
|
|
|
Can contain any html markup, ASP.Net Server
Controls and new SlidingMenues. The template will be instantiatet for each item in the data source
and for each of these template instantiations all html, whitespaces and ASP.Net
Server Controls within the template will be instantiated as new Control's and
added to the respective template objects Controls collections (standard .NET template model). |
|
CanvasTemplate |
|
1 |
|
|
|
Like the HeaderTemplate |
|
|
|
| <SlidingMenuStyle.../> |
|
RememberOpenGroup |
|
[true | false] |
|
true |
|
In case of a postback somewhere on the page, the
SlidingMenu will remember which Group was open, if this property is true |
|
SlideDelay |
|
[nonnegative integer] |
|
5 |
|
If set to 0 the Groups will not slide - but open
and close instantly - otherwise the Groups will jump a number of pixels (set by
SlideSmootheness) in intervals specified by this property |
|
SlideSmootheness |
|
[nonnegative integer] |
|
10 |
|
If SlideDelay="5" and SlideSmoothenes="10", then
pressing a GroupHeader, that Group will jump 10 pixels every 5 milliseconds |
|
BorderColor |
|
[color] |
|
black |
|
|
|
BorderWidth |
|
[nonnegative integer] |
|
1 |
|
|
|
BorderStyle |
|
[borderStyleEnum] |
|
solid |
|
|
|
Width |
|
[nonnegative integer] |
|
230 |
|
|
|
Height |
|
[nonnegative integer] |
|
245 |
|
|
|
ClientAPIInclude |
|
Collapsed, Expanded, ExpandedWithDevelopmentInfo, NotIncluded |
|
Collapsed |
|
This attribute gives meaning only for the FIRST SlidingMenu on a page (since the Client API is only written to the client once whatever the number of SlidingMenues). Then developing you can set the value to ExpandedWithDevelopmentInfo, thereby making the SlidingMenu emit description as comments and debug info as alerts together with the ClientAPI. Then you are finish developing, you should set this attribute to something else, eg. Collapsed (to save bytes transfered to the client). If set to NotIncluded, you can of course not use the Client API functionality. |
|
|
|
| <GroupHeaderStyle.../> |
|
OpenGroupAtStartup |
|
[true | false] |
|
false |
|
Since only one Group can be open at a time, this
property can be true only for one Group, also if set at top-level this property
is ignored (since at top-level, this style object will define properties for
all Group's). This property has lower priority than the
SlidingMenuStyle.RememberOpenGroup property |
|
Height |
|
[integer] |
|
25 |
|
(There is no width property, since the width of a
GroupHeader is residual) |
|
HorisontalAlign |
|
[HorisontalAlignEnum] |
|
center |
|
|
|
VerticalAlign |
|
[VerticalAlignEnum] |
|
middle |
|
|
|
BackgroundColor |
|
[color] |
|
|
|
Default value changed at version2.0 from white to nothing, therefore if not set and BackgroundImage not set, then the GroupHeader will be transparent. |
|
BackgroundImage |
|
[url] |
|
|
|
Introduced at version2.0. Cannot be set if BackgroundColor is set. |
|
BorderColor |
|
[color] |
|
black |
|
|
|
BorderWidth |
|
[integer] |
|
1 |
|
|
|
BorderStyle |
|
[borderStyleEnum] |
|
solid |
|
|
|
OnMouseOver |
|
[JavaScript] |
|
|
|
Introduced at version2.0. Can be set on top-level so that all GroupHeaders default delegate the event to the same JavaScript, but can also be set on Group-level for one or more GroupHeaders to delegate the event for these GroupHeaders to some other JavaScript. |
|
OnMouseOut |
|
[JavaScript] |
|
|
|
Introduced at version2.0. Same as for OnMouseOver. |
|
OnClickOverride |
|
[JavaScript] |
|
wm_3_StartSlide(this.id) |
|
Introduced at version2.0. If you delegate the OnClick event, you will disable the normal function of the SlidingMenu to open a Group then the mouse is clicked on a GroupHeader. This can be a purpose of itself if you don't want people to be able to slide the SlidingMenu, but if you just want to add some of you own code to the OnClick event, you can call the wm_3_StartSlide(groupHeaderId) from within your OnClickOverride eventhandler. |
|
|
|
| <GroupCanvasStyle.../> |
|
BackgroundColor |
|
[color] |
|
|
|
Default value changed at version 2.0 from white to nothing, therefore if not set and also BackgroundImage not set, then the GroupCanvas will be transparent. |
|
BackgroundImage |
|
[url] |
|
|
|
Introduced at version2.0.
Cannot be set, if BackgroundColor is set. BackgroundImage can
cause the mouse to flicker in the browser while the background
image is resizing, therefore it can be a good idea instead to have a foreground image if that is possible. |
|
HorisontalScrollbar |
|
[overflowEnum] |
|
hidden |
|
Introduced at version2.0 mostly to be able to accomodate to auto slide DataSets. It is also relevant to change the value from hidden to auto if you are making an image slideshow. (Also horisontal scroll will of be of more normal interest then this product become potent of horisontal slide out there in the future). |
|
VerticalScrollbar |
|
[overflowEnum] |
|
auto |
|
Introduced at version2.0. Version 1.0 had vertical scroll, but it could not be changed from auto |
|
Scrollbar3dlightColor |
|
[color] |
|
[browser default] |
|
|
|
ScrollbarArrowColor |
|
[color] |
|
[browser default] |
|
|
|
ScrollbarBaseColor |
|
[color] |
|
[browser default] |
|
|
|
ScrollbarDarkshadowColor |
|
[color] |
|
[browser default] |
|
|
|
ScrollbarFaceColor |
|
[color] |
|
[browser default] |
|
|
|
ScrollbarHighlightColor |
|
[color] |
|
[browser default] |
|
|
|
ScrollbarShadowColor |
|
[color] |
|
[browser default] |
|
|
|
ScrollbarTrackColor |
|
[color] |
|
[browser default] |
|
|
|