Merge XAML and code-behind file in Visual Studio
On 7 May 2014 in TechWhen you’re importing Windows Phone view file (XAML + its class file) into a project, it’s shown in Visual Studio as separate files. Compared to when you’re creating a new view file, its class file (code-behind) is grouped behind the XAML file.
To ‘merge’ these two files, you need to edit the project settings file (*.csproj file)
<Compile Include="MainPage.xaml.cs"/>
to
<Compile Include="MainPage.xaml.cs"> <DependentUpon>MainPage.xaml</DependentUpon> </Compile>
Reference:Â http://stackoverflow.com/questions/18121494/how-to-merge-a-xaml-file-and-its-code-behind-with-visual-studio
Related posts:
-
Windows Phone app dev note
-
Create event based component in C#
-
Using database in Windows Phone app
-
Load JSON data from web in Windows Phone
-
DataContractJsonSerializer missing assembly reference
Filed under Tech with tags C#, Visual Studio, windows phone
Leave a Reply