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

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

My app looks like this:


SectionHeader

SectionHeader

Content

SectionHeader

Conte

4条回答
  •  清歌不尽
    2021-02-07 10:42

    Give a name to your usecontrol and try binding like this

    ItemsSource="{Binding Apps,ElementName=root}"
    

    and root is the name give to your usercontrol

      
    

    it is element binding to user control which has Apps property

提交回复
热议问题