In these two post, I showed how ugly code pasted from Visual Studio into Windows Live Writer or using the Graffiti post editor can be:
http://bilbroblog.com/test/test-code-post-from-graffiti-post-editor/
http://bilbroblog.com/test/test-code-post-from-windows-live-writer/
Scott Watermasysk pointed me to the Windows Live Writer plug-in gallery:
http://gallery.live.com/results.aspx?c=0&bt=9&pl=8
The Source Code Formatter by Amer Gerzic is in the below samples.
http://gallery.live.com/liveItemDetail.aspx?li=10d724ab-0d28-4c78-8310-a6e2cfdef891&bt=9
The default width setting of 640 is too wide for my blog. I don’t like how it runs off to the right.
protected override void CreateChildControls(){base.CreateChildControls();_textLabel = new Label();this.Controls.Add(_textLabel);_sourceDropDownList = new DropDownList();_sourceDropDownList.AutoPostBack = true;this.Controls.Add(_sourceDropDownList);}
Smaller box this time. 400 width.
protected override void CreateChildControls(){base.CreateChildControls();_textLabel = new Label();this.Controls.Add(_textLabel);_sourceDropDownList = new DropDownList();_sourceDropDownList.AutoPostBack = true;this.Controls.Add(_sourceDropDownList);}
A little bit wider with a 500 width option.
protected override void CreateChildControls(){base.CreateChildControls();_textLabel = new Label();this.Controls.Add(_textLabel);_sourceDropDownList = new DropDownList();_sourceDropDownList.AutoPostBack = true;this.Controls.Add(_sourceDropDownList);}
And now a sample with some long lines using the 500 width option:
[ConnectionProvider("DropDown Filter", "ITransformableFilterValues", AllowsMultipleConnections = true)]public ITransformableFilterValues SetConnectionInterface(){return this;}
» Similar Posts
- Dropdown Filter Web Part in SharePoint – Part Two
- Dropdown List Box Filter Web Part in SharePoint – Part One
- Creating a Lookup List for SharePoint with VSeWSS
» Trackbacks & Pingbacks
http://bilbrobloggins.com/trackback.ashx?id=7