mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +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
|
||||
/// sum or interpolation
|
||||
/// </summary>
|
||||
public class GeneralDataBindingConverter<T> : DataBindingConverter<T, object> where T : ILayerProperty
|
||||
public class GeneralDataBindingConverter<T> : DataBindingConverter<T, T>
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new instance of the <see cref="GeneralDataBindingConverter{T}" /> class
|
||||
@ -19,13 +19,13 @@ namespace Artemis.Core
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override object Sum(object a, object b)
|
||||
public override T Sum(T a, T b)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override object Interpolate(object a, object b, double progress)
|
||||
public override T Interpolate(T a, T b, double progress)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
internal BoolLayerProperty()
|
||||
{
|
||||
KeyframesSupported = false;
|
||||
DataBindingsSupported = false;
|
||||
RegisterDataBindingProperty(b => b, new GeneralDataBindingConverter<bool>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user