[program-l] Re: WPF XAML Editor HotKey

  • From: Soronel Haetir <soronel.haetir@xxxxxxxxx>
  • To: program-l@xxxxxxxxxxxxx
  • Date: Wed, 5 Jan 2022 08:49:08 -0900

The difference with the "with encoding" is that it brings up an
additional dialog that allows explicit selection of the file's code
set and line ending convention.

Also, I'm pretty sure you can go straight to the XAML editor with
ctrl+alt+0 when you have a file selected in solution explorer.

On 1/5/22, Dante Gagne <dmarc-noreply@xxxxxxxxxxxxx> wrote:

You should be able to start editing any XAML file by just hitting Enter on
it in the Solution Explorer.

Visual Studio's default behavior is to open XAML files in "Split View",
which visually splits the document in half, giving a preview/design view of
the document in the top half and the flat XAML code in the bottom half.

You can change this behavior by going into Tools\Options, heading to the
bottom of the list for XAML Designer\General and changing the "Default
document view" (shortcut D) to either Source View (which will give you just
the XAML text representation) or Design View (which gives you the visual
preview/design view).

To answer the question about encoding in the Open With dialog, as far as I
know, the defaults are the ones that do *NOT* say "with encoding". I'm not
actually sure the difference between the two. I generally don't use the Open
With dialog and I tend to ask folks when they need it... just for my own
education. I'm hoping the above instructions on how to choose between the
document views should make it so you don't need to use the Open With
experience any more.

Let me know if this solves your issues.

--D

From: program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> On
Behalf Of Rick USA
Sent: Wednesday, January 5, 2022 7:39 AM
To: Program-L@Freelists. Org <program-l@xxxxxxxxxxxxx>
Cc: Rick USA <richardrthomas48@xxxxxxxxx>
Subject: [program-l] WPF XAML Editor HotKey

Hi:
I Created a (wpf) project and wanted to open the (xaml) editor for
(Main.xaml) from in solution explorer.
The only way I could do it was to bring up the dropdown menu dialog, select
the open with item then in that list select source code - not sure if I
should have selected that as a text or the source with encoding or something
else all together.
Is there a hot key to just open the (xaml) editor without opening the
designer or going through the above steps?
And do I use the Source (text) or the Source with Encoding option?
Richard R. Thomas (Rick USA)

I might also want to switch between the xaml editor, any selected item and
the Sent from Mail<https://go.microsoft.com/fwlin%20k/?LinkId=550986> for
Windows

** To leave the list, click on the immediately-following link:- **
[mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link
doesn't work then send a message to: **
program-l-request@xxxxxxxxxxxxx<mailto:program-l-request@xxxxxxxxxxxxx> **
and in the Subject line type ** unsubscribe ** For other list commands such
as vacation mode, click on the ** immediately-following link:- **
[mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message,
to **
program-l-request@xxxxxxxxxxxxx<mailto:program-l-request@xxxxxxxxxxxxx> with
the Subject:- faq



-- 
Soronel Haetir
soronel.haetir@xxxxxxxxx
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: