Set Background Image for RectangleGeometry in WPF? -
i have code:
<path fill="brown"> <path.data> <rectanglegeometry x:name="rec" radiusx="0" radiusy="20" rect="410,135,60,25"></rectanglegeometry> </path.data> </path>
how can set background image
rectangle
?
you may use imagebrush
path's fill
property:
<path> <path.fill> <imagebrush imagesource="..."/> </path.fill> <path.data> <rectanglegeometry x:name="rec" radiusx="0" radiusy="20" rect="410,135,60,25"></rectanglegeometry> </path.data> </path>
Comments
Post a Comment