Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图为菜单制作自己的 ControlTemplate。我想把一些物品的角落转向外面。所以它看起来像 Word TabItems,我不能发布图像即时消息。但我希望你明白我的意思。
有没有可能像那样改变圆角半径?还是有其他可能性?
关于马克
当我想做类似的事情时,我经常使用在网格Path的“角落”部分绘制的网格。
Path
例如,像 word 中的选项卡可以绘制为具有 2x3 网格的网格。顶行将向所有 3 个单元格发送垃圾邮件,并包含一个设置了顶部两个角半径的对象。底行的中间单元格将是文本,左侧和右侧的单元格将按照Path您想要的方式绘制。