0

how binding DocumentPageView in WPF?
my code:

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

Source is type of DocumentPaginator. error is:

Error 1 A 'Binding' cannot be set on the 'DocumentPaginator' property of type 'DocumentPageView'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject.

please help me. Tnx...

Mehrdad
  • 405
  • 1
  • 6
  • 10

1 Answers1

3

Your error message says it all. You can only apply a binding to a DependencyProperty. DocumentPaginator is not a DependencyProperty of DocumentPageView, so you cannot bind to it.

Stewbob
  • 16,759
  • 9
  • 63
  • 107