当前位置: 代码迷 >> Silverlight >> 获取控件值解决思路
  详细解决方案

获取控件值解决思路

热度:7735   发布时间:2013-02-26 00:00:00.0
获取控件值
本帖最后由 kingdom_0 于 2012-08-28 14:05:54 编辑
  <sdk:DataGridTemplateColumn Header="全选"  CanUserResize="False" Width="44">
                            <sdk:DataGridTemplateColumn.HeaderStyle>
                                <Style TargetType="sdk:DataGridColumnHeader">
                                    <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
                                    <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
                                    <Setter Property="ContentTemplate">
                                        <Setter.Value>
                                            <DataTemplate>
                                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                                                    <TextBlock Text="" Width="12"/>
                                                    <CheckBox Name="chkAll" Checked="chkAll_Checked" Unchecked="chkAll_Unchecked"  />
                                                </StackPanel>
                                            </DataTemplate>
                                        </Setter.Value>
  相关解决方案