EnableMarkup Property
Description
Allows the use of a XAML snippet to be used for the Caption of this control.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property EnableMarkup() As Boolean
Return Type
True if Markup is enabled, False otherwise.
Remarks
If set to True and a valid XAML snippet is set to the Caption of this control, then the Caption will be displayed as rendered XAML.
If set to False, then any text in the Caption, even if valid XAML, will get displayed in plain text.
Example
Below is a sample that shows how to mix an image with text on a button using Markup. Note that the image is loaded from an image file. To reference an image stored in the ImageManager control, simply set "Source" to the ID of the image to load:
' VB 6 code snippet
BackStageButton.EnableMarkup = True
BackStageButton.Caption = "Need " & _
"" & _
"with " & _
"Markup?"
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.