0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Visual Studio / WPF > IDE > regionによるXAMLの折り畳み領域の指定

Last updated at Posted at 2017-05-07
動作環境
Windows 7 Pro (32bit)
Microsoft Visual Studio 2017 Community
Sublime Text 2

Windows Presentation Foundation (WPF) Application Development
https://www.youtube.com/watch?v=XuNTq-1Lu50&t=715s
5:20ころからXAMLにおいて<!--#region MyRegion--><!--#endregion-->を追加している例がある。
これにより、記載した範囲を折り畳み可能にするようだ。
コードの可読性を高めることが可能になる。

試してみた。

#regionを指定すると左側に折り畳み可能マークが表示されるようになった。
work.png

以下は折り畳んだ状態。
work.png

補足事項

<!-- #region MyRegion -->のようにコメントマークの前後に空白があると、折り畳み可能にはならない。
<!--#region MyRegion-->のようにすること。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?