【问题标题】:WPF - Implicitly style control within another controlWPF - 在另一个控件中隐式样式控件
【发布时间】:2010-02-09 11:30:17
【问题描述】:

是否可以在 WPF 中为位于另一个控件中的控件隐式设置样式?

例如,为按钮内的图像设置样式,而不设置所有图像的样式?

【问题讨论】:

    标签: wpf styling resourcedictionary


    【解决方案1】:

    您可以将样式插入到 Button 的 ResourceDictionary 中。那么它只适用于包含的图像。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-08-09
      • 2023-01-04
      • 2018-11-09
      • 2011-01-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多