locked
App.Xaml cannot be edited in design view(Visual Studio 2012 for Window Store). RRS feed

Answers

  • That is expected. App.xaml is the application's startup page and it will load other pages which you can edit. For example, if you create a simple C#/XAML app, your app.xaml will navigate to Mainpage.xaml which will be the starting page for your app. You can edit MainPage.xaml in the designer.

    Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, http://aka.ms/t4vuvz

    • Proposed as answer by B.Schutt Wednesday, September 11, 2013 2:37 AM
    • Marked as answer by Anne Jing Monday, September 16, 2013 3:50 AM
    Tuesday, September 10, 2013 1:11 AM
    Moderator

All replies

  • That is expected. App.xaml is the application's startup page and it will load other pages which you can edit. For example, if you create a simple C#/XAML app, your app.xaml will navigate to Mainpage.xaml which will be the starting page for your app. You can edit MainPage.xaml in the designer.

    Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, http://aka.ms/t4vuvz

    • Proposed as answer by B.Schutt Wednesday, September 11, 2013 2:37 AM
    • Marked as answer by Anne Jing Monday, September 16, 2013 3:50 AM
    Tuesday, September 10, 2013 1:11 AM
    Moderator
  • So what the solution would be?
    Wednesday, July 9, 2014 12:32 PM
  • @Niso.z, what solution are you asking for here? App.xaml is just the startup page of the app from which you can navigate to the actual UI pages of your app. There is nothing to be designed visually in the App.xaml.

    Why would you want to visually design App.xaml? What is your scenario?


    Windows Store Developer Solutions, follow us on Twitter: @WSDevSol|| Want more solutions? See our blog

    Thursday, July 10, 2014 12:30 AM
    Moderator
  • To edit App.xaml, for me to change StartupUri name, after stopping the debugger, i had to right click to App.xaml into the Solution Eplorer and Open with...  Source code (text) editor
    Friday, October 24, 2014 11:09 AM
  • The Simple Application Walkthrough specifically instructs one to edit App.xaml (because it previously had you inject a defect by changing the name of the file StartupUri property points to). So that is the scenario, or one of them. I assume it is 'valid' to rename MainWindow.xaml to whatever you want it to be.

    So there should be some way in the IDE to fix this (short of changing the file name back to match StartupUri). What is it? 

    Like another person here, I just edited it with a text editor and reloaded it into VS. But...
    • Edited by TSemple Wednesday, December 3, 2014 9:50 PM
    Wednesday, December 3, 2014 9:45 PM
  • i found some help from this question. also from the answers given to you.
    Friday, February 20, 2015 11:16 AM