質問

I would like to have a shape behind the textblocks so that they appear like they belong together. Kind of like a groupbox except it will be a shape with color. Anybody knows how to do that? Or any way I can do this?

役に立ちましたか?

解決

You can use Grid to contain shape & text block in it. Like given below. You can use Rectangle, Ellipse or Path.

<Grid>
    <Rectangle Height="25" Width="150" Fill="Red" />
    <TextBlock Text="Hello World!" FontSize="20" Width="150" />
</Grid>
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top