I\'m reposting this question as I didn\'t get much of a response last time, hopefully a bit of re-wording might help...
Essentially what I\'m trying to do is to create a
As your Canvas
doesn't seem to have fixed width and height, I would include it into a Viewbox
:
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<Viewbox Stretch="Uniform">
<Canvas x:Name="canvas" Background="DarkSeaGreen">
<Canvas.LayoutTransform>
<ScaleTransform ScaleY="-1" />
</Canvas.LayoutTransform>
</Canvas>
</Viewbox>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
Alternatively, place your entire UserControl
into a ViewBox
.