Style property of custom asp.net control throws exception when set
<p>I have written custom control that inherits from System.Web.UI.Control. I have added Style property like this:</p>

<pre><code>public class MyControl : Control
{
    public CssStyleCollection Style
    {
        get { return ViewState["Style"] as CssStyleCollection; }
        set { ViewState["Style"] = value; }
    }
}
</code></pre>

<p>And I use it the following way</p>

<pre><code>&lt;custom:MyControl runat="server" Style="float: left; padding: 2px 4px;" ... /&gt;
</code></pre>

<p>When I attempt to load the page, I receive the following exception:</p>

<blockquote>
  <p>Cannot create an object of type 'System.Web.UI.CssStyleCollection'
  from its string representation 'float: left; padding: 2px 4px;' for the
  'Style' property.</p>
</blockquote>

<p>I suppose I should add a TypeConverter attribute to the property or something, but I could not find appropriate one in the System.Web.UI namespace. I also searched google and there was not much information for exactly this issue.
I know that if I extended <code>WebControl</code> but I'd prefer a solution that deals with <code>Control</code>.</p>
