zoukankan      html  css  js  c++  java
  • WPF数据绑定(ItemTemplate和DataTemplate)

    <ListBox Name="lb_fileInfo" Grid.Row="1" Grid.ColumnSpan="3" ItemsSource="{Binding}" SelectionMode="Single" ScrollViewer.HorizontalScrollBarVisibility="Disabled"> 

    <ListBox.ItemsPanel> 
    <ItemsPanelTemplate> 
    <WrapPanel IsItemsHost="True" /> 
    </ItemsPanelTemplate> 
    </ListBox.ItemsPanel> 
    <ListBox.ItemTemplate> 
    <DataTemplate> 
    <Border Margin="3" BorderThickness="1" BorderBrush="SteelBlue" CornerRadius="2"> 
    <StackPanel Margin="3"> 
    <!--<StackPanel.ToolTip> 
    <Image Margin ="3" HorizontalAlignment="Center" Source="{Binding Path=bigThumbNail}" Stretch="None"></Image>

    </StackPanel.ToolTip>--> 
    <Image Margin ="3" HorizontalAlignment="Center" Source="{Binding Path=thumbNail}" Stretch="None"></Image>

    <TextBlock FontWeight="Bold" HorizontalAlignment ="Center" Margin ="3" Text="{Binding Path=name}"></TextBlock>

    <ProgressBar Height="10" Name="progressBar1" Width="200" /> 
    <TextBlock FontStyle="Italic" HorizontalAlignment="Center" FontSize="10" Margin ="3" Text="{Binding Path=revitType}"></TextBlock>

    </StackPanel> 
    </Border> 
    </DataTemplate> 
    </ListBox.ItemTemplate> 
    </ListBox>

  • 相关阅读:
    es的多种term查询
    es的批量导入
    可重入锁
    常见的字段类型
    es中的分词
    搜索的简单使用
    application.properties中的list配置
    mysql中的concat的几个函数使用
    文档的增删改查
    Mxnet学习笔记(3)--自定义Op
  • 原文地址:https://www.cnblogs.com/lipf/p/2473853.html
Copyright © 2011-2022 走看看