Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Presentation.ValueConverters.Chained Class Reference

This converter can chain up to MaxConverterCount IValueConverter to convert a value. The first converter takes the value parameter of the Chained value converter itself, and then each converter takes the previous converter output as input value. The parameter and target type of each converter can also be specified. IValueConverter.ConvertBack is supported and converters are invoked backward. More...

Inheritance diagram for SiliconStudio.Presentation.ValueConverters.Chained:
MarkupExtension IValueConverter

Public Member Functions

 Chained ()
 Initializes a new instance of the Chained class. More...
 
 Chained (IValueConverter converter)
 Initializes a new instance of the Chained class with the given instances of IValueConverter. More...
 
 Chained (IValueConverter converter1, IValueConverter converter2)
 Initializes a new instance of the Chained class with the given instances of IValueConverter. More...
 
 Chained (IValueConverter converter1, IValueConverter converter2, IValueConverter converter3)
 Initializes a new instance of the Chained class with the given instances of IValueConverter. More...
 
 Chained (IValueConverter converter1, IValueConverter converter2, IValueConverter converter3, IValueConverter converter4)
 Initializes a new instance of the Chained class with the given instances of IValueConverter. More...
 
 Chained (IValueConverter converter1, IValueConverter converter2, IValueConverter converter3, IValueConverter converter4, IValueConverter converter5)
 Initializes a new instance of the Chained class with the given instances of IValueConverter. More...
 
 Chained (IValueConverter converter1, IValueConverter converter2, IValueConverter converter3, IValueConverter converter4, IValueConverter converter5, IValueConverter converter6)
 Initializes a new instance of the Chained class with the given instances of IValueConverter. More...
 
 Chained (IValueConverter converter1, IValueConverter converter2, IValueConverter converter3, IValueConverter converter4, IValueConverter converter5, IValueConverter converter6, IValueConverter converter7)
 Initializes a new instance of the Chained class with the given instances of IValueConverter. More...
 
 Chained (IValueConverter converter1, IValueConverter converter2, IValueConverter converter3, IValueConverter converter4, IValueConverter converter5, IValueConverter converter6, IValueConverter converter7, IValueConverter converter8)
 Initializes a new instance of the Chained class with the given instances of IValueConverter. More...
 
override object ProvideValue (IServiceProvider serviceProvider)
 
object Convert (object value, Type targetType, object parameter, CultureInfo culture)
 
object ConvertBack (object value, Type targetType, object parameter, CultureInfo culture)
 

Public Attributes

const int MaxConverterCount = 8
 The maximum number of converters that can be chained More...
 

Properties

IValueConverter Converter1 [get, set]
 Gets or sets the first converter to chain. More...
 
IValueConverter Converter2 [get, set]
 Gets or sets the second converter to chain. More...
 
IValueConverter Converter3 [get, set]
 Gets or sets the third converter to chain. More...
 
IValueConverter Converter4 [get, set]
 Gets or sets the fourth converter to chain. More...
 
IValueConverter Converter5 [get, set]
 Gets or sets the fifth converter to chain. More...
 
IValueConverter Converter6 [get, set]
 Gets or sets the sixth converter to chain. More...
 
IValueConverter Converter7 [get, set]
 Gets or sets the seventh converter to chain. More...
 
IValueConverter Converter8 [get, set]
 Gets or sets the eighth converter to chain. More...
 
object Parameter1 [get, set]
 Gets or sets the parameter of the first converter to chain. More...
 
object Parameter2 [get, set]
 Gets or sets the parameter of the second converter to chain. More...
 
object Parameter3 [get, set]
 Gets or sets the parameter of the third converter to chain. More...
 
object Parameter4 [get, set]
 Gets or sets the parameter of the fourth converter to chain. More...
 
object Parameter5 [get, set]
 Gets or sets the parameter of the fifth converter to chain. More...
 
object Parameter6 [get, set]
 Gets or sets the parameter of the sixth converter to chain. More...
 
object Parameter7 [get, set]
 Gets or sets the parameter of the seventh converter to chain. More...
 
object Parameter8 [get, set]
 Gets or sets the parameter of the eighth converter to chain. More...
 
Type TargetType1 [get, set]
 Gets or sets the target type of the first converter to chain. More...
 
Type TargetType2 [get, set]
 Gets or sets the target type of the second converter to chain. More...
 
Type TargetType3 [get, set]
 Gets or sets the target type of the third converter to chain. More...
 
Type TargetType4 [get, set]
 Gets or sets the target type of the fourth converter to chain. More...
 
Type TargetType5 [get, set]
 Gets or sets the target type of the fifth converter to chain. More...
 
Type TargetType6 [get, set]
 Gets or sets the target type of the sixth converter to chain. More...
 
Type TargetType7 [get, set]
 Gets or sets the target type of the seventh converter to chain. More...
 
