Skip to content

Windows 8 and Windows Phone 8 class to bind string with HTML bold tags in XAML application.

License

Notifications You must be signed in to change notification settings

algolia/HTMLBinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This repository allow to bind a string with HTML bold tag (<b> </b>) in a XAML TextBlock control for Windows 8 (W8HTMLBinding.cs) and Windows Phone 8 (WP8HTMLBinding.cs).

You can customize the way highlighted part of Text property are rendered with HighlightedBrush property.

Example

Usage is very easy, you have just to add a namespace in the opening tag of your xaml file:

xmlns:algolia="using:AlgoliaSearch"

And then to bind a string that contains HTML bold tags:

<TextBlock algolia:HTMLBinding.Text="{Binding StringWithBoldTags}"
              algolia:HTMLBinding.HighlightBrush="#52aed9"
              Style="{StaticResource SubheaderTextStyle}"
              TextWrapping="NoWrap"/>

About

Windows 8 and Windows Phone 8 class to bind string with HTML bold tags in XAML application.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages