title: WPF designer issues : XDG0008 The name "NumericTextBoxConvertor" does not exist in the namespace "clr-namespace:PulserTester.Convertors"
body: <p>I have an error that not let me see my designer..   but I have no error on a build and my program runs fine with no problem</p>
  <p>I have tried to:</p>
  <ul>
  <li>Clean and Rebuild</li>
  <li>Update Visual Studio</li>
  <li>Repair Visual Studio</li>
  <li>Restart my pc</li>
  </ul>
  <p>Nothing helped. I have no idea what more I can to do to solve it.</p>
  <p>I have to try to see in here and not worked for me even after restarted visual studio, re-built the solution</p>
  <p><a href="https://stackoverflow.com/questions/15051121/the-name-does-not-exist-in-the-namespace-clr-namespace">the name &lt;...&gt; does not exist in the namespace clr-namespace &lt;...&gt;</a></p>
  <p>this is my Error:</p>
  <p><a href="https://i.stack.imgur.com/hAFBf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hAFBf.png" alt="enter image description here" /></a></p>
  <p>this is Xaml file:</p>
  <pre><code>&lt;Window x:Class=&quot;PulserTester.windows.ConfigPage&quot;
               xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
               xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
               xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; 
               xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; 
               xmlns:local=&quot;clr-namespace:PulserTester.windows&quot;
          xmlns:Convertors=&quot;clr-namespace:PulserTester.Convertors&quot;
          mc:Ignorable=&quot;d&quot; 
               d:DesignHeight=&quot;575.068&quot; Width=&quot;500&quot;&gt;
      &lt;Window.Resources&gt;
          &lt;Convertors:NumericTextBoxConvertor x:Key=&quot;NumericTextBoxConvertor&quot; /&gt;
      &lt;/Window.Resources&gt;
      &lt;Grid Background=&quot;White&quot;&gt;
          &lt;StackPanel&gt;
              &lt;StackPanel Margin=&quot;5&quot;&gt;
                  &lt;TextBlock HorizontalAlignment=&quot;Right&quot;&gt;שם הפולסר&lt;/TextBlock&gt;
                  &lt;TextBox HorizontalAlignment=&quot;Right&quot; MinWidth=&quot;100&quot; Text=&quot;{Binding PulserName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}&quot;&gt;&lt;/TextBox&gt;
              &lt;/StackPanel&gt;
  
              &lt;StackPanel Margin=&quot;5&quot;&gt;
                  &lt;TextBlock HorizontalAlignment=&quot;Right&quot;&gt;האם להציג הודעה במצב של כישלון&lt;/TextBlock&gt;
                  &lt;CheckBox  HorizontalAlignment=&quot;Right&quot; IsChecked=&quot;{Binding FailQuestion,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}&quot;&gt;&lt;/CheckBox&gt;
              &lt;/StackPanel&gt;
  
              &lt;StackPanel Margin=&quot;5&quot;&gt;
                  &lt;TextBlock HorizontalAlignment=&quot;Right&quot;&gt;האם לאפשר בדיקת כיול&lt;/TextBlock&gt;
                  &lt;CheckBox  HorizontalAlignment=&quot;Right&quot; IsChecked=&quot;{Binding CalibrationOption,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}&quot;&gt;&lt;/CheckBox&gt;
              &lt;/StackPanel&gt;
  
              &lt;StackPanel Margin=&quot;5&quot;&gt;
                  &lt;TextBlock HorizontalAlignment=&quot;Right&quot;&gt;סגנון הבדיקה&lt;/TextBlock&gt;
                  &lt;ComboBox HorizontalAlignment=&quot;Right&quot; Width=&quot;213&quot;
                            ItemsSource=&quot;{Binding CheckStyles.Keys}&quot;
                            SelectedItem=&quot;{Binding CheckStyleSelected,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}&quot;
                            &gt;&lt;/ComboBox&gt;
              &lt;/StackPanel&gt;
  
              &lt;StackPanel Margin=&quot;5&quot;&gt;
                  &lt;TextBlock HorizontalAlignment=&quot;Right&quot;&gt;מספר המפעל&lt;/TextBlock&gt;
                  &lt;ComboBox HorizontalAlignment=&quot;Right&quot; Width=&quot;213&quot;
                            ItemsSource=&quot;{Binding FactoriesNumbers}&quot;
                            SelectedItem=&quot;{Binding FactorySelected,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}&quot;
                            &gt;&lt;/ComboBox&gt;
              &lt;/StackPanel&gt;
  
              &lt;StackPanel Margin=&quot;5&quot;&gt;
                  &lt;TextBlock HorizontalAlignment=&quot;Right&quot;&gt;תדירות השמירה בבידקות&lt;/TextBlock&gt;
                  &lt;TextBox HorizontalAlignment=&quot;Right&quot; MinWidth=&quot;100&quot; Text=&quot;{Binding SaveBatteryFreq,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NumericTextBoxConvertor}}&quot;&gt;&lt;/TextBox&gt;
              &lt;/StackPanel&gt;
  
              &lt;StackPanel Margin=&quot;5&quot;&gt;
                  &lt;TextBlock HorizontalAlignment=&quot;Right&quot;&gt;לאפשר גבולות סטטסיטיים&lt;/TextBlock&gt;
                  &lt;CheckBox  HorizontalAlignment=&quot;Right&quot; IsChecked=&quot;{Binding AllowUsingStatistic, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}&quot;&gt;&lt;/CheckBox&gt;
              &lt;/StackPanel&gt;
  
              &lt;StackPanel Margin=&quot;5&quot;&gt;
                  &lt;TextBlock HorizontalAlignment=&quot;Right&quot;&gt;מספר התאים לתחילת הסטטסיטיקה&lt;/TextBlock&gt;
                  &lt;TextBox HorizontalAlignment=&quot;Right&quot; MinWidth=&quot;100&quot; Text=&quot;{Binding NumberOfCellToStartTheStatistics,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, Converter={ StaticResource  NumericTextBoxConvertor}}&quot;&gt;&lt;/TextBox&gt;
  
              &lt;/StackPanel&gt;
  
              &lt;StackPanel Margin=&quot;5&quot;&gt;
                  &lt;TextBlock HorizontalAlignment=&quot;Right&quot;&gt;מספר התאים להתחול הסטטיסטיקה מחדש&lt;/TextBlock&gt;
                  &lt;TextBox HorizontalAlignment=&quot;Right&quot; MinWidth=&quot;100&quot; Text=&quot;{Binding NumberOfCellToRestartTheStatistics,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, Converter={ StaticResource  NumericTextBoxConvertor}}&quot;&gt;&lt;/TextBox&gt;
              &lt;/StackPanel&gt;
  
              &lt;StackPanel Margin=&quot;5&quot;&gt;
                  &lt;Button Command=&quot;{Binding Path=SaveCommand}&quot;&gt;bb&lt;/Button&gt;
              &lt;/StackPanel&gt;
  
             
          &lt;/StackPanel&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  <p>this is my convertor:</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows;
  using System.Windows.Data;
  
  namespace PulserTester.Convertors
  {
      public class NumericTextBoxConvertor : IValueConverter
      {
          public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
          {
              return value.ToString();
          }
  
          public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
          {
              string val = value.ToString();
  
              long ret = long.TryParse(new string(val.Where(char.IsDigit).ToArray()), out long result) ? result : 0;
              if (ret &gt; int.MaxValue)
              {
                  ret = int.MaxValue;
              }
              return ret;
          }
      }
  }
  </code></pre>