![]() |
Paradox Game Engine
v1.0.0 beta06
|
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...
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... | |
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.
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.
converter | The 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.
converter1 | The first value converter. |
converter2 | The 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.
converter1 | The first value converter. |
converter2 | The second value converter. |
converter3 | The 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.
converter1 | The first value converter. |
converter2 | The second value converter. |
converter3 | The third value converter. |
converter4 | The 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.
converter1 | The first value converter. |
converter2 | The second value converter. |
converter3 | The third value converter. |
converter4 | The fourth value converter. |
converter5 | The 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.
converter1 | The first value converter. |
converter2 | The second value converter. |
converter3 | The third value converter. |
converter4 | The fourth value converter. |
converter5 | The fifth value converter. |
converter6 | The 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.
converter1 | The first value converter. |
converter2 | The second value converter. |
converter3 | The third value converter. |
converter4 | The fourth value converter. |
converter5 | The fifth value converter. |
converter6 | The sixth value converter. |
converter7 | The 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.
converter1 | The first value converter. |
converter2 | The second value converter. |
converter3 | The third value converter. |
converter4 | The fourth value converter. |
converter5 | The fifth value converter. |
converter6 | The sixth value converter. |
converter7 | The seventh value converter. |
converter8 | The eighth value converter. |
Definition at line 129 of file Chained.cs.
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.
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.
|
getset |
Gets or sets the first converter to chain.
Definition at line 145 of file Chained.cs.
|
getset |
Gets or sets the second converter to chain.
Definition at line 149 of file Chained.cs.
|
getset |
Gets or sets the third converter to chain.
Definition at line 153 of file Chained.cs.
|
getset |
Gets or sets the fourth converter to chain.
Definition at line 157 of file Chained.cs.
|
getset |
Gets or sets the fifth converter to chain.
Definition at line 161 of file Chained.cs.
|
getset |
Gets or sets the sixth converter to chain.
Definition at line 165 of file Chained.cs.
|
getset |
Gets or sets the seventh converter to chain.
Definition at line 169 of file Chained.cs.
|
getset |
Gets or sets the eighth converter to chain.
Definition at line 173 of file Chained.cs.
|
getset |
Gets or sets the parameter of the first converter to chain.
Definition at line 178 of file Chained.cs.
|
getset |
Gets or sets the parameter of the second converter to chain.
Definition at line 182 of file Chained.cs.
|
getset |
Gets or sets the parameter of the third converter to chain.
Definition at line 186 of file Chained.cs.
|
getset |
Gets or sets the parameter of the fourth converter to chain.
Definition at line 190 of file Chained.cs.
|
getset |
Gets or sets the parameter of the fifth converter to chain.
Definition at line 194 of file Chained.cs.
|
getset |
Gets or sets the parameter of the sixth converter to chain.
Definition at line 198 of file Chained.cs.
|
getset |
Gets or sets the parameter of the seventh converter to chain.
Definition at line 202 of file Chained.cs.
|
getset |
Gets or sets the parameter of the eighth converter to chain.
Definition at line 206 of file Chained.cs.
|
getset |
Gets or sets the target type of the first converter to chain.
Definition at line 211 of file Chained.cs.
|
getset |
Gets or sets the target type of the second converter to chain.
Definition at line 215 of file Chained.cs.
|
getset |
Gets or sets the target type of the third converter to chain.
Definition at line 219 of file Chained.cs.
|
getset |
Gets or sets the target type of the fourth converter to chain.
Definition at line 223 of file Chained.cs.
|
getset |
Gets or sets the target type of the fifth converter to chain.
Definition at line 227 of file Chained.cs.
|
getset |
Gets or sets the target type of the sixth converter to chain.
Definition at line 231 of file Chained.cs.
|
getset |
Gets or sets the target type of the seventh converter to chain.
Definition at line 235 of file Chained.cs.
|
getset |
Gets or sets the target type of the eighth converter to chain.
Definition at line 239 of file Chained.cs.