ItemsPanelTemplate Selector w wpf?
Muszę ustawić właściwość ItemsPanelTemplate pola listy na podstawie właściwości zależności na formancie. Jak do tego użyć elementu DataTemplateSelector?
Mam coś takiego:
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<!-- Here I need to replace with either a StackPanel or a wrap panel-->
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
Dzięki