public virtual System.Web.UI.WebControls.WebParts.PartChromeType GetEffectiveChromeType(Part part) { if (part == null) { throw new ArgumentNullException("part"); } System.Web.UI.WebControls.WebParts.PartChromeType chromeType = part.ChromeType; if (chromeType != System.Web.UI.WebControls.WebParts.PartChromeType.Default) { return chromeType; } System.Web.UI.WebControls.WebParts.PartChromeType partChromeType = this.PartChromeType; if (partChromeType == System.Web.UI.WebControls.WebParts.PartChromeType.Default) { return System.Web.UI.WebControls.WebParts.PartChromeType.TitleAndBorder; } return partChromeType; }
/// <devdoc> /// The effective frame type of a part, taking into consideration the PartChromeType /// of the zone and the DisplayMode of the page. /// </devdoc> public override PartChromeType GetEffectiveChromeType(Part part) { PartChromeType chromeType = base.GetEffectiveChromeType(part); // Add title to chromeType if we are in page design mode. We always want // to render a title bar when in page design mode. (VSWhidbey 77730) if ((WebPartManager != null) && (WebPartManager.DisplayMode.AllowPageDesign)) { if (chromeType == PartChromeType.None) { chromeType = PartChromeType.TitleOnly; } else if (chromeType == PartChromeType.BorderOnly) { chromeType = PartChromeType.TitleAndBorder; } } return chromeType; }
public override PartChromeType GetEffectiveChromeType(Part part) { return default(PartChromeType); }
/// <devdoc> /// The effective chrome type of a part, taking into consideration the PartChromeType /// of the zone and the DisplayMode of the page. /// </devdoc> public virtual PartChromeType GetEffectiveChromeType(Part part) { if (part == null) { throw new ArgumentNullException("part"); } PartChromeType chromeType = part.ChromeType; if (chromeType == PartChromeType.Default) { PartChromeType partChromeType = PartChromeType; if (partChromeType == PartChromeType.Default) { chromeType = PartChromeType.TitleAndBorder; } else { chromeType = partChromeType; } } Debug.Assert(chromeType != PartChromeType.Default); return chromeType; }
public virtual new PartChromeType GetEffectiveChromeType (Part part) { return default(PartChromeType); }
public override PartChromeType GetEffectiveChromeType(Part part) { PartChromeType effectiveChromeType = base.GetEffectiveChromeType(part); if ((base.WebPartManager != null) && base.WebPartManager.DisplayMode.AllowPageDesign) { switch (effectiveChromeType) { case PartChromeType.None: return PartChromeType.TitleOnly; case PartChromeType.BorderOnly: return PartChromeType.TitleAndBorder; } } return effectiveChromeType; }