Windows运行时组件中的自定义附加属性?

时间:2016-03-19 19:22:59

标签: windows-runtime win-universal-app c++-cx winrt-component

我正在尝试在C ++ UWP项目中使用c#类库https://github.com/MacawNL/WinRT-RichTextBlock.Html2Xaml。据我所知,我必须将项目构建为Windows运行时组件而不是类库,以便将它与C ++ / cx一起使用。问题是,当我尝试将其构建为winmd时,我收到此错误:

Error   WME1024 Type 'WinRT_RichTextBlock.Html2Xaml.Properties' contains externally visible field 'Windows.UI.Xaml.DependencyProperty WinRT_RichTextBlock.Html2Xaml.Properties.HtmlProperty'.  Fields can be exposed only by structures.    WinRT-RichTextBlock.Html2Xaml   C:\Users\zzz\Downloads\WinRT-RichTextBlock.Html2Xaml\RichTextBlockProperties.cs 40  

如何构建此附加属性,以便在c ++ / cx UWP项目中使用它?

0 个答案:

没有答案