SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

XamlParseException in AvalonEdit using ElementHost, .NET 3.5av

Last post 04-09-2012 3:54 PM by StevePgh. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-09-2012 3:54 PM

    XamlParseException in AvalonEdit using ElementHost, .NET 3.5av

    I'm getting an error with the source from the most recent build server dump, 4.2.8745.  I compiled the ICSharpCode.AvalonEdit targeting .NET 3.5, removing the DOTNET4 conditional compilation symbol, and am consuming in a VS 2008/3.5 WinForms project using ElementHost.  A simplified repro case is below:

    ctrlHost = new ElementHost();     

    ctrlHost.Dock = DockStyle.Fill;

    this.Controls.Add(ctrlHost);

    textEditor = new TextEditor();

    ctrlHost.Child = textEditor;

    At the last line, a XamlParseException occurs: "Only public classes can be used in markup. 'DropDownButton' type is not public."

    /ICSharpCode.AvalonEdit;component/Search/DropDownButton.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Only public classes can be used in markup. 'DropDownButton' type is not public.    Error at object 'System.Windows.ResourceDictionary'.

    The source drop in the awesome Code Project article, using the same techniques described above works fine.  Any ideas?

     

    Filed under: ,
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.