I want to make ListBox arrange its items horizontally instead of vertically. How it is possible in WPF?



I want to make ListBox arrange its items horizontally instead of vertically. How it is possible in W..

Answer / Ashish Suman

You can make a ListBox display items horizontally by setting the Orientation property to Horizontal:

```xaml
<ListBox Orientation="Horizontal" ItemsSource="{Binding MyItems}">
<!-- ... -->
</ListBox>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WPF Interview Questions

What is 'one-way-to-source' binding property?

1 Answers  


What is the use of wpf application?

1 Answers  


What are the major subsystems of the Windows Presentation Foundation?

1 Answers  


What is value converter in wpf?

1 Answers  


What are static resources in wpf?

1 Answers  


What is the basic difference between events and commands in the mvvm model?

1 Answers  


What are the four general kinds of xaml elements?

1 Answers  


What are the types sibling libraries in wpf?

1 Answers  


How can command-line arguments be retrieved in a WPF application?

1 Answers  


What is the use of "system.windows.markup" namespace in wpf?

1 Answers  


Can wpf run on windows 7?

1 Answers  


What is windows form application?

1 Answers  


Categories