RadListBox with elements horizontal

0 Answers 232 Views
ListBox
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Deltaohm asked on 14 Apr 2022, 03:40 PM

Hi

How can I put elements in a RadListBox side by side instead of one above other

Thank you

Luigi

Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
commented on 15 Apr 2022, 07:07 AM

I found by myself looking at first look sample of ListBox in Wpf Control Examples.


<t:RadListBox 
								
                                ItemsPanel="{DynamicResource RadListBoxItemsPanel}"
								ItemContainerStyle="{DynamicResource HorizontalItemsStyle}"
								Style="{DynamicResource CustomRadListBox}"
								ItemsSource="{Binding Reports}">
								<t:RadListBox.ItemTemplate>
									<DataTemplate>
										<local:AnalisiLivelliAmbientaliControl/>
									</DataTemplate>
								</t:RadListBox.ItemTemplate>
								<t:RadListBox.Resources>
									<ItemsPanelTemplate x:Key="RadListBoxItemsPanel">
										<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Stretch"/>
									</ItemsPanelTemplate>

								</t:RadListBox.Resources>
							</t:RadListBox>

No answers yet. Maybe you can help?

Tags
ListBox
Asked by
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Share this question
or