Type TargetType8 [get, set]
 Gets or sets the target type of the eighth converter to chain. More...
 

Detailed Description

This converter can chain up to MaxConverterCount IValueConverter to convert a value. The first converter takes the value parameter of the Chained value converter itself, and then each converter takes the previous converter output as input value. The parameter and target type of each converter can also be specified. IValueConverter.ConvertBack is supported and converters are invoked backward.

This converter is also a MarkupExtension, which makes it convenient to use in XAML.

Definition at line 16 of file Chained.cs.

Constructor & Destructor Documentation

SiliconStudio.Presentation.ValueConverters.Chained.Chained ( )

Initializes a new instance of the Chained class.

Definition at line 26 of file Chained.cs.

SiliconStudio.Presentation.ValueConverters.Chained.Chained ( IValueConverter  converter)

Initializes a new instance of the Chained class with the given instances of IValueConverter.

Parameters
converterThe first value converter.

Definition at line 35 of file Chained.cs.

SiliconStudio.Presentation.ValueConverters.Chained.Chained ( IValueConverter  converter1,
IValueConverter  converter2 
)

Initializes a new instance of the Chained class with the given instances of IValueConverter.

Parameters
converter1The first value converter.
converter2The second value converter.

Definition at line 45 of file Chained.cs.

SiliconStudio.Presentation.ValueConverters.Chained.Chained ( IValueConverter  converter1,
IValueConverter  converter2,
IValueConverter  converter3 
)

Initializes a new instance of the Chained class with the given instances of IValueConverter.

Parameters
converter1The first value converter.
converter2The second value converter.
converter3The third value converter.

Definition at line 56 of file Chained.cs.

SiliconStudio.Presentation.ValueConverters.Chained.Chained ( IValueConverter  converter1,
IValueConverter  converter2,
IValueConverter  converter3,
IValueConverter  converter4 
)

Initializes a new instance of the Chained class with the given instances of IValueConverter.

Parameters
converter1The first value converter.
converter2The second value converter.
converter3The third value converter.
converter4The fourth value converter.

Definition at line 68 of file Chained.cs.

SiliconStudio.Presentation.ValueConverters.Chained.Chained ( IValueConverter  converter1,
IValueConverter  converter2,
IValueConverter  converter3,
IValueConverter  converter4,
IValueConverter  converter5 
)

Initializes a new instance of the Chained class with the given instances of IValueConverter.

Parameters
converter1The first value converter.
converter2The second value converter.
converter3The third value converter.
converter4The fourth value converter.
converter5The fifth value converter.

Definition at line 81 of file Chained.cs.

SiliconStudio.Presentation.ValueConverters.Chained.Chained ( IValueConverter  converter1,
IValueConverter  converter2,
IValueConverter  converter3,
IValueConverter  converter4,
IValueConverter  converter5,
IValueConverter  converter6 
)

Initializes a new instance of the Chained class with the given instances of IValueConverter.

Parameters
converter1The first value converter.
converter2The second value converter.
converter3The third value converter.
converter4The fourth value converter.
converter5The fifth value converter.
converter6The sixth value converter.

Definition at line 96 of file Chained.cs.

SiliconStudio.Presentation.ValueConverters.Chained.Chained ( IValueConverter  converter1,
IValueConverter  converter2,
IValueConverter  converter3,
IValueConverter  converter4,
IValueConverter  converter5,
IValueConverter  converter6,
IValueConverter  converter7 
)

Initializes a new instance of the Chained class with the given instances of IValueConverter.

Parameters
converter1The first value converter.
converter2The second value converter.
converter3The third value converter.
converter4The fourth value converter.
converter5The fifth value converter.
converter6The sixth value converter.
converter7The seventh value converter.

Definition at line 112 of file Chained.cs.

SiliconStudio.Presentation.ValueConverters.Chained.Chained ( IValueConverter  converter1,
IValueConverter  converter2,
IValueConverter  converter3,
IValueConverter  converter4,
IValueConverter  converter5,
IValueConverter  converter6,
IValueConverter  converter7,
IValueConverter  converter8 
)

Initializes a new instance of the Chained class with the given instances of IValueConverter.

Parameters
converter1The first value converter.
converter2The second value converter.
converter3The third value converter.
converter4The fourth value converter.
converter5The fifth value converter.
converter6The sixth value converter.
converter7The seventh value converter.
converter8The eighth value converter.

Definition at line 129 of file Chained.cs.

Member Function Documentation

object SiliconStudio.Presentation.ValueConverters.Chained.Convert ( object  value,
Type  targetType,
object  parameter,
CultureInfo  culture 
)

Definition at line 252 of file Chained.cs.

object SiliconStudio.Presentation.ValueConverters.Chained.ConvertBack ( object  value,
Type  targetType,
object  parameter,
CultureInfo  culture 
)

Definition at line 275 of file Chained.cs.

