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>

相关推荐
2601_9498095920 小时前
flutter_for_openharmony家庭相册app实战+我的Tab实现
java·javascript·flutter
Up九五小庞20 小时前
开源埋点分析平台 ClkLog 本地部署 + Web JS 埋点测试实战--九五小庞
前端·javascript·开源
猷咪20 小时前
C++基础
开发语言·c++
IT·小灰灰20 小时前
30行PHP,利用硅基流动API,网页客服瞬间上线
开发语言·人工智能·aigc·php
快点好好学习吧20 小时前
phpize 依赖 php-config 获取 PHP 信息的庖丁解牛
android·开发语言·php
秦老师Q20 小时前
php入门教程(超详细,一篇就够了!!!)
开发语言·mysql·php·db
烟锁池塘柳020 小时前
解决Google Scholar “We‘re sorry... but your computer or network may be sending automated queries.”的问题
开发语言
是誰萆微了承諾20 小时前
php 对接deepseek
android·开发语言·php
2601_9498683620 小时前
Flutter for OpenHarmony 电子合同签署App实战 - 已签合同实现
java·开发语言·flutter
摘星编程21 小时前
React Native + OpenHarmony:UniversalLink通用链接
javascript·react native·react.js