You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: The first time you will need to import the AsyncImageLoader namespace to your xaml file. Usually your IDE should [suggest it automatically](https://user-images.githubusercontent.com/29896317/140953397-00028365-5b93-4e6c-b470-094a555870c8.png). The root element in the file will be [like this](https://github.com/AvaloniaUtils/AsyncImageLoader.Avalonia/blob/master/AsyncImageLoader.Avalonia.Demo/Views/MainWindow.axaml#L6):
Also you can use `ImageLoader.IsLoading` readonly attached property that indicates whether the load is in progress or not.
40
+
Also you can use `ImageLoader.IsLoading` readonly attached property that indicates whether the load is in progress or not.
31
41
32
-
Note: The first time you will need to import the AsyncImageLoader namespace to your xaml file. Usually your IDE should [suggest it automatically](https://user-images.githubusercontent.com/29896317/140953397-00028365-5b93-4e6c-b470-094a555870c8.png). The root element in the file will be [like this](https://github.com/AvaloniaUtils/AsyncImageLoader.Avalonia/blob/master/AsyncImageLoader.Avalonia.Demo/Views/MainWindow.axaml#L6):
42
+
AsyncImageLoader **support**`resm:` and `avares:` links.
43
+
And does **not** support relative referenced assets such as `Source="icon.png"` or `Source="/icon.png"`. Use [AdvancedImage control](#advancedimage-control).
44
+
45
+
### AdvancedImage control
46
+
This control provides all capabilities of ImageLoader attached property and **support** relative referenced assets such as `Source="icon.png"` or `Source="/icon.png"`.
47
+
Before you go, add following style to you `App.xaml` file and `Application.Styles` section:
AsyncImageLoader **support**`resm:` and `avares:` links.
42
-
And does **not** support relative referenced assets such as `Source="icon.png"` or `Source="/icon.png"`. Here's an [issue](https://github.com/AvaloniaUtils/AsyncImageLoader.Avalonia/issues/2) that describes why.
43
-
Assets and resources in Avalonia described [here](https://docs.avaloniaui.net/docs/getting-started/assets).
51
+
And you can use `AdvancedImage` as any other control:
This control allows to specify a custom IAsyncImageLoader for particular control.
56
+
Also, this control has loading indicator support out of the box.
44
57
45
58
## Loaders
46
59
ImageLoader will use instance of [IImageLoader](https://github.com/AvaloniaUtils/AsyncImageLoader.Avalonia/blob/master/AsyncImageLoader.Avalonia/IAsyncImageLoader.cs) for serving your requests.
0 commit comments