-
|
I have two elements, both sized according to their contents. I need them to overlap by exactly 10 units, with the second element drawn on top. How can I do this? I've already tried this: <Grid ColumnDefinitions="Auto,10,Auto">
<!-- Example controls -->
<TextBlock Grid.Column="0" Grid.ColumnSpan="2">Hello!</TextBlock>
<TextBlock Grid.Column="1" Grid.ColumnSpan="2">xxxxxxxxxx</TextBlock>
</Grid>…along with several variations, including proportional sizing with Visualisation: Imagine the elements look like this: The text varies, and the length of the x-train varies. Now imagine the following but with the second element on top instead of the second line: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
You could apply a negative margin for the second element. Edit: forget about the alternative, try the margin. |
Beta Was this translation helpful? Give feedback.
You could apply a negative margin for the second element.
Edit: forget about the alternative, try the margin.