Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7691633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:40:12+00:00 2026-05-31T20:40:12+00:00

I have a lot of styles in ResourceDictionary. For example like that: <Style TargetType={x:Type

  • 0

I have a lot of styles in ResourceDictionary. For example like that:

<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>

And part of those styles are no longer in use. Application is still under development so I don’t know if they would be used in future.

I would like to know how does those unused styles influence the performance of application?
If it would be better to check which styles are in use and wchich are not and delete those unused styles. Or if it doesn’t really matter and it does not slow the application.

I am using WPF and .NET Framework 4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:40:13+00:00Added an answer on May 31, 2026 at 8:40 pm

    Yes, it would be wise to remove them. Especially when the resources claim a lot of memory and/or take time to load.

    This forum post show a couple of tools that can be used to find unused resources and a way to detect them.

    Be aware though of dynamically loaded resources. You probably do not want to remove them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to nest selectors within selectors? I have a lot of styles
In my project i have a lot of css styles. Some of them are
I have seen lot projects following this kind of coding style Any significant advantage
I have lot of code in my Tornado app which looks like this: @tornado.web.asynchronous
I have a stylesheet and a lot of styles with the same border color
I know a lot of people have had this issue, and I've seen that
So I have seen a lot of different coding styles, but I'm only going
I have a mx.components.List component with a bunch of custom styles: <mx:Style> .dropDownListStyle {
I have created four ASP.NET Server controls that will inject a lot of JavaScript
So let's assume that we have a large project with a lot of pages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.