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.
我有一个相当复杂的控件,有时会超出其范围。我知道我可以通过添加 ClipToBounds=True 并检查绘图是否被剪裁来检查(视觉上)它是否超出其界限。
我的问题是:我如何检查相反的情况,即控件是否填充了它的所有边界?我尝试设置背景,但它不起作用。