title: cannot create an instance in xaml in silverlight 4.0
body: <p>In the xaml  code i  get an error telling  cannot create an instance  of 
  this  AllEmployeeViewModel  class file, actually  this class file exists in the solution  folder when i  type scr: the intellsene shows me the class file</p>
  
  <pre><code>&lt;UserControl.Resources&gt;
      &lt;scr:AllEmployeeViewModel  x:Key="empName"&gt;&lt;/scr:AllEmployeeViewModel&gt;
  &lt;/UserControl.Resources&gt;
  &lt;Grid x:Name="MainGrid" Background="White" Width="400"
      Height="407" DataContext="{Binding Source={StaticResource empName}}" &gt;
  &lt;Grid  x:Name="grdAllEmp" DataContext="{Binding Path=EmployeeClass}"&gt;
      &lt;sdk:DataGrid AutoGenerateColumns="True" Height="274" 
                      HorizontalAlignment="Left" Margin="8,8,0,0" 
                      Name="dgEmployee" VerticalAlignment="Top" Width="385"
                      ItemsSource="{Binding}"/&gt;
      &lt;Button Content="Get All Employees" Height="23" 
              HorizontalAlignment="Left" Margin="12,288,0,0" 
              Name="btnAllEmplloyees" VerticalAlignment="Top" Width="381" 
              Command="{Binding  Path=DataContext.GetEmployees,ElementName=MainGrid}"/&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>i  am trying to bind the data to grid, if  i ignore the compile time error and  run its gives an error key not found.</p>
  
  <p>please let me know the  solutionif you know,working on this issue from past  2days</p>
  
  <p>any help  would be great
  thanks.</p>