Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Applying Custom DataTemplate to ListBox

$
0
0
Hi Shaun,

Thank you for contacting us.

As seen on the snippet, in the custom DataTemplate, you're placing a RadListBoxItem, which results with a RadListBoxItem inside RadListBoxItem and we don't recommend doing it. If you remove the RadListBoxItem from the ItemTemplate everything will work as expected. For example check the following snippet:

Dim DT As New DataTemplate With {.DataType = GetType(RadListBoxItem), .VisualTree = New FrameworkElementFactory(GetType(TextBlock))}

Additional information on the topic can be found in our article about the custom DataTemplate in RadListBox.

Hope this helps. Also, if you have any further queries, please do not hesitate to contact us.

Regards,
Geri
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>