Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expandable region in xml

In C# I can partition my code with #region #endregion keywords.

Is there any keywords in xml for this functionality?

I don't now whether its matters or not, I'm using Visual Studio 2010.

EDIT :

For example: I have distinct but corresponding tags like these above: I want to create a region for tool_planes and collapse them. Then create a region for tool_lines, etc.

        <RibbonSeparatablePopupMenu key="tool_Plane1" preferred-tool-size="Large" Type="Classic">
            <RibbonGallery key="tool_Plane_Gallery1"    >
                <RibbonGalleryCategory key="tool_Plane_Category1">
                    <RibbonGalleryCategoryItem  key="tool_Plane_3PointPlane" />
                    ...
                </RibbonGalleryCategory>
            </RibbonGallery>
        </RibbonSeparatablePopupMenu>

        <RibbonSeparatablePopupMenu key="tool_Plane2" preferred-tool-size="Large" Type="Classic">
            <RibbonGallery key="tool_Plane_Gallery2"    >
                <RibbonGalleryCategory key="tool_Plane_Category2">
                    <RibbonGalleryCategoryItem  key="tool_Plane_OrthogonalPlane" />
                    ...
                </RibbonGalleryCategory>
            </RibbonGallery>
        </RibbonSeparatablePopupMenu>

I don't want to group them with separate xml tags

like image 801
Miklós Balogh Avatar asked Apr 20 '26 17:04

Miklós Balogh


1 Answers

XAML Regions is a Visual Studio Extension that provides the ability to create regions in XML/XAML code.

XAML Regions

Usage:

<!-- Region (Any Text You Want) --> 
Your Code 
<!-- EndRegion -->
like image 126
Paolo Moretti Avatar answered Apr 23 '26 10:04

Paolo Moretti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!