VisualElement Attach - AdarshRise/HandyControl GitHub Wiki

An attached property is intended to be used as a type of global property that is settable on any object.

VisualElement Contains

Property Description
HighlightBrush Gets or sets

Usage in Xaml

First add HandyControl NameSpace

xmlns:hc="https://handyorg.github.io/handycontrol"

Now

 <Slider hc:VisualElement.HighlightBrush="Red"/>

Usage in Code-Behind

VisualElement.SetHighlightBrush(control, Brushes.Red);
VisualElement.GetHighlightBrush(control);
⚠️ **GitHub.com Fallback** ⚠️