如何在WPF中设置对DocumentPageView.DocumentPaginator的绑定



如何在WPF中绑定DocumentPageView
我的代码:

<DocumentPageView DocumentPaginator="{Binding Source}"></DocumentPageView>

源是DocumentPaginator的类型。错误为:

错误1无法在"DocumentPageView"类型的"DocumentPaginator"属性上设置"Binding"。只能在DependencyObject的DependencyProperty上设置"Binding"。

请帮帮我。Tnx。。。

您的错误消息说明了一切。只能将绑定应用于DependencyProperty。DocumentPaginator不是DocumentPageView的DependencyProperty,因此无法绑定到它。

相关内容

  • 没有找到相关文章

最新更新