Home
Copyright Vedran Maricevic, all rights reserved.
ListBox in WPF is good. This code will give it additional usability. When you hover your mouse over it, the current items in the ListBox will Zoom, thus giving it a really nice look.
There is no code behind, only XAML. You can easily change colors and other properties,
In your project in Solution Explorer Window, right click on your project and select Add-->New Item.
Select Resource Dictionary (WPF) and give it a name ListBox.
Save it
Open ListBox.cs that you downloaded in this package, and its content copy in your ListBox.cs (the one you just created in step 2).
Open App.xaml in your project, and make sure it has this code:
Application.Resources
Application.Resources
Now you are ready to use this lovely ListBox with Zoom. Simply add ListBox control on your project and you are done.
Please note, if you are starting a project from zero, than you do not require step 5
Copyright Vedran Maricevic, all rights reserved.
Questions & Comments
Leave a comment
Log-in now or register for a free account.
2 years ago
2 years ago