TitleElement 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.

TitleElement Contains

Property Description
Title Gets or sets Controls Title
Background Gets or sets Title Background color
Foreground Gets or sets Title Foreground color
BorderBrush Gets or sets Title BorderBrush
TitleAlignment Gets or sets Title Alignment
TitleWidth Gets or sets Title Width

Usage in Xaml

First add HandyControl NameSpace

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

Now

<hc:NumericUpDown Style="{StaticResource NumericUpDownExtend}" hc:TitleElement.Title="Groups" hc:TitleElement.TitleWidth="50" hc:TitleElement.TitleAlignment="Left"/>

Usage in Code-Behind

TitleElement.SetTitle(control, "Groups");
TitleElement.SetTitleWidth(control, 50);
TitleElement.SetTitleAlignment(control, HandyControl.Data.TitleAlignment.Left);
TitleElement.GetTitle(control);
⚠️ **GitHub.com Fallback** ⚠️