mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-22 01:39:30 +00:00
28 lines
613 B
C#
28 lines
613 B
C#
using System.Reflection;
|
|
|
|
namespace WpfExtended.Tests.TestApplication.Models
|
|
{
|
|
public sealed class EffectProperty
|
|
{
|
|
public string Name { get; set; }
|
|
public double Value { get; set; }
|
|
public object Source { get; set; }
|
|
public PropertyInfo Property { get; set; }
|
|
|
|
public void UpdateProperty()
|
|
{
|
|
if (this.Source is null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
if (this.Property is null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
this.Property.SetValue(this.Source, this.Value);
|
|
}
|
|
}
|
|
}
|