Centering a Grid inside a ScrollViewer

njsokalski

Well-known member
Joined
Mar 16, 2011
Messages
102
Programming Experience
5-10
I currently have the following XAML tags:

<ScrollViewer>
<Canvas Width="480" Height="480">
<Grid>

All of the RowDefinitions and ColumnDefinitions are absolute values (no auto or * values). I want to center the Grid, but I have tried every combination of properties I could find, but no success. Can someone help me here? Thanks.
 
Back
Top