c# Binding windows 无需键入任何代码即可在设计器中形成控件

c# Binding windows forms controls in designer without typing any code

我需要在我的 c# windowsforms 设计器(使用 Visual Studio 2015)中绑定两个控件(图片框),所以当我对 parent 执行操作时(例如隐藏它), child 也会隐藏...但另一方面,当我隐藏 child 时,parent 会保持原样...有没有办法做到这一点在设计器中无需输入任何代码? 我在互联网上找不到任何答案。 谢谢。

设计器中无法执行此操作。您将必须使用一些代码来实现此行为。