Skip to content

Utils.IconSizeConverter

JaykeBird edited this page Feb 21, 2023 · 1 revision

Back to home | Back to Reference | View raw text

IconSizeConverter class

Description

Forces the selection of a given size from the ICO file/resource. If the exact size does not exists, selects the closest smaller if possible otherwise closest higher resolution. If no parameter is given, the smallest frame available will be selected

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SolidShineUi.Utils
  SolidShineUi.Utils.IconSizeConverter[[IconSizeConverter]]
  end
  subgraph System.Windows.Data
System.Windows.Data.IValueConverter[[IValueConverter]]
  end
System.Windows.Data.IValueConverter --> SolidShineUi.Utils.IconSizeConverter
Loading

Members

Methods

Public methods

Returns Name
object Convert(object value, Type targetType, object parameter, CultureInfo culture)
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Not implemented, throws a NotImplementedException .

Details

Summary

Forces the selection of a given size from the ICO file/resource. If the exact size does not exists, selects the closest smaller if possible otherwise closest higher resolution. If no parameter is given, the smallest frame available will be selected

Inheritance

  • IValueConverter

Constructors

IconSizeConverter

public IconSizeConverter()

Methods

Convert

public virtual object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Arguments
Type Name Description
object value
Type targetType
object parameter
CultureInfo culture

ConvertBack

public virtual object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Arguments
Type Name Description
object value
Type targetType
object parameter
CultureInfo culture
Summary

Not implemented, throws a NotImplementedException .

Generated with ModularDoc

Clone this wiki locally