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
  4. ToolStrip

ToolStripLabel

Description

This component represents a non-interactive label within a ToolStrip in Blazor using the Gap.Blazor.ToolStripLabel model. It is rendered inside a Telerik ToolBarTemplateItem and supports tooltip display and optional click interaction.

Usage

<WMStyleBase model=@toolStripLabel></WMStyleBase>

<ToolBarTemplateItem>
    <label class="@(toolStripLabel.GetStringClasses() + " " + toolStripLabel.GetToolTipClass())"
           title="@toolStripLabel.GetToolTipText()"
           onclick="@toolStripItemClick">
        @toolStripLabel.Text
    </label>
</ToolBarTemplateItem>

<style>
    .@model.GetComponentClass() {
        position: relative;
    }
</style>

Properties

  • toolStripLabel: Instance of the Gap.Blazor.ToolStripLabel model.

  • Text: The label text displayed in the toolbar.

  • ToolTipText: Tooltip shown when hovering over the label.

  • CSS Classes: Dynamically generated using GetStringClasses() and GetToolTipClass().

Methods

  • toolStripItemClick(MouseEventArgs): Invokes the PerformClick() method on the model when the label is clicked. This allows the label to optionally behave like a button if needed.

Dynamic Rendering

  • ToolBarTemplateItem: Used to render the label inside a Telerik ToolBar.

  • Label Element: Displays the text and handles optional click events.

  • Tooltip: Displayed via the title attribute.

Styles

  • Position

Events

  • Click: Triggered when the label is clicked, if PerformClick() is implemented in the model.

PreviousToolStripButtonNextToolStripSeparator

Last updated 2 days ago