开发者

Custom Wpf ListBox Control

开发者 https://www.devze.com 2023-02-12 22:51 出处:网络
I\'m new to wpf and have just been given a project to create a set of custom controls which will be used to make a previous windows forms application more manageable and current. However I cannot seem

I'm new to wpf and have just been given a project to create a set of custom controls which will be used to make a previous windows forms application more manageable and current. However I cannot seem to find much info with regards to customising the built in Listbox, this would involve preferably replacing the scroll bar and the +/- buttons with cust开发者_开发百科om images etc..

Just wondered if anyone knows how to get at these ?

Thanks in advance.


Check here for the default control template of the listbox.You can customize the scrollviewer there to do what you are looking for.Check the below article to get started

Using Templates to Customize WPF Controls


Learn about WPF styling and templating. Other than that, the question is too generic for SO. Read the article (and perhaps google some more articles on the topic), try to style the listbox and come back with specific issues. WPF is not easy to get into, but it is definitely worth the time.

0

精彩评论

暂无评论...
验证码 换一张
取 消