【问题标题】:How XAML through binding listbox to northwind databaseXAML 如何通过绑定列表框到北风数据库
【发布时间】:2011-01-03 17:52:24
【问题描述】:

是否有任何示例使用 xml 将ListBox 绑定到北风数据库? 例如,我想使用northwind 数据库绑定我的ListBox。我有 norhtwind.mdb 文件 那么我如何才能仅在 xml 中绑定ListBox 请告诉我谢谢.......

【问题讨论】:

    标签: wpf xml data-binding listbox


    【解决方案1】:

    使用 ListBox 的 ItemsSource-Property。

       <ListBox ItemsSource={Binding Source={StaticResource xmlFileRes}, Path=/doc/element, Mode=OneWay}/>
    

    【讨论】:

      猜你喜欢
      • 2012-10-21
      • 1970-01-01
      • 2015-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多