IconSwitchElement 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.
IconSwitchElement Contains
Property | Description |
GeometrySelected | Gets or sets the Geometry that describes the shape of this GeometryDrawing. |
First add HandyControl NameSpace
xmlns:hc="https://handyorg.github.io/handycontrol"
Now
<ToggleButton hc:IconSwitchElement.GeometrySelected="{StaticResources Home}"/>
IconSwitchElement.SetGeometrySelected(control, Geometry);
var geo = IconSwitchElement.GetGeometrySelected(control);