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 356091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:04:44+00:00 2026-05-12T12:04:44+00:00

Microsoft has a handy reference of the various controls in the System.Windows.Controls namespace and

  • 0

Microsoft has a handy reference of the various controls in the System.Windows.Controls namespace and which controls are included in the runtime.

For any controls listed here that aren’t included in the runtime, you have to include the reference to the System.Windows.Controls assembly and select “copy local” in Visual Studio. So that’s what I’m currently doing and it works.

However, by including this DLL I’m adding almost 80 KB to my XAP file (and my XAP file is only 110 KB). The only control I’m using that requires it is the GridSplitter. Is there a way to rebuild a condensed version of this assembly that includes the GridSplitter only?

  • 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-12T12:04:44+00:00Added an answer on May 12, 2026 at 12:04 pm

    It looks like I just found the answer for Silverlight 2…

    Source Code for Silverlight 2 Runtime and SDK Controls

    And I think that’ll work for me for now. I should be able to go through the project and exclude all the unnecessary bits from the project and do a rebuild.

    I’m still using Silverlight 2 but I will be switching to 3 in a couple months. And I can’t seem to find the same thing for Silverlight 3. Maybe the source is not available yet for Silverlight 3?

    UPDATE:

    So I got this working after jumping through some hoops. At first I downloaded the source project from Microsoft and then just started removing stuff. But then I noticed that I couldn’t build the solution. In fact I couldn’t build an unmodified version of the solution either. I was getting errors about strong name verification. I tried unchecking strong name signing from the “Signing” section of the project properties but I got the same error. I even added the assembly to the strong name verification skip list and finally got past the error. But when I tried to include the new assembly in my Silverlight project and run it in a browser, I’d get a blank screen (the Silverlight control never loaded). I’m still not sure why but I’m sure I was missing something.

    Finally I just created a fresh project. It seems I should’ve done this from the beginning. I just needed to create an empty C# Silverlight Class Library for the GridSplitter. Then I started adding the source files necessary for the GridSplitter to this project and then I set the namespace and assembly name to System.Windows.Controls. After building this project, and referencing it in my Silverlight app it finally worked. The result: a 60 KB savings.

    I wrote a little more about this here:

    http://regexhero.net/blog/2009/09/optimizing-silverlight-xap-file.html

    In case anyone wants them, I’ve got 4 of the controls from the SDK right here…

    http://www.silverlightxap.com/controls/tagged/silverlight-sdk

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

Sidebar

Related Questions

I am writing a program which utilises the System.Reflection namespace of the Microsoft .NET
Does anybody know if Microsoft has already decided which version of the .NET framework
Microsoft has announce that WindowsLiveID become a OpenID provider . I want implement it
I know Microsoft has made efforts in the direction of semantic and cross-browser compliant
Ever since Microsoft has introduced the application blocks, I've been bumping into people who
I really like the fact that Microsoft has taken a commitment to bring MVC
Visio has been supporting UML diagrams for quite some time now. Microsoft has now
Apparently, Microsoft has not yet made WebGL work in Internet Explorer by default. Plus,
So, it looks like Microsoft has gone back to pushing Web Application Projects* in
I realize that enum cannot be used as a generic constraint, and Microsoft has

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.