Browse Source

Invalidate TextBlock.FormattedText when attached to logical tree.

As inherited properties can change when this happens.
pull/390/head
Steven Kirk 11 years ago
parent
commit
938e07422a
  1. 6
      src/Perspex.Controls/TextBlock.cs

6
src/Perspex.Controls/TextBlock.cs

@ -392,5 +392,11 @@ namespace Perspex.Controls
return new Size();
}
protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
{
base.OnAttachedToLogicalTree(e);
InvalidateFormattedText();
}
}
}
Loading…
Cancel
Save