Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You've got no setter. Unfortunately, you can't directly set this.myChildPanel.ControlStyle, as it's a read-only property, so you'll have to set <em>it's</em> properties. Change your ChildPanelStyle property to the following:</p> <pre><code>[ Category("Style"), Description("Child panel style"), DesignerSerializationVisibility(DesignerSerializationVisibility.Content), NotifyParentProperty(true), PersistenceMode(PersistenceMode.InnerProperty), ] public System.Web.UI.WebControls.Style ChildPanelStyle { get { EnsureChildControls(); return this.myChildPanel.ControlStyle; } set { EnsureChildControls(); this.myChildPanel.ControlStyle.BackColor = value.BackColor; this.myChildPanel.ControlStyle.BorderColor = value.BorderColor; this.myChildPanel.ControlStyle.BorderStyle = value.BorderStyle; this.myChildPanel.ControlStyle.BorderWidth = value.BorderWidth; this.myChildPanel.ControlStyle.CssClass = value.CssClass; this.myChildPanel.ControlStyle.Font.Bold = value.Font.Bold; this.myChildPanel.ControlStyle.Font.Italic = value.Font.Italic; this.myChildPanel.ControlStyle.Font.Name = value.Font.Name; this.myChildPanel.ControlStyle.Font.Names = value.Font.Names; this.myChildPanel.ControlStyle.Font.Overline = value.Font.Overline; this.myChildPanel.ControlStyle.Font.Size = value.Font.Size; this.myChildPanel.ControlStyle.Font.Strikeout = value.Font.Strikeout; this.myChildPanel.ControlStyle.Font.Underline = value.Font.Underline; this.myChildPanel.ControlStyle.ForeColor = value.ForeColor; this.myChildPanel.ControlStyle.Height = value.Height; this.myChildPanel.ControlStyle.Width = value.Width; } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload