Back to Uno

Here is a cheat sheet:

src/SamplesApp/UnoIslands.Shared/Assets/SharedAssets.md

6.6-release-branch-cut908 B
Original Source

See the documentation about assets here: https://platform.uno/docs/articles/features/working-with-assets.html

Here is a cheat sheet:

  1. Add the image file to the Assets directory of a shared project.
  2. Set the build action to Content.
  3. (Recommended) Provide an asset for various scales/dpi

Examples

\Assets\Images\logo.scale-100.png
\Assets\Images\logo.scale-200.png
\Assets\Images\logo.scale-400.png

\Assets\Images\scale-100\logo.png
\Assets\Images\scale-200\logo.png
\Assets\Images\scale-400\logo.png

Table of scales

ScaleWinUIiOSAndroid
100scale-100@1xmdpi
125scale-125N/AN/A
150scale-150N/Ahdpi
200scale-200@2xxhdpi
300scale-300@3xxxhdpi
400scale-400N/Axxxhdpi