❔ MC3050 compiler error
I added a new project with some custom WPF controls to my project's dependencies. I then added the control to my form, but while the designer accepted the control happily, the XAML compiler is issuing errors that it can't find the control. I'm lost as to why. Same with bindings to the some properties declared by my form. I've heard deleting the .vs folder can fix these problems, but that reset a lot of things. Does someone have a better solution? I have
xmlns:local="clr-namespace:BestChat.IRC.Global.View"
and xmlns:IrcCtrls="clr-namespace:BestChat.IRC.Global.View.Ctrls;assembly=BestChat.IRC.Global.View.Ctrls"
declared on the root element. The binding that complains about not being able to find the dialog class is {Binding Msg, Mode=OneWay, NotifyOnSourceUpdated=True, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:NetworkEditorDlg}}}
. The usage of the control is <IrcCtrls:NetworkLogInModesComboBox ...
and that control is declared as NetworkLogInModesComboBox
in namespace BestChat.IRC.Global.View.Ctrls
in the assembly BestChat.IRC.Global.View.Ctrls.dll.
21 Replies
I posted here as no one responded in #chat. Too busy there.
the XAML designer IS a little notoriously buggy
if you really thing you have everything right, close and restart Visual Studio, completely
OK.
you can also get a ton of crap build errors in XAML if you have just one error in your C# code
otherwise, the error is pretty explicit
remember what the problem was last time 😉
(I think that was you)
The control now loads, but it still fails to find the form for binding.
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.Nope.
what does this mean?
Well, I have a binding in
NetworkEditorDlg
with {CalcBinding:Binding !Ready, Mode=OneWay, NotifyOnSourceUpdated=True, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:NetworkEditorDlg}}}
. I didn't know if ElementName=window
would find properties I declare in NetworkEditorDlg
.if they're dependency properties, it would
@V.EINA Jaken Did you see https://discord.com/channels/143867839282020352/1157921445343678485?
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
yes
OK.
There's a lot of activity in there.
in where?
#help.
sure
and none on your particular question
probably cause no one knows
or has any information to offer
I didn't know if there's a bug in CalcBinding or if I made a mistake.
me neither
except that there's probably not a bug
Figures.
that's pretty much the safe bet, no matter who you are
it's probably your code
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.