A 'Binding' cannot be set on the 'Headers' property of type 'MiniListView'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject

前端 未结 1 1488
甜味超标
甜味超标 2021-01-26 06:38

Here My Code,

    
        

        
1条回答
  •  日久生厌
    2021-01-26 06:53

    Owner type in dependency property registration is incorrect. It should be MiniListView and not MyListView

    HeadersProperty = DependencyProperty.Register("Headers",
                       typeof(Dictionary), typeof(MiniListView));
    

    0 讨论(0)
提交回复
热议问题