开发者

WPF CornerRadius turn the Corners to the outside

Im trying to m开发者_如何学Pythonake my own ControlTemplate for an menu. Id like to turn the corners of some items to the outside. So that it look like the Word TabItems, i cant post an image im sry. But i hope you understand what i mean.

Is there a possibility to change the cornerradius like that? or are there other possibilitys?

regards Mark


When I want to do something like that I often use a Grid with a Path drawn in the "corner" sections of the grid.

For example, a tab like the one in word could be drawn as a grid with 2x3 grid. The Top row would spam all 3 cells and contain an object with the top two corner radius set. The bottom row's middle cell would be the Text and the left and right ones would be a Path drawn the way you want it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