C# with WPF designer issues : XDG0008 The name "NumericTextBoxConvertor" does not exist in the namespace "clr-namespace:PulserTester.Convertors"

xdg0008 the name does not exist in the namespace
xaml namespace
wpf assembly
the namespace prefix is not defined wpf
xmlns:d
xaml cannot find class in namespace
wpf custom control does not exist in the namespace
namespace error in visual studio

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

I have tried to:

Clean and Rebuild Update Visual Studio Repair Visual Studio Restart my pc

Nothing help... I have no idea what more I can to do to solve it...

I have to try to see in here and not worked for me even after restarted visual studio, re-built the solution the name <...> does not exist in the namespace clr-namespace <...>

this is my Error:

this is Xaml file:

<Window x:Class="PulserTester.windows.ConfigPage"
             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" 
             xmlns:local="clr-namespace:PulserTester.windows"
        xmlns:Convertors="clr-namespace:PulserTester.Convertors"
        mc:Ignorable="d" 
             d:DesignHeight="575.068" Width="500">
    <Window.Resources>
        <Convertors:NumericTextBoxConvertor x:Key="NumericTextBoxConvertor" />
    </Window.Resources>
    <Grid Background="White">
        <StackPanel>
            <StackPanel Margin="5">
                <TextBlock HorizontalAlignment="Right">שם הפולסר</TextBlock>
                <TextBox HorizontalAlignment="Right" MinWidth="100" Text="{Binding PulserName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
            </StackPanel>

            <StackPanel Margin="5">
                <TextBlock HorizontalAlignment="Right">האם להציג הודעה במצב של כישלון</TextBlock>
                <CheckBox  HorizontalAlignment="Right" IsChecked="{Binding FailQuestion,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></CheckBox>
            </StackPanel>

            <StackPanel Margin="5">
                <TextBlock HorizontalAlignment="Right">האם לאפשר בדיקת כיול</TextBlock>
                <CheckBox  HorizontalAlignment="Right" IsChecked="{Binding CalibrationOption,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></CheckBox>
            </StackPanel>

            <StackPanel Margin="5">
                <TextBlock HorizontalAlignment="Right">סגנון הבדיקה</TextBlock>
                <ComboBox HorizontalAlignment="Right" Width="213"
                          ItemsSource="{Binding CheckStyles.Keys}"
                          SelectedItem="{Binding CheckStyleSelected,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                          ></ComboBox>
            </StackPanel>

            <StackPanel Margin="5">
                <TextBlock HorizontalAlignment="Right">מספר המפעל</TextBlock>
                <ComboBox HorizontalAlignment="Right" Width="213"
                          ItemsSource="{Binding FactoriesNumbers}"
                          SelectedItem="{Binding FactorySelected,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                          ></ComboBox>
            </StackPanel>

            <StackPanel Margin="5">
                <TextBlock HorizontalAlignment="Right">תדירות השמירה בבידקות</TextBlock>
                <TextBox HorizontalAlignment="Right" MinWidth="100" Text="{Binding SaveBatteryFreq,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, Converter={StaticResource NumericTextBoxConvertor}}"></TextBox>
            </StackPanel>

            <StackPanel Margin="5">
                <TextBlock HorizontalAlignment="Right">לאפשר גבולות סטטסיטיים</TextBlock>
                <CheckBox  HorizontalAlignment="Right" IsChecked="{Binding AllowUsingStatistic, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></CheckBox>
            </StackPanel>

            <StackPanel Margin="5">
                <TextBlock HorizontalAlignment="Right">מספר התאים לתחילת הסטטסיטיקה</TextBlock>
                <TextBox HorizontalAlignment="Right" MinWidth="100" Text="{Binding NumberOfCellToStartTheStatistics,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, Converter={ StaticResource  NumericTextBoxConvertor}}"></TextBox>

            </StackPanel>

            <StackPanel Margin="5">
                <TextBlock HorizontalAlignment="Right">מספר התאים להתחול הסטטיסטיקה מחדש</TextBlock>
                <TextBox HorizontalAlignment="Right" MinWidth="100" Text="{Binding NumberOfCellToRestartTheStatistics,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged, Converter={ StaticResource  NumericTextBoxConvertor}}"></TextBox>
            </StackPanel>

            <StackPanel Margin="5">
                <Button Command="{Binding Path=SaveCommand}">bb</Button>
            </StackPanel>


        </StackPanel>
    </Grid>
</Window>

this is my convertor :

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 > int.MaxValue)
            {
                ret = int.MaxValue;
            }
            return ret;
        }
    }
}

You can switch to another framework version then switch back to your version, in my case I'm using VS 16.4. I changed from framework 4.6.2 to 4.7.2 then switch back to 4.6.2.

This simple action solve XDG0008 and XDG0012 in my project.

