1
0
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:
SpoinkyNL 2020-12-08 23:28:16 +01:00
parent 186d012087
commit 8c42c916e8
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}

View File

@ -6,7 +6,7 @@
internal BoolLayerProperty()
{
KeyframesSupported = false;
DataBindingsSupported = false;
RegisterDataBindingProperty(b => b, new GeneralDataBindingConverter<bool>());
}
/// <summary>