Just fyi, I am new to WPF.
I am creating a sidebar in my WPF app and want rounded corners. Which I learned is not a property you can attach to a Grid. Also, I tried putting the textblocks in the border control, but the error message I got back said, "Child can only be set once".
Below is the code I have so far, but I don't like having to nest my textblocks in a stackpanel, that is nested in a grid, that is nested in a border, that is nested in the parent Grid. Any way to clean this up? (if not, no worries, again, kind of new to this, and just looking to get my xaml as organized as possible)
<Grid Style="{StaticResource SideBar}">
<Border Style="{StaticResource RoundedSidebar}">
<Grid>
<StackPanel Orientation="Vertical" VerticalAlignment="Top">
<TextBlock />
<TextBlock />
<TextBlock />
</StackPanel>
</Grid>
</Border>
</Grid>
Any feedback would be greatly appreciated.
Thanks