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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -