Inconsistent accesibility error without class being public RRS feed

  • Question

  • (C# 3.5, WPF, VC#EE 2008)

    I get an inconsistent accessibility error for a property of a private type ("Project") in a class ("AssetManager : UserControl") that is not public.
    It seems  WPF xaml designer part is compiling as public since it only gives the error with class that have an xaml designer part.
    How do I change this?

    partial class AssetManager : UserControl
        public Project Project  { ... }
    class Project { .. }

    Using this in the window's design tag makes the class internal and solves the problem

    • Edited by PatrickPijnappel Sunday, December 13, 2009 10:51 AM solved problem
    • Moved by liurong luo Wednesday, December 16, 2009 9:34 AM WPF issue. (From:Visual C# General)
    Sunday, December 13, 2009 10:45 AM

All replies

  • What is the error and how to reproduce?

    Monday, December 14, 2009 6:30 AM