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;
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?