override object SiliconStudio.Presentation.ValueConverters.Chained.ProvideValue ( IServiceProvider  serviceProvider)

Definition at line 246 of file Chained.cs.

Member Data Documentation

const int SiliconStudio.Presentation.ValueConverters.Chained.MaxConverterCount = 8

The maximum number of converters that can be chained

Definition at line 21 of file Chained.cs.

Property Documentation

IValueConverter SiliconStudio.Presentation.ValueConverters.Chained.Converter1
getset

Gets or sets the first converter to chain.

Definition at line 145 of file Chained.cs.

IValueConverter SiliconStudio.Presentation.ValueConverters.Chained.Converter2
getset

Gets or sets the second converter to chain.

Definition at line 149 of file Chained.cs.

IValueConverter SiliconStudio.Presentation.ValueConverters.Chained.Converter3
getset

Gets or sets the third converter to chain.

Definition at line 153 of file Chained.cs.

IValueConverter SiliconStudio.Presentation.ValueConverters.Chained.Converter4
getset

Gets or sets the fourth converter to chain.

Definition at line 157 of file Chained.cs.

IValueConverter SiliconStudio.Presentation.ValueConverters.Chained.Converter5
getset

Gets or sets the fifth converter to chain.

Definition at line 161 of file Chained.cs.

IValueConverter SiliconStudio.Presentation.ValueConverters.Chained.Converter6
getset

Gets or sets the sixth converter to chain.

Definition at line 165 of file Chained.cs.

IValueConverter SiliconStudio.Presentation.ValueConverters.Chained.Converter7
getset

Gets or sets the seventh converter to chain.

Definition at line 169 of file Chained.cs.

IValueConverter SiliconStudio.Presentation.ValueConverters.Chained.Converter8
getset

Gets or sets the eighth converter to chain.

Definition at line 173 of file Chained.cs.

object SiliconStudio.Presentation.ValueConverters.Chained.Parameter1
getset

Gets or sets the parameter of the first converter to chain.

Definition at line 178 of file Chained.cs.

object SiliconStudio.Presentation.ValueConverters.Chained.Parameter2
getset

Gets or sets the parameter of the second converter to chain.

Definition at line 182 of file Chained.cs.

object SiliconStudio.Presentation.ValueConverters.Chained.Parameter3
getset

Gets or sets the parameter of the third converter to chain.

Definition at line 186 of file Chained.cs.

object SiliconStudio.Presentation.ValueConverters.Chained.Parameter4
getset

Gets or sets the parameter of the fourth converter to chain.

Definition at line 190 of file Chained.cs.

object SiliconStudio.Presentation.ValueConverters.Chained.Parameter5
getset

Gets or sets the parameter of the fifth converter to chain.

Definition at line 194 of file Chained.cs.

object SiliconStudio.Presentation.ValueConverters.Chained.Parameter6
getset

Gets or sets the parameter of the sixth converter to chain.

Definition at line 198 of file Chained.cs.

object SiliconStudio.Presentation.ValueConverters.Chained.Parameter7
getset

Gets or sets the parameter of the seventh converter to chain.

Definition at line 202 of file Chained.cs.

object SiliconStudio.Presentation.ValueConverters.Chained.Parameter8
getset

Gets or sets the parameter of the eighth converter to chain.

Definition at line 206 of file Chained.cs.

Type SiliconStudio.Presentation.ValueConverters.Chained.TargetType1
getset

Gets or sets the target type of the first converter to chain.

Definition at line 211 of file Chained.cs.

Type SiliconStudio.Presentation.ValueConverters.Chained.TargetType2
getset

Gets or sets the target type of the second converter to chain.

Definition at line 215 of file Chained.cs.

Type SiliconStudio.Presentation.ValueConverters.Chained.TargetType3
getset

Gets or sets the target type of the third converter to chain.

Definition at line 219 of file Chained.cs.

Type SiliconStudio.Presentation.ValueConverters.Chained.TargetType4
getset

Gets or sets the target type of the fourth converter to chain.

Definition at line 223 of file Chained.cs.

Type SiliconStudio.Presentation.ValueConverters.Chained.TargetType5
getset

Gets or sets the target type of the fifth converter to chain.

Definition at line 227 of file Chained.cs.

Type SiliconStudio.Presentation.ValueConverters.Chained.TargetType6
getset

Gets or sets the target type of the sixth converter to chain.

Definition at line 231 of file Chained.cs.

Type SiliconStudio.Presentation.ValueConverters.Chained.TargetType7
getset

Gets or sets the target type of the seventh converter to chain.

Definition at line 235 of file Chained.cs.

Type SiliconStudio.Presentation.ValueConverters.Chained.TargetType8
getset

Gets or sets the target type of the eighth converter to chain.

Definition at line 239 of file Chained.cs.


The documentation for this class was generated from the following file: