IconElement 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.
IconElement Contains
Property | Description |
Geometry | Gets or sets the Geometry that describes the shape of this GeometryDrawing. |
Width | Gets or sets the suggested Width of the Geometry. |
Height | Gets or sets the suggested height of the Geometry. |
First add HandyControl NameSpace
xmlns:hc="https://handyorg.github.io/handycontrol"
Now
<Button hc:IconElement.Geometry="{StaticResources Home}" hc:IconElement.Width="120" hc:IconElement.Height="80"/>
IconElement.SetGeometry(button, Geometry);
IconElement.SetHeight(button, 50);
IconElement.SetWidth(button, 60);
var geo = IconElement.GetGeometry(button);