WPF ItemsControl 绑定

<ItemsControl Name="itemsControl">

<ItemsControl.ItemTemplate>

<DataTemplate>

<StackPanel Orientation="Horizontal">

<RadioButton Style="{DynamicResource WorkstationButtonStyle}" Content="{Binding WorkstationName}" Margin="5,0,0,0"/>

</StackPanel>

</DataTemplate>

</ItemsControl.ItemTemplate>

<ItemsControl.ItemsPanel>

<ItemsPanelTemplate>

<StackPanel Orientation="Horizontal"/>

<!--<WrapPanel Orientation="Horizontal"/>-->

</ItemsPanelTemplate>

</ItemsControl.ItemsPanel>

</ItemsControl>

相关推荐
2301_7890156216 小时前
C++:异常
开发语言·c++·异常·异常的处理方式
小沐°16 小时前
vue3+element-plus 实现动态菜单和动态路由的渲染
前端·javascript·vue.js
CVer儿16 小时前
c++接口内部内存分配问题设计
开发语言·c++
如若12316 小时前
ERROR:pdf2zh.converter:‘str‘ object has no attribute ‘choices‘ converter.py:357
java·开发语言·servlet
2301_7890156216 小时前
C++:智能指针
c语言·开发语言·汇编·c++·智能指针
沐知全栈开发16 小时前
SOAP 语法详解
开发语言
cch891816 小时前
PHP vs Java:谁更适合你的项目?
java·开发语言·php
lg_cool_16 小时前
Python 框架之py_trees
开发语言·数据结构·python
蓝黑202016 小时前
Vue导入和注册组件
前端·javascript·vue
ct97816 小时前
Vue3 状态管理方案:Pinia 全指南
javascript·vue.js