Reputation: 632
So i'm resizing a ListBox using a Storyboard. The relevant key
<DoubleAnimation Duration="0:0:0.75" To="-276" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ItemList" d:IsOptimized="True"/>
But the items are getting squished.Is the a way to avoid this?
Upvotes: 0
Views: 262
Reputation: 522
If you are resizing the ListBox use
and/or
This should not affect the items in any way but will allow the ListBox to resize.
TranslateY will only move the control along the Y axis, not resize it.
Upvotes: 2