Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipebaltazar/xamarin.forms.embeddedassets
Free yourself from platform specifc assets
https://github.com/felipebaltazar/xamarin.forms.embeddedassets
asset embedded embedded-asset embedded-html embeddedresource html resource webview xamarin xamarin-forms
Last synced: about 1 month ago
JSON representation
Free yourself from platform specifc assets
- Host: GitHub
- URL: https://github.com/felipebaltazar/xamarin.forms.embeddedassets
- Owner: felipebaltazar
- License: mit
- Created: 2021-08-27T21:50:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-12T23:07:09.000Z (about 3 years ago)
- Last Synced: 2025-01-04T00:42:30.252Z (about 1 month ago)
- Topics: asset, embedded, embedded-asset, embedded-html, embeddedresource, html, resource, webview, xamarin, xamarin-forms
- Language: C#
- Homepage:
- Size: 444 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Xamarin.Forms.EmbeddedAssets
Free yourself from platform specifc assets## Getting started
- Include your assets as embedded resource on your NetStandard project
- Declare all assets that you need to use
```csharp
using Xamarin.Forms.EmbeddedAssets;
using Xamarin.Forms.Xaml;[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
[assembly: ExportAsset("MyPage.html", loadAssociatedResourcesInFolder: true)] //here you can declare your assets files and if some associated files (in the same folder) are needed
```
- Now you can use the default markup extension
```xml
```
![image](https://user-images.githubusercontent.com/19656249/145725238-b290df11-3535-4def-b34e-2826257599a7.png)