[Solved] XAML Designer can not find any files in my local , If someone has some insight into this issue I'm all ears! Solution Structure Image Of Solution XAML Code. Hide Copy Code. <Window  XAML WPF The name "XXXXX" Does Not Exist in the NameSpace "MyProjectNameSpace" Closed - Lower Priority windows 6.1 visual studio 2017 wpf. crokett reported Jun 15, 2017 at 06:25 PM. From Help->About: Microsoft Visual Studio Professional 2017 Version 15.0.26228.9 D15RTWSVC Microsoft .NET Framework Version 4.6.01055 Installed Version

Your problem is the x:Key in your resource section. The x:Key can not be the same name as the actual class name. So where you have resource, change to ex "myNumericTextBoxConverter" THEN change all your static references to the "myNumeric…" reference and it will resolve.

<Window.Resources>
   <Convertors:NumericTextBoxConvertor x:Key="myNumericTextBoxConvertor" />
</Window.Resources>

The "xmlns" is a shortcut pointer to the class itself. The the converter "x:Key" needs to be a different name than the actual final name of the method it represents, even if it is a single character difference, sometimes can even be case difference.

The name does not exist in the namespace "http , Since today Visual Studio 2017 Designer shows errors for all WPF Error XDG0008 The name "LocText" does not exist in the namespace  Intellisense does recognize the name of my custom control and suggests to add the proper using: directives, but not only XAML designer doesn't find the name of the control but I can't get through compilation either.

I just want to reiterate a solution that @Bradley Uffner mentioned buried in the comments above.

  1. Close Visual Studio
  2. Delete the hidden .VS folder
  3. Open Visual Studio and rebuild your project

Keep in mind that this is a very generic error that has multiple causes and solutions so this may not work for you, but it's definitely worth a shot since I know it has worked for me in the past on several occasions.

XAML WPF The name "XXXXX" Does Not Exist in the NameSpace , XAML WPF The name "XXXXX" Does Not Exist in the NameSpace Visual C# 2017 00370-10000-50967-AA232 Microsoft Visual C# 2017 ASP. XAML Designer to see if the errors go away (no worries, you will still get I moved the project to the Virtual Machine C: drive and all of my issues cleared up. One common solution to this known VS bug that you haven't specified as having tried is changing the build target platform. If your current build target platform is x64, change to x86. If it's currently x86, change to x64. Clean and Build solution for new target platform.

XAML Namespaces and Namespace Mapping, A XAML namespace is really an extension of the concept of an XML namespace. to a XAML file through a partial class, you must name that class as the x:Class attribute C# Copy. namespace SDKSample { public class ExampleClass WPF Designer for Visual Studio uses a designer namespace that is  WPF XAML The name "xxx" does not exist in the namespace "ProjectDefaultNamespace" windows 10.0 visual studio 2017 rc xaml tools Jamie Johnson reported Jan 25, 2017 at 11:05 PM

The name does not exist in the namespace error in XAML, The name does not exist in the namespace error in XAML xdg0008 the name does not exist in the namespace I am converting a C# version of the tutorial to VB. the xmlns:c= tag and also when typing the class object using <c: But the object is underlined and errors are generated trying to build or work in the designer. In the Language dropdown, select either C# or Visual Basic. Select the WPF App (.NET Framework) template and then select Next. The Configure your new project dialog opens. Enter the project name ExpenseIt and then select Create. Visual Studio creates the project and opens the designer for the default application window named MainWindow.xaml.

Error: The name UserControl does not exist in the namespace , ListBox. XAML The name UserControl does not exist namespace De 115 cription when Freelance Project C# with WPF designer issues : XDG0008 The name  2.Download the ExtendedWPFToolkit_Binaries 3.Unblock the ZIP file. 1.Right-click ExtendedWPFToolkit_Binaries.zip -> Properties -> Unblock 4.Unzip the ExtendedWPFToolkit_Binaries.zip 5.Reference the binaries in your project: 1.Reference WPFToolkit.Extended.dll in your project (Xceed.Wpf.DataGrid.dll for the datagrid control) 2.Add a using statement ("using Xceed.Wpf.Toolkit;" for most of the controls, "using Xceed.Wpf.DataGrid;" for the datagrid control) to the top of .cs files 3.Add a new

Comments
  • are this converter within the same assembly as PulserTester.windows.ConfigPage window?
  • @vasily.sib still not work...
  • and if that doesn't work, close visual studio and delete the ".vs" directory that is inside the solution directory, then try again. You may have to show hidden files to see it. Sometimes the designer gets stuck using cached data.
  • Rebuild the project and it should be able to identify the converter. Also close all files while doing rebuild.
  • @vasily.sib they on the same Project if that is your question..
  • My environment was 4.6.1. I switched to 4.7.2 and it compiled OK. Thanks for your comment here, this one worked.
  • This seems to be untrue, given that Microsoft's documentation uses keys equal to the class names (docs.microsoft.com/en-us/dotnet/api/…)
  • Sorry, but this is not true, I have always used the class name as the x:Key and it works just fine.