#region in XAML

前端 未结 8 1952
借酒劲吻你
借酒劲吻你 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:06

    Yes,

    VS2010 will remember the collapsed areas but beware this stopped working when I applied SP1 (as did a lot of other things). After uninstalling VS2010 (and any extensions) and doing the following install procedure the XAML elements that were collapsed seemed to be remembered fine:

    • Install VS2010 (Pro in my case)
    • Install VS2010 windows updates (including an XML editor one, 200MB+)
    • Install SP1 Install
    • Install VS2010 SP1 windows updates

    Might help someone.

提交回复
热议问题