Reputation: 5055
C# has the #region directive to group methods/properties and collapse them when you aren't working on them to tidy up the visual display area and find what you're looking for easier.
Is there a similar thing you can do in a resource dictionary XAML file?
Upvotes: 2
Views: 572
Reputation: 48568
In XAML files, you can't create regions but each opening tag can be collapsed only if it has a closing tag like this
<Style>
.....
</Style>
Not when you have
<Style ..... />
These kinds of tags cannot be collapsed.
However there is a VS Extension for doing what you are asking and that can be downloaded from here XAML Regions
For more read this #region in XAML
Upvotes: 2