如何在WPF中绑定DocumentPageView?
我的代码:
<DocumentPageView DocumentPaginator="{Binding Source}"></DocumentPageView>源是DocumentPaginator的类型。错误是:
错误1不能在“DocumentPageView”类型的“DocumentPaginator”属性上设置“绑定”。“绑定”只能设置在DependencyProperty的DependencyObject上。
请帮帮我。Tnx..。
发布于 2012-01-06 15:37:08
你的错误信息说明了一切。只能将绑定应用到DependencyProperty。DocumentPaginator不是DependencyProperty of DocumentPageView,所以不能绑定到它。
https://stackoverflow.com/questions/8756170
复制相似问题