wpf - How to share vector icon while being able to change Fill brush -


in .net 4.6, use shared vector icons implemented path in canvas in global xaml this:

<resourcedictionary ...>     <canvas x:key="msearchcanvas" x:shared="false" width="24" height="24">         <path data="m9.5,3a6.5,6.5 0 0,1 16,9.5..." fill="black" />     </canvas> </resourcedictionary  

i can reuse these icons in several applications using:

<viewbox width="16" height="16" child="{staticresource mpencilcanvas}"/> 

it works i'd use same icon/canvas different fill brushes.

is there simple way override fill property new value?


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -