标签: c# .net wpf adorner adornerlayer
问题是当一个项目超出缩放面板的范围,并且项目按照您的预期裁剪时(比如设置ClipToBounds = true),您仍然可以看到装饰者!有人可以告诉我一种防止这种情况的方法吗?
Evidence. The black square is the one selected, two resize thumbs are visible (right), the others should not be visible (left)
谢谢!
答案 0 :(得分:1)
修正了它,解决方法是将AdornerDecorator对象放在Canvas上方
<AdornerDecorator> <Canvas> </AdornerDecorator>