#region in XAML

前端 未结 8 1954
借酒劲吻你
借酒劲吻你 2020-12-24 11:16

I actually don\'t like #region in my code. BUT for some reason call me crazy, I would like to have them in my XAML. I would like whole sections to have a #region-li

相关标签:
8条回答
  • 2020-12-24 12:13

    You can add comments to the XAML file using SSI formatting:

    <!-- Grid Styles -->
    <style...>
    <style...>
    
    <!-- Window Styles -->
    <style...>
    <style...>
    <style...>
    

    This at least gives you some sort of "header" if you use the built-in XML collapse.

    0 讨论(0)
  • 2020-12-24 12:17

    In Visual Studio 2012 Update 4, I was able to select a very large section of XAML code, right click and choose "hide selection". (basically collapses that section with the [...] notation, and after expanding it, the system "remembers" that I wanted to collapse that portion with the [-] notation next to the line numbers.

    0 讨论(0)
提交回复
热议问题