HighlightTextBlock class

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 16:30

Description

Highlights the HighlightText property according to the full text search words. Use it in the fields that are searched on in the full-text queries.

Namespace

xmlns:l="http://www.teradp.com/schemas/GN4/1/Shell/Presentation"

Members

StyleSets the style. Can be ShellInfoDescriptionStyle or ShellInfoValueStyle.
HighlightTextText to be displayed with highlights.
GridPosition.
MarginMargin.
FontStyleFont style, e.g. Italic, Bold.
FontSizeGets or sets the font size for the content of the element, Defaults to px, accepts also in, cm, pt.

Example

<l:HighlightTextBlock 

         Style="{DynamicResource ShellInfoDescriptionStyle}" 

         HighlightText="{Binding Path=[event.description]}" 

         Grid.Row="2" 

         Grid.ColumnSpan="2"

/>

 

<l:HighlightTextBlock 

         Style="{DynamicResource ShellInfoValueStyle}" 

         Grid.Row="0" 

         Grid.Column="1" 

         HighlightText="{Binding Path=[event.creationDate]}"

/>

 

<l:HighlightTextBlock 

         Style="{DynamicResource ShellInfoValueStyle}" 

         HighlightText="{Binding Path=[contact.busCountryCode]}" 

         Grid.Row="14" 

         Grid.Column="0" 

         Grid.ColumnSpan="2" 

         Margin="0,6,0,6" 

         FontStyle="Italic" 

         FontSize="12"/>