SocialControls: Facebook & Flattr Buttons in .NET 28. April 2011
SocialControls is a small open-source library written in .NET C#. It provides two simple buttons for Flattr Donations and Facebook Likes for embedding into a .NET Application.
The techonolgy behind is simple: an adjusted WebBrowser control which loads the Iframe that is used for web embedding. The controls include properties to change layout and behaviour of the buttons.
Flattr Button
This control has two customizable properties:
- ThingUrl – The URL used when the thing was submitted to Flattr
- Compact – If set true, a flat button layout is used instead of the box (see screenshot)
Facebook Like Button
The like button offers some more properties:
- ThingUrl – URL that can be liked with the button
- Compact – If set true, a flat button layout is used instead of the box (see screenshot)
- ColorScheme – Light or Dark
- Verb – Like or Recommend
To use the Buttons in the VisualStudio Designer, right click the Toolbox and click on “Chose Items”. Open the Tab “.NET Framework Components” and click “Browse…”. Select the SocialControls.dll and the new buttons should appear in the list. You can now just drag the controls out of the toolbox on your Form and define the properties.



