XAML Regions

Free

Provides the ability to create regions in XML and XAML code.

(50) Review
Visual Studio
2013, 2012, 2010
Download (23,439)
9/13/2013
0.8
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (50)
Q and A (12)
Sign in to write a review
Sort by:

by Sameer Vijaykar | Wed 8:20 PM

Simple and useful.

by Shicheng.Wang | February 13 2014

Can't be installed in Microsoft Visual Studio Express 2012 for Windows Phone & Microsoft Visual Studio Express 2013 for Windows

by alexerax | December 10 2013

by Michael Albaladejo | November 28 2013

Very nice. I love it. Thanks.

by mark-cirrus | November 22 2013

by maxima | October 22 2013

nice

by Bobby Rodrigue | September 18 2013

Thanks!

by Jonatan V Dutra | September 10 2013

Great extension. Exactly what I need. Thank you!

by Jebarson J | August 26 2013

Great tool. Would you consider adding code snippet for this

eg) <!--region

Jacob Johnston September 18 2013
| Edit |
Delete

I would love to add snippets. Unfortunately, Microsoft's VSIX extension format doesn't support installing snippets. If I were to add those, I'd have to create an external installer for the extension :-(

by Bdijk | July 12 2013

by Andrei Pi | July 06 2013

It works and it's very useful. Thanks!

by Ali.Alikhani | June 19 2013

Nice Thanks :)

by MemeDeveloper | June 10 2013

Fantastic ! Makes such a difference in large XML file. Much appreciated, so simple but sooo handy ! thanks.

by Damien DeCremer | May 08 2013

Fantastic and provides a collapsible region, as expected. It's a great addition to organize my code much better now.

Improving it to auto-complete the closing section would be a great feature, as well as having open/close tag pair-matching when the cursor is within one or the other.

by Bomber76 | April 17 2013

Great extension. Just what I wanted! Great job.

by Alex Hardwicke | April 06 2013

by Mikkel Raicevic-Larsen | March 22 2013

Greate Extension!!! Life savior!

by Xperiandri | March 09 2013

by Peter Martinez | December 30 2012

by KKumar | December 01 2012

Awesome - fantastic for hiding all the commented AppBar styles in StandardStyles.xaml during Win8 programming.

