zoukankan      html  css  js  c++  java
  • datagrid Checkbox

    <DataGrid VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling"  Name="dataGrid1" AutoGenerateColumns="False" ItemsSource="{Binding}" HorizontalGridLinesBrush= "{DynamicResource GridLinesBrush}" VerticalGridLinesBrush="{DynamicResource GridLinesBrush}"  AlternatingRowBackground="{DynamicResource RowBackgroundBrush}" CanUserAddRows="False"  CanUserResizeRows="False" CanUserDeleteRows="False" IsEnabled="True" Margin="0" RowHeight="20"   CellStyle="{DynamicResource DataGridCellStyle2}" ColumnHeaderStyle="{DynamicResource DataGridColumnHeaderStyle1}"  RowStyle="{DynamicResource DataGridRowStyle1}" RowHeaderStyle="{DynamicResource DataGridRowHeaderStyle1}"  ItemsPanel="{DynamicResource ItemsPanelTemplate1}" RowHeaderWidth="0" IsSynchronizedWithCurrentItem="True"  SelectionMode="Single" MinWidth="10" BorderThickness="0" GridLinesVisibility="Horizontal" ColumnHeaderHeight="22"  ScrollViewer.CanContentScroll="False" >   <DataGrid.Columns>     <DataGridTemplateColumn Header="选择" CanUserReorder="False">       <DataGridTemplateColumn.CellTemplate>         <DataTemplate>           <CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Cursor="Hand"/>         </DataTemplate>         </DataGridTemplateColumn.CellTemplate>     </DataGridTemplateColumn>     <DataGridTextColumn Header="标题" Binding="{Binding Title, Mode=OneWay}" />   </DataGrid.Columns> </DataGrid>

      IsChecked="{Binding IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"

  • 相关阅读:
    博客迁移至wordpress--http://i1994898w1.imwork.net/wordpress
    超外差接收机的中频选择
    The Basics of the Doherty Amplifier-Bill Slade [转载]
    闻灾情 忆国殇 山河呜咽 寄哀思
    Simplest Doppler Radar System
    开发人员的奋斗目标
    敏捷开发的推理
    在创业型软件公司的收获
    人才市场的IT职位分析
    MySQL 基础及性能优化工具
  • 原文地址:https://www.cnblogs.com/yuanchao/p/11137110.html
Copyright © 2011-2022 走看看