wpf - Border.Background Effect -


i have been trying microsoft.expression.media.effects create monochromeeffect on uielements.

xmlns:e="http://schemas.microsoft.com/expression/2010/effects"

<border.effect>       <e: monochromeeffect  color="blue" /> </border.effect> 

this works fine control color.

my problem when attempting apply imagebrush. (adding blue mono-tint background).

  <border.background >        <imagebrush imagesource="{binding watermarkimage}"         stretch="uniformtofill" opacity=".34"         renderoptions.bitmapscalingmode="highquality"          alignmentx="center" alignmenty="top" />   </border.background> 

this colorize controls inside border - (including instance - listboxitems mono-blue).

is there anyway affect imagebrush - (not list items - (keep them white)?

you may use visualbrush image control instead of imagebrush , apply effect image:

<border.background>     <visualbrush>         <visualbrush.visual>             <image imagesource="{binding watermarkimage}"                    stretch="uniformtofill" opacity=".34" ...>                 <image.effect>                     <e:monochromeeffect color="blue"/>                 </image.effect>             </image>         </visualbrush.visual>     </visualbrush> </border.background> 

Comments