c# - Casting type right in XAML code? -
i'm wpf newbie, problem want cast property type right in xaml code this:
//i want cast effect dropshadoweffect access it's shadowdepth <trigger property="ispressed" value="true"> <setter property="effect.shadowdepth" value="0.5"/> </trigger>
but shadowdepth
not accessible, effect
should casted dropshadoweffect
first. show me solution in can casting right in xaml code. if it's impossible, typeconverter
in code behind ok. thank in advance.
i see 2 possibilities:
recreate
dropshadoweffect
in setter, recreating object'seffect
.give
dropshadoweffect
name, , reference object directly usingtargetname
:<setter targetname="dropshadow" property="shadowdepth" value="0.5" />
Comments
Post a Comment