問題描述
Painter 應用程序的自定義控件以顯示不同的橡皮擦 (Custom Control for Painter application to show different erasers)
I am creating paint like application using WPF. Now i need to create control which can be used to display eraser but it should be like adobe photoshop's eraser control where three different types of eraser small , medium and large are in one control , it have overflow mechanism like toolbar .
I need to create custom control (may be custom button) which will have little arrow which will allow me to see types of eraser and allows me selection. for reference check eraser control in ONE note application.
參考解法
方法 1:
Have you considered templating the drop down menu button?
Here are a couple of examples to get you started:
http://anothersplitbutton.codeplex.com/
http://blogs.msdn.com/b/llobo/archive/2006/10/25/split-button-in-wpf.aspx
(by Wajeed Shaikh、K Mehta)