https://github.com/edsnider/htmllabel
HTML Label for Xamarin.Forms
https://github.com/edsnider/htmllabel
android html ios nuget plugin xamarin xamarin-forms xamarin-forms-control xamarin-plugin
Last synced: 26 days ago
JSON representation
HTML Label for Xamarin.Forms
- Host: GitHub
- URL: https://github.com/edsnider/htmllabel
- Owner: edsnider
- License: mit
- Created: 2018-10-12T20:32:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-10T15:15:43.000Z (over 6 years ago)
- Last Synced: 2024-11-13T22:34:57.330Z (6 months ago)
- Topics: android, html, ios, nuget, plugin, xamarin, xamarin-forms, xamarin-forms-control, xamarin-plugin
- Language: C#
- Homepage:
- Size: 34.2 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xamarin-forms - htmllabel ★8
README
# HTML Label for Xamarin.Forms apps
[](https://dev.azure.com/edsnider/htmllabel/_build/latest?definitionId=4)
[](https://www.myget.org/feed/edsnider/package/nuget/XamForms.HtmlLabel)
[](https://www.nuget.org/packages/XamForms.HtmlLabel)Easily render HTML in your Xamarin.Forms apps.
**Note:** This control is intended for basic text formatting (e.g., bold, italic, hyperlinks, etc.). It is not intended for rendering complex HTML or webpages - use the `WebView` for that.
## Dependency
- Xamarin.Forms >= 3.0.0.446417
## Supported platforms
HtmlLabel is supported on the following Xamarin.Forms platforms:
- iOS
- Android## Usage
You use `HtmlLabel` just like any other control on a Xamarin.Forms `ContentPage`.
The value of the `Text` property will be rendered as HTML using the platform's native text formatting approach.
### XAML example
```xaml
```
When using this control in XAML it is recommended you use [XAMLC](https://docs.microsoft.com/en-us/xamarin/xamarin-forms/xaml/xamlc).
### C# example
```csharp
var signInLinks = new HtmlLabel
{
Text = @"Upon sign in you agree to our Terms of Service and Privacy Policy."
};
```## License
Licensed under MIT. See [License file](https://github.com/edsnider/htmllabel/blob/master/LICENSE)