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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -