Intersoft WebDesktop Documentation
Using CaptionMode Types
See Also Send Feedback
Intersoft WebDesktop > WebPaneManager > Tutorials > Using CaptionMode Types

Glossary Item Box

Objectives

You can customize the caption appearance of a WebPane in WebPaneManager. All you need to do is set the WebPane CaptionDisplayMode property. The value of the property is an enumeration of type AllowCollapse which values are

C# Copy Code
/// <summary>
/// Enumerations for caption or footer display mode.
/// </summary>
public enum DisplayMode
{
Default = 0,
/// <summary>
/// Only Text will be rendered.
/// </summary>
Text = 1,
/// <summary>
/// Text and Image will be rendered.
/// </summary>
TextAndImage = 2,
/// <summary>
/// Only Image will be rendered.
/// </summary>
Image = 3,
/// <summary>
/// The container should render the content specified in the Template, ignoring built-in rendering mechanism.
/// </summary>
UseTemplate = 4
}

The last enumeration value enables you to write your own implementation how the Caption should be rendered. You can write the implementation inside the <HeaderTemplate> tag under the Source View in the Design Surface.

  1. You can access that property during DesignTime either by right clicking the WebPaneManager and choosing WebPane Designer or WebPane Advanced Designer.
  2. In the snapshot below, the Pane Content CaptionDisplayMode property is set to Image. It makes the image of the Pane will appear at Run-time. Therefore, no Header Text will be visible.

See Also

Related Tutorials
{Creating Simple Layout}

© 2012 Intersoft Solutions Corp. All Rights Reserved.