How to get rid of annoying HorizontalContentAlignment binding warning?

前端 未结 4 2094
既然无缘
既然无缘 2020-12-31 03:47

I am working on a large WPF project and during debug my output window is filled with these annoying warnings:

System.Windows.Data Information: 10 : Ca

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-31 04:31

    Same problem is with 'MenuItem' if it is placed directly in panels like 'StackPanel' etc. And can be fixed using Carter's answer above, just replace 'ComboBoxItem' with 'MenuItem' in that 'Style'

提交回复
热议问题