silverlight - Siliverlight: controls visibility changes alignment? -
the following code
<stackpanel orientation="horizontal"> <image source="test.jpg"/> <image source="test2.jpg"/> <textblock text="testblock"/> </stackpanel>
if setting visibility of contents of stackpanel in codebehind , lets set visibility of second image collapsed. notice textblock
moves image used be.
how can keep alignment , turn visibility on or off?
use opacity="0"
instead.
Comments
Post a Comment