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.
我有一个名为 Block 的对象和一个名为 Cell 的对象。基本上,块有一组单元格。就 UI 而言,一个块就是一个网格。Grid 的孩子是TextBoxes 的单元格。现在,我的问题是这是好还是坏的做法,或者TextBox在 Cell 对象中实例化 a 和在 Block 对象中实例化 Grid 是否有任何优点或缺点。此外,由于这些UIElements 的实例有一个属性,有没有办法绑定到该属性?
TextBox
UIElement
Scott Hanselman 与 Ian Griffiths 在此播客中详细讨论了 WPF 视图中包含哪些内容和不包含哪些内容的问题。非常值得花 30 分钟:
http://hanselminutes.com/default.aspx?showID=184