mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Data bindings - Enabled boolean binding
This commit is contained in:
parent
186d012087
commit
8c42c916e8
@ -7,7 +7,7 @@ namespace Artemis.Core
|
|||||||
/// <see cref="DataBinding{TLayerProperty, TProperty}" /> and a <see cref="LayerProperty{T}" /> and does not support
|
/// <see cref="DataBinding{TLayerProperty, TProperty}" /> and a <see cref="LayerProperty{T}" /> and does not support
|
||||||
/// sum or interpolation
|
/// sum or interpolation
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GeneralDataBindingConverter<T> : DataBindingConverter<T, object> where T : ILayerProperty
|
public class GeneralDataBindingConverter<T> : DataBindingConverter<T, T>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a new instance of the <see cref="GeneralDataBindingConverter{T}" /> class
|
/// Creates a new instance of the <see cref="GeneralDataBindingConverter{T}" /> class
|
||||||
@ -19,13 +19,13 @@ namespace Artemis.Core
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override object Sum(object a, object b)
|
public override T Sum(T a, T b)
|
||||||
{
|
{
|
||||||
throw new NotSupportedException();
|
throw new NotSupportedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override object Interpolate(object a, object b, double progress)
|
public override T Interpolate(T a, T b, double progress)
|
||||||
{
|
{
|
||||||
throw new NotSupportedException();
|
throw new NotSupportedException();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
internal BoolLayerProperty()
|
internal BoolLayerProperty()
|
||||||
{
|
{
|
||||||
KeyframesSupported = false;
|
KeyframesSupported = false;
|
||||||
DataBindingsSupported = false;
|
RegisterDataBindingProperty(b => b, new GeneralDataBindingConverter<bool>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user