using System.Windows; using System.Windows.Controls; using System.Windows.Media; using RGB.NET.Core; namespace Artemis.UI.Controls.Visualizers { /// /// /// Visualizes a in an wpf-application. /// public class LedVisualizer : Control { public void Select() { BorderBrush = new SolidColorBrush(Colors.RoyalBlue); } public void Deselect() { BorderBrush = new SolidColorBrush(Colors.Black); } #region DependencyProperties // ReSharper disable InconsistentNaming /// /// Backing-property for the -property. /// public static readonly DependencyProperty LedProperty = DependencyProperty.Register( "Led", typeof(Led), typeof(LedVisualizer), new PropertyMetadata(default(Led))); /// /// Gets or sets the to visualize. /// public Led Led { get => (Led) GetValue(LedProperty); set => SetValue(LedProperty, value); } // ReSharper restore InconsistentNaming #endregion } }