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.
我定义了一个样式 - targetType 是'Line' 我在某个网格中定义了这个样式,我想在这个网格中的任何行上制作这个样式效果。
如果不向每一行添加“stype= {...}”,我怎么能做到这一点?
Grid将您的样式添加到您或包含的UserControl资源部分
Grid
UserControl
<Style TargetType="{x:Type Line}">