title: Xamarin Forms throw Exception is not found in xmlns clr-namespace:
body: <p>I work in xamarin forms for cross mobile application but IList variable want show Count then throw Exception.</p>
  
  <p><strong>Exception Detail:</strong>
  Xamarin.Forms.Xaml.XamlParseException: Position 19:64. Type  PersonFactory not found in xmlns clr-namespace:MHG.Sample.Model;assembly=MHG.Sample</p>
  
  <p><strong>.Xaml File Content</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
               xmlns:local="clr-namespace:MHG.Sample.Model;assembly=MHG.Sample"
               x:Class="MHG.Sample.Templates.ListViewSampleWithLocalImage"&gt;
  
    &lt;ContentPage.Padding&gt;
      &lt;OnPlatform  x:TypeArguments="Thickness" iOS="0,20,0,0" /&gt;
    &lt;/ContentPage.Padding&gt;
  
    &lt;ContentPage.Resources&gt;
      &lt;ResourceDictionary&gt;
        &lt;local:ImageSourceConverter x:Key="ImageSourceConverter" /&gt;
      &lt;/ResourceDictionary&gt;
    &lt;/ContentPage.Resources&gt;
  
    &lt;ContentPage.Content&gt;
      &lt;StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"&gt;
        &lt;ListView x:Name="LstPeople" ItemsSource="{ Binding . }" Footer="{ Binding Count, Source={ x:Static local: PersonFactory.People }"&gt;
  
          &lt;ListView.Header&gt;
            &lt;ContentView Padding="0,5" BackgroundColor="#fff"&gt;
              &lt;Label FontSize="Medium" TextColor="#000" Text="MHG Sample" HorizontalOptions="Center" VerticalTextAlignment="Center"&gt;&lt;/Label&gt;
            &lt;/ContentView&gt;
          &lt;/ListView.Header&gt;
  
          &lt;ListView.ItemTemplate&gt;
            &lt;DataTemplate&gt;
              &lt;ImageCell Text="{ Binding Fullname }" TextColor="Black" Detail="{ Binding Description }" DetailColor="Gray" ImageSource="{Binding ImageUrl, Converter={ StaticResource ImageSourceConverter }"&gt;&lt;/ImageCell&gt;
            &lt;/DataTemplate&gt;
          &lt;/ListView.ItemTemplate&gt;
  
          &lt;ListView.FooterTemplate&gt;
            &lt;DataTemplate&gt;
              &lt;ContentView Padding="0,5,5,0"&gt;
                &lt;Label FontSize="Medium"
                       TextColor="#666"
                       HorizontalOptions="Center"
                       HorizontalTextAlignment="End"
                       Text="{Binding ., StringFormat = '{0} kişi mevcut.' }"&gt;&lt;/Label&gt;
              &lt;/ContentView&gt;
            &lt;/DataTemplate&gt;
          &lt;/ListView.FooterTemplate&gt;
        &lt;/ListView&gt;
      &lt;/StackLayout&gt;
    &lt;/ContentPage.Content&gt;
  
  &lt;/ContentPage&gt;
  </code></pre>
  
  <p><strong>PersonFactory.cs File Content(this file is .xaml Data Factory)</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Collections.ObjectModel;
  
  namespace MHG.Sample.Model
  {
      public static class PersonFactory
      {
          public static List&lt;Person&gt; People = new List&lt;Person&gt;();
  
          static PersonFactory()
          {
              var list =  new ObservableCollection&lt;Person&gt;();
              for (var i = 0; i &lt; new Random().Next(10, 100); i++)
              {
                  var person = new Person(i, Faker.Name.First(), Faker.Name.Last(), $"{new Random().Next(1, 10)}.jpg")
                  {
                      Description = Faker.Lorem.Sentence()
                  };
                  list.Add(person);
              }
              People.AddRange(list);
          }
      }
  }
  </code></pre>
  
  <p><strong>Edit(2016/12/06 12:23AM GMT +3)</strong> </p>
  
  <p>Solved this problem;
  <code>x:Static local: PersonFactory.People</code> 
  remove blank space local: between PersonFactory keyword.
  <code>x:Static local:PersonFactory.People</code> </p>