So, i'm trying to make a UserControl that represents a class in a UML modeling program.
The thing is, what I have done so far seems like a wrong way to do it in my own eyes.
I was hoping it could be done using just a single ItemsControl.. Is it?
<Border BorderThickness="1" BorderBrush="Black">
<DockPanel>
<TextBox Text="ClassName" HorizontalAlignment="Center" DockPanel.Dock="Top"/>
<ItemsControl Name="attributeList" ItemsSource="{Binding Attributes}" Margin="5,0,5,0" DockPanel.Dock="Top">
</ItemsControl>
<ItemsControl Name="propertiesList" ItemsSource="{Binding Properties}" Margin="5,0,5,0" DockPanel.Dock="Top">
</ItemsControl>
<ItemsControl Name="methodsList" ItemsSource="{Binding Methods}" Margin="5,0,5,0" DockPanel.Dock="Top">
</ItemsControl>
</DockPanel>
</Border>