<ListBox x:Name="housePlansLB" Margin="0" ItemsSource="{Binding HousePlansList}" Visibility="Collapsed">
    <ListBox.ItemTemplate>
        <DataTemplate>
            <view:HousePlanView /> <!-- 被引入的UserContrl -->
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>

重要的参考:

http://stackoverflow.com/questions/7389259/usercontrol-as-datatemplate-inside-listbox

相关文章:

  • 2022-12-23
  • 2021-12-24
  • 2022-02-05
  • 2022-03-13
  • 2022-12-23
  • 2022-01-07
  • 2022-01-07
  • 2021-11-27
猜你喜欢
  • 2021-12-31
  • 2021-08-10
  • 2021-05-19
  • 2022-12-23
  • 2021-04-11
  • 2022-12-23
相关资源
相似解决方案