To use your own user control, remember to import namespace:
xmlns:main="clr-namespace:TestMemoryLeak"
Then you can use your control:
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<ListBox Width="300" Margin="0,0,0,0" Name="TestListBox">
<ListBox.ItemTemplate>
<DataTemplate>
<main:ShapeListControl ListID="{Binding Path=ListID}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Canvas>
No comments:
Post a Comment