Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTemplateSelector not getting called for DragablzItemsControl #252

Open
amescodes opened this issue Apr 3, 2021 · 0 comments
Open

DataTemplateSelector not getting called for DragablzItemsControl #252

amescodes opened this issue Apr 3, 2021 · 0 comments

Comments

@amescodes
Copy link

i have a DragablzItemsControl where i'm trying to use a DataTemplateSelector but it isn't being called and the SelectTemplate method isn't being hit at all. - the items will just take on the default style with the yellow thumb. am i doing something wrong? any advice appreciated!

<local:PanelItemTemplateSelector x:Key="panelItemTemplateSelector"
                                 ButtonHeaderTemplate="{StaticResource buttonMenuHeaderPanelTemplate}"
                                 ButtonTemplate="{StaticResource buttonLinkPanelTemplate}" />

...

<dragablz:DragablzItemsControl ItemsSource="{Binding PanelItems}"
                               ItemTemplateSelector="{StaticResource panelItemTemplateSelector}"
                               Margin="5">
   <dragablz:DragablzItemsControl.ItemsOrganiser>
      <dragablz:HorizontalOrganiser />
   </dragablz:DragablzItemsControl.ItemsOrganiser>
</dragablz:DragablzItemsControl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant