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:

  1. recreate dropshadoweffect in setter, recreating object's effect.

  2. give dropshadoweffect name, , reference object directly using targetname:

    <setter targetname="dropshadow" property="shadowdepth" value="0.5" />


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -