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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -