Describe the solution you'd like
Usage:
Create files:
\Assets\Images\logo.scale-100.png
\Assets\Images\logo.scale-200.png
\Assets\Images\logo.scale-400.png
Reference file in the XAML (or with AssetLoader):
<Image Source="\Assets\Images\logo.png"/>
Asset loader should automatically detect current scaling and choose the correct file.
At minimum should be supported:
- scale
- theme (dark, light, custom)
- layout direction (ltr, rtl)
Optional:
- language, should it rely on .NET CurrentCulture?
- device type
Describe alternatives you've considered
OnPlatform markup extension will be part of 11.0. Similarly, developers can define their own custom markup extensions.
Media Queries also are planned to solve similar problem.
Gladly, asset loader extension, won't conflict with these other features, and can be used together.
Describe the solution you'd like
Usage:
Create files:
Reference file in the XAML (or with AssetLoader):
Asset loader should automatically detect current scaling and choose the correct file.
At minimum should be supported:
Optional:
Describe alternatives you've considered
OnPlatform markup extension will be part of 11.0. Similarly, developers can define their own custom markup extensions.
Media Queries also are planned to solve similar problem.
Gladly, asset loader extension, won't conflict with these other features, and can be used together.