是否可以在样式中定义资源,而不是使用模板?
<ListView.Resources >
<Style TargetType="{x:Type ScrollBar}">
<Setter Property="Background" Value="Transparent" />
</Style>
</ListView.Resources>我怎样才能把这个东西包装成:
<Style TargetType="{x:Type ListView}">
</Style>发布于 2010-05-15 01:43:33
我不确定我是否正确理解了你的问题...这就是你要找的吗?
<Style TargetType="{x:Type ScrollBar}">
<Style.Resources>
<Style TargetType="{x:Type ListView}">
</Style>
</Style.Resources>
<Setter Property="Background" Value="Transparent" />
</Style>https://stackoverflow.com/questions/2836093
复制相似问题