1 - 20 of 50 Items   
Sign in to start a discussion


  • Commands
    2 Posts | Last post October 23, 2013
    • Any plans to add a few related commands? It would be very useful to be able to collapse all regions or the deepest level of regions. Sadly the removal of macros from VS2012+ prevents me scripting up something!
      
      Essentially I'd like an easy way of resetting the file to the default open state where only your regions are collapsed. The standard collapse functionality in VS isn't much use because it doesn't differentiate and collapses everything.
    • (Or to release source? :)
  • ArgumentOutOfRangeException
    6 Posts | Last post September 14, 2013
    • fyi, i'm getting an error message box popup occasionally while editing Xaml that has Xaml Regions on it. It just says its logged the error to the Activity Log. The entry looks like:
      
      <entry>
          <record>882</record>
          <time>2013/09/04 03:10:40.195</time>
          <type>Error</type>
          <source>Editor or Editor Extension</source>
          <description>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.&#x000D;&#x000A;Parameter name: span&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.SnapshotSpan..ctor(ITextSnapshot snapshot, Span span)&#x000D;&#x000A;   at XAMLRegions.RegionOutlineTagger.RegionSearch_RegionsChanged(Object sender, EventArgs e)&#x000D;&#x000A;   at XAMLRegions.RegionSearch.Parse()&#x000D;&#x000A;   at XAMLRegions.RegionSearch.buffer_Changed(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description>
        </entry>
      
      I'm guessing cos it mentions XAMLRegions it might be caused by it.
      
      
      Cheers
    • Hmmmm, thanks for the report. I'll look into it and see if I can squash that bug.
    • Same problem here. Using XAML regions 0.7 on VS2012. Occurs now and then when editing XAML files. Activity log says:
        <entry>
          <record>664</record>
          <time>2013/09/09 07:42:49.080</time>
          <type>Error</type>
          <source>Editor or Editor Extension</source>
          <description>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.&#x000D;&#x000A;Parameter name: span&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.SnapshotSpan..ctor(ITextSnapshot snapshot, Span span)&#x000D;&#x000A;   at XAMLRegions.RegionOutlineTagger.RegionSearch_RegionsChanged(Object sender, EventArgs e)&#x000D;&#x000A;   at XAMLRegions.RegionSearch.Parse()&#x000D;&#x000A;   at XAMLRegions.RegionSearch.buffer_Changed(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description>
        </entry> 
    • me too, same problem. Using XAML regions 0.7 on VS2012
      
      <entry>
          <record>644</record>
          <time>2013/09/12 11:57:38.215</time>
          <type>Error</type>
          <source>Editor or Editor Extension</source>
          <description>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.&#x000D;&#x000A;Parameter name: span&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.SnapshotSpan..ctor(ITextSnapshot snapshot, Span span)&#x000D;&#x000A;   at XAMLRegions.RegionOutlineTagger.RegionSearch_RegionsChanged(Object sender, EventArgs e)&#x000D;&#x000A;   at XAMLRegions.RegionSearch.Parse()&#x000D;&#x000A;   at XAMLRegions.RegionSearch.buffer_Changed(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description>
        </entry>
    • Hey guys, sorry about those annoying messages. I've just released 0.8, which should address that issue. Let me know if you're still getting these errors.
    • Nice work. Thanks!
  • VS2013?
    7 Posts | Last post July 11, 2013
    • Hi,
      
      Are you intending to update this for VS2013 at some point?
    • Yep, started working on it last week. I'm also adding some custom coloring to the region elements (so they don't look exactly like comments) for the next update.
    • Great, thanks.
    • 2013 support is in, but my color stuff is a bit more complicated, so I'm holding off for right now on that part.
    • Yup, works as it did in 2012. Thanks again.
    • Can't update to 0.6: "Requires a version of the .NET framework that is not installed"  in vs2010 (sans 4.5)
    • This is an artificial limitation I'll fix today. The assembly itself targets 4.0, but the manifest is marked as requiring 4.5. My apologies.
  • Using regions with Resharper
    1 Posts | Last post June 01, 2013
    • Hi, great tool !
      
      Here's how to use it with Resharper regioning context-menu :
      
      Open Resharper menu on Visual Studio
        -> Templates Explorer 
           -> Surround Templates 
              -> XAML 
                 -> New Template
      
      Describe your template and paste this code :
      
      <!-- Region $END$ --> 
      $SELECTION$ 
      <!-- EndRegion -->
      
  • Doesn't works with VS2012 Update 2
    2 Posts | Last post April 11, 2013
    • Hi, I have updated the Visual Studio with the new update 2.
      
      After this update the extension doesn't works.
      
      Can you provide a solution?
      
      Best regards.
    • Sorry! My previous post was wrong!
      
      Works all fine!
      Thanks!
      
      My solution:
      - I disabled the extension
      - reboot the VS
      - enable the extension
      - reboot VS
      
      after these operations the extension works correctly
  • Advanced option
    1 Posts | Last post December 14, 2012
    • Hi,
      
      Thank you very much for this extensions, it's very useful !! :)
      I have one question : This is possible to add a button to 'expand/collapse' all of the regions, please ? It would be very useful !!
      
      Best regards.
  • Colour Differnce for <!--Region-->Tag
    1 Posts | Last post December 06, 2012
    • Thanks for the plug-in.
      Current Region tag appears as a normal comment's green color. If you differentiate with some other color It could be easily understandable.  
  • VS 2012 Support
    2 Posts | Last post August 29, 2012
    • Jacob - this is an fab extension and i just upgraded to VS 2012 and it doesnt seem to work. Should that be the case?
    • Nope - that should not be the case! I updated it in March to work with 2012, and have been running it with the RTM 2012 for a few weeks now on my system. All work just fine.
      
      That said, it is possible for other plugins to interfere with my plugin. One reviewer said that Visual Studio Commands does this. Try running with your other 3rd-party Extensions disabled and see if that changes anything. If that doesn't work, you may try sending me a test file where the regioning isn't working for you, I might be able to debug it! 
  • Extend to .config files?
    3 Posts | Last post April 03, 2012
    • Jacob, awesome plugin, thanks for taking the time to create it.  I'd like to make one suggestion if possible: is there any way to extend this to work with config files?  Some of our App.config files get pretty large, and this seems like the perfect solution.  I think this would just be another awesome addition to an already great tool.
      
      Thanks, 
      John
    • That should be very doable. I have to update XAML Regions for VS11 anyway, so I'll try to include this change then.
    • Jacob, thanks so much.  I just finished adding regions to our application's App.config, and it looks great.  I've told all of my team members about your tool, and so far, it's a big hit.  I appreciate the quick turnaround.  Great Job!!
      
      -John
  • using comments
    1 Posts | Last post June 30, 2011
    • great job with that plugin!
      sometimes i comment some XAML, can you make it work with comments?
      like this:
      <!--region commented
      <Trigger Property="IsExpanded" Value="true">
          <Setter Property="Visibility" TargetName="ExpandSite" Value="Visible"/>
      </Trigger>
      endregion-->
      
      ???
1 - 10 of 12 Items