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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:58:25+00:00 2026-05-11T11:58:25+00:00

In my Silverlight project, I would like to make an assembly which contains .xaml

  • 0

In my Silverlight project, I would like to make an assembly which contains .xaml that can’t be seen from outside of the assembly. However, there is no clear way I can do this. When I modify the access modifier on the .xaml.cs file, the compiler tells me:

Partial declarations of "My xaml class here" have conflicting accessibility modifiers    

In the xaml file itself, there doesn’t seem to be a place to put my access modifier. In short, how do I set the class associated with my xaml file to internal?

  • 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. 2026-05-11T11:58:25+00:00Added an answer on May 11, 2026 at 11:58 am

    You need to add a x:ClassModifier='internal' in the UserControl tag of the XAML file if you change the visibility of the class in the .cs file to internal.

    The file generated from the XAML file (e.g. MyControl.g.cs) needs to match the code-behind file (e.g. MyControl.cs). x:ClassModifier allows you to control the visibility of the part declaration in the MyControl.g.cs file.

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

Sidebar

Related Questions

I have a Silverlight ModelViewViewModel project that I would like to expose a property
I have multiple silverlight project that I would like to use the same styles,
I would like to use Sharedcache (sharedcache.codeplex.com) in our Silverlight v4.0 project. However, we
I would like to use the same project (class library) in Silverlight and WPF.
I have a RadGridView control in a silverlight project and would like to have
I would like to create a level editor for Silverlight with XAML. What resources
I'm a Silverlight newbie. I'm starting a new project and I would like to
Greetings! I am currently working on a Silverlight project and I would like to
I would like to make an Azure Blob Storage browser using Silverlight, like CloudBerry
I have a Silverlight (WP7) project and would like to bind an enum to

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.