New to Telerik UI for WPF? Start a free 30-day trial

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:

C#
public class LayoutTypeToIconConverter : IValueConverter

Inheritance: objectLayoutTypeToIconConverter

Implements: IValueConverter

Constructors

C#
public LayoutTypeToIconConverter()

Properties

Gets or sets the ImageSource for LayoutType.Details.

C#
public ImageSource DetailsImageSource { get; set; }

Gets or sets the ImageSource for LayoutType.ExtraLargeIcons.

C#
public ImageSource ExtraLargeIconImageSource { get; set; }

Gets or sets the ImageSource for LayoutType.ExtraLargeIcons.

C#
public ImageSource LargeIconImageSource { get; set; }

ListImageSource

ImageSource

Gets or sets the ImageSource for LayoutType.List.

C#
public ImageSource ListImageSource { get; set; }

Gets or sets the ImageSource for LayoutType.ExtraLargeIcons.

C#
public ImageSource MediumIconImageSource { get; set; }

Gets or sets the ImageSource for LayoutType.SmallIcons.

C#
public ImageSource SmallIconImageSource { get; set; }

TilesImageSource

ImageSource

Gets or sets the ImageSource for LayoutType.Tiles.

C#
public ImageSource TilesImageSource { get; set; }

Methods

Convert method to return the IconSource for the LayoutType.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

LayoutType.

targetTypeTypeparameterobjectcultureCultureInfo
Returns:

object

IconSource.

Convert back method. Returns the value.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobjecttargetTypeTypeparameterobjectcultureCultureInfoReturns:

object