Will VS ever present us with a good XAML designer?

Lloyd Sheen 1,351 Reputation points
2021-03-08T17:06:33.02+00:00

I was going to add some MultiBinding to my XAML. So I input

    <TextBlock >
        <TextBlock.Text>
        </TextBlock.Text>
    </TextBlock>

I now attempt to input the <Multi ..... but the designer in the dropdown tells me that it has no idea what I am doing. I can of course input the following :

            <MultiBinding Converter="{StaticResource MC}">
                <Binding Path="name"></Binding>
                <Binding Path="nickName"></Binding>
            </MultiBinding>                

and it works but after so many years of WPF doesn't MS think that have a designer that works is a good idea?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,667 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,578 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor
    2021-03-10T03:52:28.637+00:00

    Hi @Lloyd Sheen ,

    Welcome to Microsoft Q&A forum.

    I now attempt to input the <Multi … but the designer in the dropdown tells that it has no idea what I am doing.

    I think what you mentioned is a great suggestion, and base on my test, Visual Studio haven’t included this feature(IntelliSense) for editing codes in WPF projects. I recommend you directly suggest this feature to Visual Studio Product Team in our Developer Community. And please share the link here, other forum members, include me, who are interested in or needed this feature will go to vote for that thread.

    Restart VS and XAML designer shows only the code not the UI.

    I guess, before you restarted VS, you left the designer displayed only XAML view? On my side, I can reproduce this issue. If I leave XAML view and restart VS then VS only shows XAML view, if I then click the Horizontal Split button, the Design view will appear and be viewed like the panes are in reverse order.

    Currently the workaround should be click the Swap Panes button to change the layout, or leave the “correct order” of the layout before you close Visual Studio.

    76078-swappanes.png

    There isn’t any options for fixing or restoring the XAML Designer’s view to default Split View, if you really need it, you can suggest this feature in Developer Community too.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments