xaml - Can I change the Canvas.Zindex of an object using visual states? -
how change canvas.zindex of object using visual states? expecting able this..
<visualstate x:name="myvisualstate"> <visualstate.setters> <setter target="myobject.visibility" value="visible" /> <setter target="myobject.background" value="transparent" /> <setter target="myobject.canvas.zindex" value="12" /> </visualstate.setters> </visualstate>
but not work. have not been able find examples on how this. can help?
here go. note need ()
there because canvas.zindex
attached property , that's how define value of in xaml.
<visualstate x:name="myvisualstate"> <visualstate.setters> <setter target="myobject.visibility" value="visible" /> <setter target="myobject.background" value="transparent" /> <setter target="myobject.(canvas.zindex)" value="12" /> </visualstate.setters> </visualstate>
you might interested in answer show how generate code above without writing single line of code.
Comments
Post a Comment