Skip to content
Discussion options

You must be logged in to vote

The grid slices are likely center-aligned themselves on the X axis. Because they were previously filling the GridView on X it wasn't noticeable originally, but it is now that they shrink to their content size. Does doing something like this get you the layout you're going for?

private void ProvideSlice(int sliceIndex, GridView gridView, ref GridSlice2D gridSlice)
{
     gridSlice.AutoLayout.Spacing = 20;
     gridSlice.AutoLayout.Alignment = (int) HorizontalAlignment.Left;
     gridSlice.Layout.AutoSize.X = AutoSize.Shrink;

     // add this
     gridSlice.Layout.Alignment.X = HorizontalAlignment.Left;
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@adgray1
Comment options

Answer selected by obamalastname
@obamalastname
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants