Sukaskha

Sukaskha

  • NA
  • 113
  • 20.3k

Canvas size issue

Nov 27 2014 11:19 PM
Hi,
I have below code. but problem is my canvas is not supporting resiging stuff.

<ScrollViewer Grid.Row ="3" Name="ScrollViewer1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">

<Viewbox Name="MyView" HorizontalAlignment="Left" VerticalAlignment="Top">

<Viewbox.LayoutTransform>

<ScaleTransform x:Name="secscale" ScaleX ="1" ScaleY="1"/>

</Viewbox.LayoutTransform>

<Canvas Name="Canvas1" HorizontalAlignment="Left" VerticalAlignment="Top" Height="1000" Width="980" ClipToBounds="True">

<StackPanel Name="SP1" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top">

</StackPanel>

</Canvas>

</Viewbox>

 

</ScrollViewer>


Answers (3)