mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48:31 +00:00
35 lines
1003 B
C#
35 lines
1003 B
C#
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using RGB.NET.Core;
|
|
|
|
namespace RGB.NET.WPF.Controls
|
|
{
|
|
/// <inheritdoc />
|
|
/// <summary>
|
|
/// Visualizes a <see cref="T:RGB.NET.Core.Led" /> in an wpf-application.
|
|
/// </summary>
|
|
public class LedVisualizer : Control
|
|
{
|
|
#region DependencyProperties
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
/// <summary>
|
|
/// Backing-property for the <see cref="Led"/>-property.
|
|
/// </summary>
|
|
public static readonly DependencyProperty LedProperty = DependencyProperty.Register(
|
|
"Led", typeof(Led), typeof(LedVisualizer), new PropertyMetadata(default(Led)));
|
|
|
|
/// <summary>
|
|
/// Gets or sets the <see cref="Core.Led"/> to visualize.
|
|
/// </summary>
|
|
public Led Led
|
|
{
|
|
get => (Led)GetValue(LedProperty);
|
|
set => SetValue(LedProperty, value);
|
|
}
|
|
|
|
// ReSharper restore InconsistentNaming
|
|
#endregion
|
|
}
|
|
}
|