Skip to content
Discussion options

You must be logged in to vote

in my case inside the cell i did:

   if (ShowDate)
   {
       var wasInvisible = !LabelFirstDate.IsVisible;
       LabelFirstDate.Text = item.WhenDesc;
       LabelFirstDate.IsVisible = true;
       if (wasInvisible && WasMeasured)
           Parent.Invalidate();
   }
   else
   {
       var wasVisible = LabelFirstDate.IsVisible;
       LabelFirstDate.IsVisible = false;
       if (wasVisible && WasMeasured)
           Parent.Invalidate();
   }

if ShowDate dinamically changes (your case like you click on something and it changes height) it invalidates the stack.

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@DarthDeville
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DarthDeville
Comment options

Answer selected by DarthDeville
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants