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>

  • 相关阅读:
    我所理解的执行力
    iOS移动开发周报-第20期
    iOS移动开发周报-第19期
    iOS开发如何提高
    iOS移动开发周报-第18期
    iOS移动开发周报-第17期
    一起入门python3之元组和数列
    提权笔记本
    sqlmap笔记本
    SQL注入自学[第一学:一个简单的注入环境的编写]
  • 原文地址:https://www.cnblogs.com/swarb/p/9924365.html
Copyright © 2011-2022 走看看