Binding to a dependency property of a user control WPF/XAML

前端 未结 4 1011
广开言路
广开言路 2021-02-07 10:08

My app looks like this:


SectionHeader

SectionHeader

Content

SectionHeader

Conte

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 10:55

    Apps="{Binding Path=Apps}"
    

    Binds Apps to itself.

    Try following

    1) Your ViewModel should be a DataContext of Control, then you can use following

    Apps="{Binding DataContext.Apps}"
    

    Also you can use Snoop utility to find binding issues in real time

提交回复
热议问题