zoukankan      html  css  js  c++  java
  • wpf 实现ItemsContro

            <ItemsControl ItemsSource="{Binding OtherInfoCollection}">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <WrapPanel Orientation="Horizontal"/>
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" Margin="10,10,0,0">
                            <Label Content="{Binding InfoType,Mode=OneWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,0,0,0"/>
                            <TextBox TextWrapping="Wrap" Margin="0" Text="{Binding InfoValue, Mode=OneWay}" VerticalAlignment="Center" Width="102" Height="25.837" HorizontalAlignment="Left" d:LayoutOverrides="HorizontalAlignment"/>
                        </StackPanel>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>

  • 相关阅读:
    java 设计模式 (一)
    多Linux安装
    华北电力大学 研究生学院 笔记
    电力大学 专升本
    19年 考研究生 过程
    netcat-flume-logger
    大神写的K8S 二进制安装笔记
    非常全的Mybatis学习笔记
    Docker-compose部署gitlab
    docker-compose 配合 dockerfile使用
  • 原文地址:https://www.cnblogs.com/swarb/p/9924365.html
Copyright © 2011-2022 走看看