I know i am late to the party...but this is what just worked for me. IF you are in VisualStudio you can:
1. Exclude all the files you want to link from the project
2. Include just the .xaml file. For me that included the .xaml.cs file as well as code behind.
Note:
Make sure the compile relationship is correct in the .csproj file. It should look like this:
<ItemGroup>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>...
To see that text you will need to unload the project and then edit the .csproj file inside any texteditor. VS 2015 also lets you edit that file if you rightclick on the unloaded .csproj file.
Hope this helps someone.