https://github.com/dkhmelenko/cacheimage
Image control with caching for UWP and WP8 (Silverlight)
https://github.com/dkhmelenko/cacheimage
Last synced: 1 day ago
JSON representation
Image control with caching for UWP and WP8 (Silverlight)
- Host: GitHub
- URL: https://github.com/dkhmelenko/cacheimage
- Owner: dkhmelenko
- License: apache-2.0
- Created: 2015-06-19T21:02:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-30T13:03:14.000Z (over 8 years ago)
- Last Synced: 2025-01-10T03:28:11.756Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 145 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Project description
[](https://ci.appveyor.com/project/brave-warrior/cacheimage)
[](https://www.nuget.org/packages/CacheImage-UWP/)
CacheImage (Silverlight) for WP8/WP8.1
[](https://www.nuget.org/packages/CacheImage) (*deprecated*)
CacheImage is a lightweight library, which introduces new control - CacheImage for Windows Phone 8/8.1 (Silverlight) and Universal Windows Platform (UWP Windows 10). This control can be used for caching images on disk. As soon as image loaded from the web, local copy will be used. The file name of the local copy contains a hash of the web link. Also, this library provides an ability to set up placeholder, while the image is downloading. The idea of the control came from [here](http://chandermani.blogspot.de/2012/05/caching-images-downloaded-from-web-on.html).
# Usage
```xaml
xmlns:lib="using:CacheImage"
...
```
Control contains the following own properties:
- `Url` - link to the image in the network starting with http or https
- `Placeholder` - path to the local image for using as a placeholder
- `DecodePixelHeight` - appropriate property of BitmapImage of the main image
- `DecodePixelWidth` - appropriate property of BitmapImage of the main image
- `DecodePixelHeightPlaceholder` - property DecodePixelHeight of BitmapImage of the placeholder image
- `DecodePixelWidthPlaceholder` - property DecodePixelWidth of BitmapImage of the placeholder image
- `Stretch` - appropriate property of BitmapImage of the main image
- `StretchPlaceholder` - property Stretch of BitmapImage of the placeholder image
# Contribution
If you have any suggestions or ideas, feel free to create pull request.
# Warranties
Currently the version of the library for UWP (Windows 10) is the main implementation.
Library for Windows Phone 8/8.1 (Silverlight) is now *deprecated* and is not recommended for using because of the performance issues.
In case you found any problem, please submit an issue or feel free to create a pull request.
# License
[Apache Licence 2.0](http://www.apache.org/licenses/LICENSE-2.0)
Copyright 2015 Dmytro Khmelenko
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.