XAML Designer not showing up

后端 未结 23 1142
闹比i
闹比i 2020-12-15 02:31

In MS Visual Studio Express 2013 for Windows Desktop:

I\'m learning C# and following an example that shows how to create a user interface in a .xaml file. https://ms

相关标签:
23条回答
  • 2020-12-15 02:59

    i also encountered same issue on Visual Studio 2019. i solve the problem with switching view.

    you can switch the view with Switch Views button next to home button in Solution Explorer. you should choose .sln section.

    0 讨论(0)
  • 2020-12-15 03:01

    Well this is an old post but I just found another way the designer can hide even when it is configured correctly in VS2019. So here is what happened to me:

    XML designer was enabled and all should have worked except the designer was not showing....except it was, just hidden away in a split view slider that had zero width! I can only presume this was because I change monitors a lot on my PC and have resizing of windows going on quite often between monitors of different resolutions.

    At any rate search around in the dark on dark nothing around the xml view, grab the split view slider and slide and the designer will show up in no-zero size in the real world....

    0 讨论(0)
  • 2020-12-15 03:02

    Tools>Option>XAML Designer and enable XAML Designer worked for me.

    PS: By default it is enabled. I disabled it due to VS performance issue and forgot about this change and end up facing same issue when I started working on WPF project.

    0 讨论(0)
  • 2020-12-15 03:02

    As of now, a designer has not been created for projects targeting .NET Core 3.

    0 讨论(0)
  • 2020-12-15 03:02
        1. Kill the designer process with PowerShell or via Task Manager.
    
            PS C:\Users\nagel> ps XD*
    
            Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
            -------  ------    -----      -----     ------     --  -- -----------
                865      54    86464     117936       3.28   7156   1 XDesProc
    
            PS C:\Users\nagel> kill 7156
    
        2. build the project.
    
        The designer windows will appear with the black background and the three links. 
    Click on the second link that says "Click here to disable running project code and reload the designer". 
    After the click, the designer window will show up.
    
    0 讨论(0)
  • 2020-12-15 03:03

    Most probably its set not to open the XAML in full XAML view. Try this

    1. First click Tools > Options
    2. Navigate to Text Editor > XAML > Miscellaneous
    3. Uncheck the box that says Always open document in full XAML view.
    4. Click OK, close the Options box and try opening again

    If you don’t see Text Editor in the Options menu, check the box Show all Settings in the bottom left of the Options window.

    0 讨论(0)
提交回复
热议问题