2018-01-27 19:12:24 +00:00
|
|
|
|
|
|
|
|
|
// This is free and unencumbered software released into the public domain.
|
|
|
|
|
// Happy coding!!! - GtkSharp Team
|
|
|
|
|
|
|
|
|
|
using Gtk;
|
|
|
|
|
|
|
|
|
|
namespace Samples
|
|
|
|
|
{
|
2018-01-27 20:47:02 +00:00
|
|
|
|
[Section(ContentType = typeof(LinkButton), Category = Category.Widgets)]
|
2018-01-27 19:12:24 +00:00
|
|
|
|
class LinkButtonSection : ListSection
|
|
|
|
|
{
|
|
|
|
|
public LinkButtonSection()
|
|
|
|
|
{
|
|
|
|
|
AddItem(CreateLinkButton());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public (string, Widget) CreateLinkButton()
|
|
|
|
|
{
|
|
|
|
|
var btn = new LinkButton("A simple link button");
|
|
|
|
|
btn.Clicked += (sender, e) => ApplicationOutput.WriteLine(sender, "Link button Clicked");
|
|
|
|
|
|
|
|
|
|
return ("Link button:", btn);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|