Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1435
XamDataGrid CheckBox in Unbound Field Style
posted

Hello,

The following sample style is from the Infragistics Controls & Application Samples.

I have a wpf UserControl that host a XamDataGrid. I'm getting a wpf error: The member Template is not recognized or accessible.

Thank you

 <igDP:XamDataGrid.Resources>
                    <Style x:Key="ShowInChartCellStyle"
                       TargetType="{x:Type igDP:CellValuePresenter}">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
                                <Border BorderThickness="0,0,1,0"
                                        BorderBrush="{TemplateBinding BorderBrush}">
                                    <CheckBox 
                                              HorizontalAlignment="Center"
                                              IsChecked="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                                              VerticalAlignment="Center" />
                                </Border>

                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
         
            </igDP:XamDataGrid.Resources>