WPF MultiBinding in Convertor fails ==> DependencyProperty.UnsetValue

前端 未结 5 998
故里飘歌
故里飘歌 2020-12-31 10:23

My code fails at at startup because the values array in the Converter that is called by the Multibinding is not filled with proper value bu

5条回答
  •  死守一世寂寞
    2020-12-31 11:19

    It looks like you might not have the correct DataContext to resolve the path CurrentPage.Page_Number. A good way of debugging this sort of thing is to remove the path so that you can inspect the DataContext within your value converter:

    
    

    Then set a breakpoint in your ButtonColorConverter and have a look at exactly what you are trying to convert.

提交回复
热议问题