Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

how to bind style element property to style property?

$
0
0

hi.

this is my code:

<Style x:Key="imageColorStyle" TargetType="Image"><Setter Property="Tag"><Setter.Value><SolidColorBrush Color="Red"/></Setter.Value></Setter><Setter Property="Effect"><Setter.Value><fx:SepiaEffect  DesaturationFactor="0" Toned="0" LightColor="{Binding  imageColorStyle Tag Binding}}" DarkColor="Black" /></Setter.Value></Setter></Style>

i want to bind SepiaEffect  Lightcolor property to Parent StyleTag Property.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>