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.
如何将样式应用于相同类型的所有控件(例如按钮)?无需每次在 XAML 中声明 Control 时指定样式。即我想为所有按钮指定一次样式。是否可以?
不用钥匙就放
<Style TargetType="{x:Type Button}"> </Style>