UI\WebParts\WebPartChrome.cs (67)
80return Zone.DragDropEnabled;
98style.CopyFrom(Zone.PartChromeStyle);
162_chromeStyleWithBorder = CreateChromeStyleWithBorder(Zone.PartChromeStyle);
168_chromeStyleNoBorder = CreateChromeStyleNoBorder(Zone.PartChromeStyle);
177style.CopyFrom(Zone.SelectedPartChromeStyle);
225return Zone.VerbsForWebPart(webPart);
253string name = Zone.ClientID + "_" + _cssStyleIndex++.ToString(NumberFormatInfo.InvariantInfo);
254_page.Header.StyleSheet.CreateStyleRule(style, Zone, "." + name);
261Style partChromeStyle = Zone.PartChromeStyle;
262Style partTitleStyle = Zone.PartTitleStyle;
276if (Zone.RenderClientScript && (Zone.WebPartVerbRenderMode == WebPartVerbRenderMode.Menu) && Zone.Menu != null) {
277Zone.Menu.RegisterStyles();
284if (!Zone.ErrorStyle.IsEmpty) {
285Zone.ErrorStyle.AddAttributesToRender(writer, Zone);
313bool showTitleIcons = Zone.ShowTitleIcons;
328TableItemStyle titleStyle = Zone.PartTitleStyle;
345if (Zone.RenderClientScript) {
371writer.AddAttribute(HtmlTextWriterAttribute.Src, Zone.ResolveClientUrl(webPart.TitleIconImageUrl) );
382_titleTextStyle = CreateTitleTextStyle(Zone.PartTitleStyle);
386_titleTextStyle.AddAttributesToRender(writer, Zone);
396writer.AddAttribute(HtmlTextWriterAttribute.Href, Zone.ResolveClientUrl(url));
412bool isEnabled = Zone.IsEnabled && verb.Enabled;
414ButtonType verbButtonType = Zone.TitleBarVerbButtonType;
416if (verb == Zone.HelpVerb) {
418string resolvedHelpUrl = Zone.ResolveClientUrl(webPart.HelpUrl);
422ZoneButton button = new ZoneButton(Zone, null);
425if (Zone.RenderClientScript) {
453if (!Zone.RenderClientScript) {
476else if (verb == Zone.ExportVerb) {
479ZoneButton button = new ZoneButton(Zone, String.Empty);
485if (Zone.RenderClientScript) {
517if (Zone.RenderClientScript) {
533ZoneButton button = new ZoneButton(Zone, eventArgument);
541ZoneLinkButton linkButton = new ZoneLinkButton(Zone, eventArgument);
553if (verb == Zone.CloseVerb) {
563else if (verb == Zone.DeleteVerb) {
570verbControl.ApplyStyle(Zone.TitleBarVerbStyle);
604if (Zone.RenderClientScript && (Zone.WebPartVerbRenderMode == WebPartVerbRenderMode.Menu) && Zone.Menu != null) {
606Zone.Menu.Render(writer, webPart.WholePartID + "Verbs");
611Zone.Menu.Render(writer, verbs, webPart.WholePartID + "Verbs", webPart, WebPartManager);
627bool vertical = (Zone.LayoutOrientation == Orientation.Vertical);
629PartChromeType chromeType = Zone.GetEffectiveChromeType(webPart);
634partChromeStyle.AddAttributesToRender(writer, Zone);
651if (Zone.RenderClientScript) {
667_titleStyleWithoutFontOrAlign = CreateTitleStyleWithoutFontOrAlign(Zone.PartTitleStyle);
676_titleStyleWithoutFontOrAlign.AddAttributesToRender(writer, Zone);
700Style partStyle = Zone.PartStyle;
702partStyle.AddAttributesToRender(writer, Zone);
706writer.AddStyleAttribute(HtmlTextWriterStyle.Padding, Zone.PartChromePadding.ToString());
727if (verb == Zone.CloseVerb) {
728if (!_personalizationEnabled || !webPart.AllowClose || !Zone.AllowLayoutChange) {
733if (verb == Zone.ConnectVerb) {
754if (verb == Zone.DeleteVerb) {
756!Zone.AllowLayoutChange ||
764if (verb == Zone.EditVerb) {
772if (verb == Zone.HelpVerb) {
778if (verb == Zone.MinimizeVerb) {
782!Zone.AllowLayoutChange) {
787if (verb == Zone.RestoreVerb) {
790!Zone.AllowLayoutChange) {
795if (verb == Zone.ExportVerb) {
806if (Zone.TitleBarVerbButtonType == ButtonType.Link) {