Updating XAML Files

Jan 31, 2011 at 4:38 AM


Is there any solution to handle the usage of XAML files with codebehind?

  • - I need to add XAML files with code behind (I can add both files but they are not linked)
  • - I need to override XAML files with code behind file.

 Maybe there is a way with powershell but I'm not so familiar with ps

Jan 31, 2011 at 6:19 AM

If you're talking about adding it as part of a package install we've fixed this issue in the latest builds (http://nuget.codeplex.com/workitem/636). Is this what you're looking for?

Jan 31, 2011 at 8:00 AM

maybe this is the same kind of problem but my problem is:

I have one file called MainWindow.xaml, this file has a code behind file called MainWindow.xaml.cs and I dont know where I should setup the dependencies of this files.

if I add both files to the content folder, they are at the correct location but I can't link them together.

I tried it with the last nightly build but your change does not solve this problem

looking forward


Jan 31, 2011 at 8:52 AM

Hmmm, that's not good. Are you sure you were using the latest build? Can you send you package so we can have a repro?

Jan 31, 2011 at 8:54 AM

You can install the latest build from here.

Jan 31, 2011 at 2:47 PM

Yes I have used the latest build.

have you understand my problem or should i try to explain it again? (sry my english writing skills are not as good as they should ;))

Jan 31, 2011 at 6:15 PM

Can you send the package so we can try it? If the bug isn't fixed then it's good a have a repro.