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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -