angelsix / fasetto-word

The new chat application for Fasetto, completely open-source :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attached Property issues (in xaml only it seems)

lorentzfb opened this issue · comments

Hi,

This is most likely a xaml/designer issue. I'm getting the following errors in the "Texts.xaml" file for the attached properties:

image

image

image

The solution builds fine and the attached properties works as expected, but the designer errors is very annoying and breaks other styles in the Texts.xaml when designing.

Running VS 2017, community edition.

Any suggestions?

First try deleting your .vs hidden folder in your solution location then restarting VS

Wow. Seems to work! You wont believe how long I have struggled with this... Thanks!

I have another similar issue as well:

image
image

Are you sure your ViewModelLocator class has this property:

public static ApplicationViewModel ApplicationViewModel => IoC.Application;

And that it is static importantly

Yes, I have this line.

But it seems that the errors goes away if I rebuild. But if I open and close the file, the error is back again until I rebuild.

Do you get the same if you download this repo and build the Fasetto.Word app?

What version of VS are you running?

If you don't get the issue with Fasetto.Word source but with yours, please share your source and I can take a look

Mistake by me. Change the ApplicationViewModel declaration remove the static keyword