Rev | Line | |
---|
[11904] | 1 | using System; |
---|
| 2 | using System.Collections.Generic; |
---|
| 3 | using System.Linq; |
---|
| 4 | using System.Text; |
---|
| 5 | using System.Globalization; |
---|
| 6 | using System.Windows.Media.Imaging; |
---|
| 7 | using System.Windows.Controls; |
---|
| 8 | using Com.Piwigo.Wpf.DTO; |
---|
| 9 | using System.IO; |
---|
| 10 | using System.Threading; |
---|
| 11 | using System.Windows.Threading; |
---|
| 12 | using System.Windows.Data; |
---|
| 13 | using Com.Piwigo.Wpf.Service; |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | namespace Com.Piwigo.Wpf.Helper |
---|
| 17 | { |
---|
| 18 | [ValueConversion(typeof(PwgImageWPF), typeof(String))] |
---|
| 19 | public class ImageUrlCachedConverter : IValueConverter |
---|
| 20 | { |
---|
| 21 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
---|
| 22 | { |
---|
[11922] | 23 | String src = string.Empty; |
---|
[11904] | 24 | if (value == null) return null; |
---|
| 25 | PwgImageWPF someObj = value as PwgImageWPF; |
---|
| 26 | |
---|
[11922] | 27 | //src = ImageCacheManager.Instance.GetImageFilename(someObj); |
---|
[11904] | 28 | |
---|
| 29 | return src; |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) |
---|
| 33 | { |
---|
| 34 | throw new NotImplementedException(); |
---|
| 35 | } |
---|
| 36 | } |
---|
| 37 | } |
---|
| 38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.