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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:35:40+00:00 2026-05-13T11:35:40+00:00

I’m puzzled. I’m trying to create a user control called TranslationView . It consists

  • 0

I’m puzzled. I’m trying to create a user control called TranslationView. It consists pretty much entirely of a single ListView. I don’t think that’s important now however, because I cannot even compile my code-behind.

This is the code-behind for the user control:

namespace Subster
{

    /// <summary>
    /// Interaction logic for TranslationView.xaml
    /// </summary>
    public partial class TranslationView : UserControl
    {

        // Generated using "propdp" in Visual Studio 2008.
        public ObservableCollection<TransRowOrig> TranslationSource
        {
            get { return (ObservableCollection<TransRowOrig>)GetValue(TranslationSourceProperty); }
            set { SetValue(TranslationSourceProperty, value); }
        }

        // Generated using "propdp" in Visual Studio 2008.
        public static readonly DependencyProperty TranslationSourceProperty =
            DependencyProperty.Register("TranslationSource",
                                        typeof(ObservableCollection<TransRowOrig>),
                                        typeof(TranslationView));

        public TranslationView()
        {
            InitializeComponent();
        }

    }
}   

This is the actual XAML:

<UserControl x:Class="Subster.TranslationView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
        <ListView Grid.Row="1" ItemsSource="{Binding Path=TranslationSource}">
            <ListView.View>
                <GridView>  
                    <GridView.Columns>
                        <GridViewColumn Header="Start time"/>
                        <GridViewColumn Header="End time"/>
                        <GridViewColumn Header="Duration"/>
                        <GridViewColumn Header="Original"/>
                        <GridViewColumn Header="Translation"/>
                    </GridView.Columns>
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
</UserControl>

This is the error I’m getting:

Inconsistent accessibility: property type ‘System.Collections.ObjectModel.ObservableCollection’ is less accessible than property ‘Subster.TranslationView.TranslationSource’.

It makes no sense at all to me, because all of the examples I’ve found work in similar ways! I don’t even use the user control in any other part of the project yet.

Any help highly appreciated!

  • 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-13T11:35:40+00:00Added an answer on May 13, 2026 at 11:35 am

    Most likely your TransRowOrig object is less accessible then this class which is defined as a public class. So I’d make that TransRowOrig also a public class

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

Sidebar

Related Questions

I'm trying to create an if statement in PHP that prevents a single post
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Basically, what I'm trying to create is a page of div tags, each has
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.