使用控件模板定制控件。
最可靠的获取坐标的方法是使用控件自身的方法决定每个按钮的大小。
A much more reliable way to get the coordinates is to use the methods of the control itself to determine the size of each button.
不要过于担心尺寸和位置,因为后面可以使用控件中的定位手柄对它们进行修改。
Don't worry too much about the size and location as they can be changed later using the positioning handles on the control.
应用推荐