1
ResourceDictionary中有很多样式。例如:ResourceDictionary中样式的性能
<Style TargetType="{x:Type i:ButtonTool}" x:Key="UserButtonStyle" BasedOn="{StaticResource MenuButtonStyle}">
<Setter Property="LargeImage" Value="{DynamicResource UserIcon}" />
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="LargeImage" Value="{DynamicResource UserIconDisabled}"/>
</Trigger>
</Style.Triggers>
</Style>
而这些样式的一部分不再使用。应用程序仍在开发中,所以我不知道它们将来是否会被使用。
我想知道这些未使用的风格如何影响应用程序的性能?
如果最好检查哪些样式正在使用,哪些不是,并删除那些未使用的样式。或者,如果它并不重要,它不会减慢应用程序。
我正在使用WPF和.NET Framework 4.