❔ d:DesignInstance errors on my forms' root element
I have some in my WPF forms (two of them). It's spitting out some errors that look like bogus. Can someone look at them and tell me what's going on?
Here's a sample of the source:
d:DataContext="{d:DesignInstance Type=ViewModel:UserNetwork}"
.17 Replies
I'm gonna hone in on the one thay says
BestChat.IRC.Global.ViewModel
is not a namespace that exists.That was where I was going. But it does. It's a dependency of this project.
it's not in the current assembly?
Nope.
then you need to specify that
Go to go. Be back later.
I'm guessing you originally had it in this assembly, and then moved it
No, I was going direct to the Model. Now I'm not.
my point being that VS should hace auto-completed the correct specification for that namespace being in a different assembly
Now the xmlns was missing. I tried to add it, but it says there's no such namespace out there.
huh?
It won't list the namespace when I type "ViewModel". It's as though the project reference is missing--but it isn't. I just checked.
I'll check in later.
the correct syntax is
I suspect even if I had the correct syntax, I'd be told it still couldn't find the assembly.
why would you suspect that?
Bad experiences and Murphy's law. I think I'm going to put the View Model's functionality back into the Model classes anyway. I only needed a few extra properties. The View Model was a lot of work. But there's no reason I can see why it should claim it can't find the namespace.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.