Ejemplo n.º 1
0
 //Banner comparison: in the case of editor controlled region, this is a noop
 //otherwise, compare banners
 //caveat is that GetBanner rountrips null to "...".
 private bool HasSameBanner(NewHiddenRegion r,IVsHiddenRegion region)
 {
     uint behavior;
     region.GetBehavior(out behavior);
     if (behavior == (uint)HIDDEN_REGION_BEHAVIOR.hrbEditorControlled && r.dwBehavior == (uint)HIDDEN_REGION_BEHAVIOR.hrbEditorControlled)
     {
         return true; //the banner text is always a fixed string, which is "..." by default
     }
     string currBanner;
     region.GetBanner(out currBanner);
     //<STRIP>DevDiv185498: Regression from RTM: Collapsed portions of XAML do not stay collapsed</STRIP>
     return r.pszBanner == currBanner || (r.pszBanner == null && currBanner == "...");
 }