WebMap for Blazor
  • WebMap Blazor
    • Modernization
      • Overview
      • Modernization Challenges
      • Our solution
      • What is Blazor?
      • How does Blazor Work?
      • Windows Forms in Blazor
      • Deployment
      • Interfacing with hardware devices
    • Research for Blazor
      • Handling Reference Parameters in Async Methods with Ref<T>
      • Alternatives to Async Properties in C#
      • Issue with using "MessageBox.Show" in Blazor
      • File Upload Functionality
      • Async/Await Feature for WebMap Blazor
    • Assessment Tool
    • Conversion Tool
      • Getting Started
      • Modals and Dialogs
      • Static Service Management
      • ImageListStreamer
      • Solution and Project Structure
        • Solution Generator
    • DCP: Desktop Compatibility Library
      • API Documentation
        • Blazor DCP: Gap.Blazor.Application Class Reference
      • Components Information
        • Button Component
        • Application Data Component
        • GroupBox Component
        • Label Component
        • CheckBox
        • CheckedListBox
        • ComboBox
        • DateTimePicker
        • Form
        • ListBox
        • ListView
          • WMListViewDetails
        • Mdi Container Component
        • MenuStrip
        • MessageBox
        • MonthCalendar
        • Panel
        • PictureBox
        • ProgressBar
        • RadioButton
        • StatusStrip
        • ToolStripStatusLabel
        • TabControl
        • TabPage
        • TextBox
        • ToolStrip
          • ToolStripButton
          • ToolStripLabel
          • ToolStripSeparator
        • ToolTip
    • Post Conversion
      • How To?
        • Create a new WebMap Window?
        • Create a new WebMap Component?
        • Create a native Blazor Window in a WebMap app?
        • Create a native Blazor Component in a WebMap Window?
        • Change the default WebMap visual layout?
    • WebMap: Angular vs Blazor
      • Footprint
      • Binaries size
      • Chatiness
      • Performance
      • Extensibility
      • Maintainability
      • Debugging
      • Project Structure
    • WebMap for Blazor Release Notes
      • Beta version
    • FAQ
    • Errors and Troubleshooting
    • License
Powered by GitBook
On this page
  • Description
  • Usage
  • Properties
  • Methods
  • Dynamic Rendering
  • Styles
  • Events
Export as PDF
  1. WebMap Blazor
  2. DCP: Desktop Compatibility Library
  3. Components Information

TabPage

Description

This component represents a single tab page within a TabControl in Blazor using the Gap.Blazor.TabPage model. It is rendered inside a Telerik TabStripTab and supports dynamic visibility, styling, and content layout. The component integrates with VB6 migration logic to support conditional rendering of tab pages.

Usage

<WMStyleBase model="this.model"></WMStyleBase>

<TabStripTab Title="@tabPage.Text" Visible="this.GetVisibility()">
    <div class="tabPage @this.tabPage.GetStringClasses()"
         @ref="elementRef"
         @onmouseup="MouseUpHandler"
         @onmousemove="MouseMoveHandler">
        @ChildContent
    </div>

    <style>
        .tabPage {
            top: 3px !important;
            bottom: 3px !important;
            left: 3px !important;
            right: 3px !important;
            width: auto !important;
            height: auto !important;
        }
    </style>
</TabStripTab>

Properties

  • tabPage: Instance of the Gap.Blazor.TabPage model.

  • Text: The title of the tab, displayed in the tab header.

  • ChildContent: The content rendered inside the tab page.

  • Parent: Reference to the parent TabControl.

Methods

  • OnInitialized(): Subscribes to the NotifyModelChanged event to trigger UI updates.

  • GetVisibility(): Determines whether the tab page should be rendered based on the parent TabControl's visibility logic. Supports VB6-style SetTabVisible behavior via VisibleAffected() and GetTabVisible().

Dynamic Rendering

  • TabStripTab: Renders the tab page within a Telerik TabStrip.

  • Visibility: Controlled by GetVisibility() to support conditional tab rendering.

  • CSS Styling: Applies padding and layout adjustments to the tab content area.

Styles

.tabPage {
    top: 3px !important;
    bottom: 3px !important;
    left: 3px !important;
    right: 3px !important;
    width: auto !important;
    height: auto !important;
}

Events

  • NotifyModelChanged: Triggers UI updates when the model changes.

PreviousTabControlNextTextBox

Last updated 2 days ago