title: Checkbox checked event not firing in wpf
body: <p>hi in my form(adminentitylist.xaml) file contains the code is below </p>
  
  <pre><code>&lt;ResourceDictionary xmlns:local="clr-namespace:iWatch.Administration"  
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                   xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                   mc:Ignorable="d" 
                   xmlns:my="clr-namespace:iWatch.UILibrary;assembly=UILibrary" 
                   xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
                   xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" 
                   xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
                   xmlns:cmd="clr-namespace:iWatch.UILibrary;assembly=UILibrary"
                   x:Class="AdminEntityList"&gt;
  
      &lt;ControlTemplate x:Key="AddImgBtnTemplate" TargetType="Button"&gt;
          &lt;Grid&gt;
              &lt;Image Name="Normal" Source="/UILibrary;component/Themes/Default/Images/Add.png" Opacity="1.0" Height="18" Width="18"/&gt;
          &lt;/Grid&gt;
          &lt;ControlTemplate.Triggers&gt;
              &lt;Trigger Property="IsPressed" Value="True"&gt;
                  &lt;Setter TargetName="Normal" Property="Opacity" Value="0.5"/&gt;
              &lt;/Trigger&gt;
              &lt;Trigger Property="IsEnabled" Value="False"&gt;
                  &lt;Setter TargetName="Normal" Property="Opacity" Value="0.2"/&gt;
              &lt;/Trigger&gt;
          &lt;/ControlTemplate.Triggers&gt;
      &lt;/ControlTemplate&gt;
  
      &lt;ControlTemplate x:Key="DelImgBtnTemplate" TargetType="Button"&gt;
          &lt;Grid&gt;
              &lt;Image Name="Normal" Source="/UILibrary;component/Themes/Default/Images/Delete.png" Opacity="1.0" Height="18" Width="18"/&gt;
          &lt;/Grid&gt;
          &lt;ControlTemplate.Triggers&gt;
              &lt;Trigger Property="IsPressed" Value="True"&gt;
                  &lt;Setter TargetName="Normal" Property="Opacity" Value="0.5"/&gt;
              &lt;/Trigger&gt;
              &lt;Trigger Property="IsEnabled" Value="False"&gt;
                  &lt;Setter TargetName="Normal" Property="Opacity" Value="0.2"/&gt;
              &lt;/Trigger&gt;
          &lt;/ControlTemplate.Triggers&gt;
      &lt;/ControlTemplate&gt;
  
          &lt;Style TargetType="{x:Type local:AdminEntityList}"&gt;
          &lt;Setter Property="FontFamily" Value="Calibri"/&gt;
          &lt;Setter Property="dx:ThemeManager.ThemeName" Value="Office2007Black"/&gt;
          &lt;Setter Property="Template" &gt;
              &lt;Setter.Value&gt;
  
                  &lt;ControlTemplate TargetType="{x:Type local:AdminEntityList}"&gt;
                      &lt;DockPanel&gt;
                          &lt;DockPanel DockPanel.Dock="Top"&gt;
                              &lt;StackPanel Name="StpFilter" Orientation="Horizontal" HorizontalAlignment="Left" Margin="5"&gt;
                                  &lt;ContentControl x:Name="FilterCriteriaArea" ContentTemplate="{TemplateBinding FilterCriteriaArea}"/&gt;
                              &lt;/StackPanel&gt;
                             &lt;StackPanel Name="StpCountry" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5" &gt;
                                  &lt;Label  Content="Select Country" Name="lblCountry" Style="{StaticResource lblNormal}" Margin="10,0,5,7" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Visibility="Collapsed"/&gt;
                                  &lt;ComboBox Name="cbCountry"  Width="170" Style="{StaticResource ddlNormal}"  SelectedValue="{Binding CountryKey,Mode=TwoWay}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,2,10,0" Visibility="Collapsed"/&gt;
                                  &lt;Button Content="Filter" Name="btnFilter" Width="70" Height="23" Margin="0,0,10,0" Visibility="Collapsed"/&gt;                          
                            &lt;/StackPanel&gt;
                              &lt;StackPanel Name="actinact" Orientation="Horizontal" HorizontalAlignment="Left" Margin="5"&gt;
                                  &lt;CheckBox Name="chkactive" Height="18" Content="Active" Checked="chkactive_Checked"&gt;&lt;/CheckBox&gt;
                                  &lt;CheckBox Name="chkinactive" Height="18" Content="In-Active"/&gt;
                              &lt;/StackPanel&gt;
                              &lt;StackPanel Name="StpAddDel" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5"&gt;
                                  &lt;Button Name="BtnAdd"  Height="20" Width="20" Margin="5,0" Template="{StaticResource AddImgBtnTemplate}" /&gt;
                                  &lt;Button Name="BtnDel" Height="20" Width="20" Margin="5,0" Template="{StaticResource DelImgBtnTemplate}" /&gt;
                              &lt;/StackPanel&gt;
  
                          &lt;/DockPanel&gt;
                          &lt;DockPanel Name="AMLDP"&gt;
                              &lt;dxg:GridControl Name="genericGrid" AutoPopulateColumns="true"  ShowBorder="False"  
                           DesignTimeDataSourceRowCount="50"  DataSource="{Binding}"
                            Padding="0" Margin="0,0,0,0" IsManipulationEnabled="True" dx:ThemeManager.ThemeName="CPCEGridTheme"&gt;
                                  &lt;dxg:GridControl.Resources&gt;
                                      &lt;ResourceDictionary x:Key="CPCEGridTheme" Source="/UILibrary;component/Themes/Default/Styles/DataGrid/CPCEGridTheme.xaml" /&gt;
                                  &lt;/dxg:GridControl.Resources&gt;
                                  &lt;dxg:GridControl.View&gt;
                                          &lt;dxg:TableView x:Name="tblGeneric" MultiSelectMode="Row" AllowGrouping="True" ClipToBounds="True"  AutoWidth="True" 
                                          ShowGroupPanel="False" ShowHorizontalLines="True" ShowVerticalLines="False" AllowMoveColumnToDropArea="False" AllowDrop="False"                                                                                                  
                                          IsGroupPanelMenuEnabled="False"  AllowEditing="False" NavigationStyle="Cell" Margin="0" 
                                          GroupRowStyle="{StaticResource OddEvenRowStyle}" VirtualizingStackPanel.IsVirtualizing="True" 
                                          VirtualizingStackPanel.VirtualizationMode="Standard" AllowHorizontalScrollingVirtualization="True" 
                                          RowStyle="{StaticResource OddEvenRowStyle}" CellStyle="{StaticResource FocusedCellStyle}"&gt;
                                          &lt;dxg:TableView.RowCellMenuCustomizations&gt;
                                              &lt;dxb:BarButtonItem Name="ctmView" IsVisible="False"  Content="View" Command="{x:Static cmd:CustomCommands.View}" /&gt;
                                              &lt;dxb:BarButtonItem Name="ctmEdit" IsVisible="True"  Content="Edit" Command="{x:Static cmd:CustomCommands.Edit}" /&gt;
                                              &lt;dxb:BarButtonItem Name="ctmMIQ" IsVisible="False"  Content="Manage Interview Questions" Command="{x:Static cmd:CustomCommands.ManageInterviewQuestions}" /&gt;
                                              &lt;dxb:BarButtonItem Name="ctmActivate" IsVisible="False" Content="Activate" Command="{x:Static cmd:CustomCommands.Activate}" /&gt;
                                              &lt;dxb:BarButtonItem Name="ctmCopyInterviewType" IsVisible="False" Content="Copy Interview Type" Command="{x:Static cmd:CustomCommands.CopyInterviewType}" /&gt;
                                              &lt;dxb:BarButtonItem Name="ctmAssignInvGroup" IsVisible="False" Content="Assign Investigative Group" Command="{x:Static cmd:CustomCommands.AssignInvestigativeGroup}" /&gt;
                                              &lt;dxb:BarButtonItem Name="ctmCopySelected" IsVisible="False" Content="Copy From Selected" Command="{x:Static cmd:CustomCommands.CopyInterviewTemplate}" /&gt;
                                          &lt;/dxg:TableView.RowCellMenuCustomizations&gt;
                                      &lt;/dxg:TableView&gt;
                                  &lt;/dxg:GridControl.View&gt;
                                  &lt;dxg:GridControl.CommandBindings&gt;
                                      &lt;CommandBinding x:Name="cmdEdit" Command="{x:Static cmd:CustomCommands.Edit}" /&gt;
                                      &lt;CommandBinding x:Name="cmdView" Command="{x:Static cmd:CustomCommands.View}" /&gt;
                                      &lt;CommandBinding x:Name="cmdMIQ" Command="{x:Static cmd:CustomCommands.ManageInterviewQuestions}" /&gt;
                                      &lt;CommandBinding x:Name="cmdActivate" Command="{x:Static cmd:CustomCommands.Activate}" /&gt;
                                      &lt;CommandBinding x:Name="cmdCopyInterviewType" Command="{x:Static cmd:CustomCommands.CopyInterviewType}" /&gt;
                                      &lt;CommandBinding x:Name="cmdAssignInvestigativeGroup" Command="{x:Static cmd:CustomCommands.AssignInvestigativeGroup}" /&gt;
                                      &lt;CommandBinding x:Name="cmdCopySelected" Command="{x:Static cmd:CustomCommands.CopyInterviewTemplate}" /&gt;
  
                                  &lt;/dxg:GridControl.CommandBindings&gt;
                              &lt;/dxg:GridControl&gt;
                          &lt;/DockPanel&gt;
                      &lt;/DockPanel&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>in the above code i created the checkbox checked event <code>Checked="chkactive_Checked"</code></p>
  
  <pre><code>private void chkactive_Checked(object sender, RoutedEventArgs e)
          {
  
          }
  </code></pre>
  
  <p>but the event is not firing and i am getting an error is </p>
  
  <blockquote>
    <p>Error 14  'AdminEntityList' does not contain a definition for
    'chkactive_Checked' and no extension method 'chkactive_Checked'
    accepting a first argument of type 'AdminEntityList' could be found
    (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>please help me with is problem...</p>