本文介绍了WPF - 怎样才能让自定义边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能让自定义边框是这样的:
How Can I make a custom Border like this:
我想在边框的顶部使用多边形,但我不知道如何做到这一点:(
i want use a Polygon at the top of border but i don't know how do it :(
推荐答案
您需要创建一个自定义的装饰
。请参阅以下链接了解如何做到这一点的例子:
You need to create a custom Decorator
. See the following link for an example of how to do it: http://blog.pixelingene.com/2007/06/balloondecorator-source-code/
这篇关于WPF - 怎样才能让自定义边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!