How can elements in a listbox be sorted?



How can elements in a listbox be sorted?..

Answer / Devnath Kumar

Elements in a WPF ListBox can be sorted by implementing ICollectionView, setting the ListBox's ItemsSource property to the collection view, and calling Sort() method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WPF Interview Questions

How you close a ToolTip that is currently showing in WPF?

1 Answers   Tech Mahindra,


How we can enter multiple lines of text in WPF Textbox?

1 Answers   Tech Mahindra,


Does .net core support wpf?

1 Answers  


Explain serialization?

1 Answers  


Which namespace is used to work with 3d in wpf.

1 Answers  


What is wpf web browser application?

1 Answers  


What are Freezable objects in WPF?

1 Answers  


What is the difference between key binding and mouse binding?

1 Answers  


What are the types of inlines that can be used in a textblock?

1 Answers  


What is data binding with xaml?

1 Answers  


what is xaml? What is the difference between xml and xaml?

1 Answers  


What are windows presentation foundation applications?

1 Answers  


Categories