A converter to return the appropriate ImageSource based on the LayoutType for the current item.
Definition
Namespace:Telerik.Windows.Controls.FileDialogs
Assembly:Telerik.Windows.Controls.FileDialogs.dll
Syntax:
public class LayoutTypeToIconConverter : IValueConverter
Inheritance: objectLayoutTypeToIconConverter
Implements:
Constructors
public LayoutTypeToIconConverter()
Properties
DetailsImageSource
ImageSource
Gets or sets the ImageSource for LayoutType.Details.
public ImageSource DetailsImageSource { get; set; }
ExtraLargeIconImageSource
ImageSource
Gets or sets the ImageSource for LayoutType.ExtraLargeIcons.
public ImageSource ExtraLargeIconImageSource { get; set; }
LargeIconImageSource
ImageSource
Gets or sets the ImageSource for LayoutType.ExtraLargeIcons.
public ImageSource LargeIconImageSource { get; set; }
ListImageSource
ImageSource
Gets or sets the ImageSource for LayoutType.List.
public ImageSource ListImageSource { get; set; }
MediumIconImageSource
ImageSource
Gets or sets the ImageSource for LayoutType.ExtraLargeIcons.
public ImageSource MediumIconImageSource { get; set; }
SmallIconImageSource
ImageSource
Gets or sets the ImageSource for LayoutType.SmallIcons.
public ImageSource SmallIconImageSource { get; set; }
TilesImageSource
ImageSource
Gets or sets the ImageSource for LayoutType.Tiles.
public ImageSource TilesImageSource { get; set; }
Methods
Convert method to return the IconSource for the LayoutType.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
LayoutType.
targetTypeTypeparameterobjectcultureCultureInfoReturns:IconSource.
Convert back method. Returns the value.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)