Skip to content

EnableMarkup Property

Description

Allows the use of a XAML snippet to be used for the Text of panes in the Status Bar.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property EnableMarkup() As Boolean

Remarks

If set to True and a valid XAML snippet is set to the Text of panes in the Status Bar, then the Text will be displayed as rendered XAML.

Status Bar Example

If set to False, then any text in the Text, even if valid XAML, will be displayed in plain text.

Example

Dim StatusBar As StatusBar  

Set StatusBar = CommandBars.StatusBar  

StatusBar.Visible = True  

StatusBar.EnableMarkup = True  

StatusBar.AddPane 0  
StatusBar.AddPane 532  
StatusBar.AddPane ID_INDICATOR_CAPS  
StatusBar.AddPane ID_INDICATOR_NUM  
StatusBar.AddPane ID_INDICATOR_SCRL  

StatusBar.FindPane(532).Text = "Security Warning"

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.