<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://community.sharpdevelop.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Bug Reporting</title><link>http://community.sharpdevelop.net/forums/19.aspx</link><description>Use this group to report bugs. This group is monitored by our testers, and once your bugs are verified, they are entered in our bug tracking database.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>XamlParseException in AvalonEdit using ElementHost, .NET 3.5av</title><link>http://community.sharpdevelop.net/forums/thread/39996.aspx</link><pubDate>Mon, 09 Apr 2012 13:54:36 GMT</pubDate><guid isPermaLink="false">1b90d1c1-04e6-45b0-b51d-b665527d49b9:39996</guid><dc:creator>StevePgh</dc:creator><slash:comments>0</slash:comments><comments>http://community.sharpdevelop.net/forums/thread/39996.aspx</comments><wfw:commentRss>http://community.sharpdevelop.net/forums/commentrss.aspx?SectionID=19&amp;PostID=39996</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m getting an error with the source from the most recent build server dump,&amp;nbsp;4.2.8745. &amp;nbsp;I compiled the&amp;nbsp;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. &amp;nbsp;A simplified repro case is below:&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;
&lt;p style="padding-left:30px;"&gt;ctrlHost = new ElementHost(); &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;ctrlHost.Dock = DockStyle.Fill;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;this.Controls.Add(ctrlHost);&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;textEditor = new TextEditor();&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;ctrlHost.Child = textEditor;&lt;/p&gt;
&lt;p&gt;At the last line, a XamlParseException occurs: &amp;quot;Only public classes can be used in markup. &amp;#39;DropDownButton&amp;#39; type is not public.&amp;quot;&lt;/p&gt;
&lt;p&gt;/ICSharpCode.AvalonEdit;component/Search/DropDownButton.xaml&amp;#39; value cannot be assigned to property &amp;#39;Source&amp;#39; of object &amp;#39;System.Windows.ResourceDictionary&amp;#39;. Only public classes can be used in markup. &amp;#39;DropDownButton&amp;#39; type is not public. &amp;nbsp; &amp;nbsp;Error at object &amp;#39;System.Windows.ResourceDictionary&amp;#39;.&lt;/p&gt;
&lt;p&gt;The source drop in the awesome&amp;nbsp;&lt;a href="http://www.codeproject.com/Articles/42490/Using-AvalonEdit-WPF-Text-Editor"&gt;Code Project article&lt;/a&gt;, using the same techniques described above works fine. &amp;nbsp;Any ideas?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/p&gt;
&lt;/p&gt;</description></item></channel></rss>