本文整理汇总了C#中Gtk.VBox.ModifyBase方法的典型用法代码示例。如果您正苦于以下问题:C# VBox.ModifyBase方法的具体用法?C# VBox.ModifyBase怎么用?C# VBox.ModifyBase使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.VBox
的用法示例。
在下文中一共展示了VBox.ModifyBase方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateWelcomePage
private Widget CreateWelcomePage()
{
VBox vbox = new VBox(false, 0);
MenuBar menubar = CreateWelcomeMenuBar();
vbox.PackStart (menubar, false, false, 0);
Frame frame = new Frame();
vbox.PackStart(frame, true, true, 0);
vbox.ModifyBase(StateType.Normal, new Gdk.Color(255, 255, 255));
VBox welcomeVBox = new VBox(false, 0);
frame.Add(welcomeVBox);
Gdk.Pixbuf pixbuf = new Gdk.Pixbuf(Util.ImagesPath("ifolder128.png"));
Image image = new Image(pixbuf);
image.SetAlignment(0.5F, 0.5F);
welcomeVBox.PackStart(image, false, false, 0);
Label l = new Label(
string.Format("<span size=\"x-large\" weight=\"bold\">{0}</span>",
Util.GS("Welcome to iFolder")));
welcomeVBox.PackStart(l, false, false, 0);
l.UseMarkup = true;
l = new Label(
string.Format("<span>{0}</span>",
Util.GS("iFolder is a file sharing solution for workgroup and enterprise environments.")));
welcomeVBox.PackStart(l, false, false, 0);
l.UseMarkup = true;
HBox hbox = new HBox(false, 0);
ConnectToServerButton = new Button(hbox);
ConnectToServerButton.Relief = ReliefStyle.None;
vbox.PackStart(ConnectToServerButton, false, false, 0);
Gdk.Pixbuf folderPixbuf = new Gdk.Pixbuf(Util.ImagesPath("add-account.png"));
folderPixbuf = folderPixbuf.ScaleSimple(64, 64, Gdk.InterpType.Bilinear);
Image folderImage = new Image(folderPixbuf);
folderImage.SetAlignment(0.5F, 0F);
hbox.PackStart(folderImage, false, false, 0);
VBox buttonVBox = new VBox(false, 0);
hbox.PackStart(buttonVBox, true, true, 4);
Label buttonText = new Label(string.Format("<span size=\"large\" weight=\"bold\">{0}</span>", Util.GS("Connect to an iFolder Server")));
buttonVBox.PackStart(buttonText, false, false, 0);
buttonText.UseMarkup = true;
buttonText.UseUnderline = false;
buttonText.Xalign = 0;
Label buttonMessage = new Label(string.Format("<span size=\"small\">{0}</span>", Util.GS("Start synchronizing files by connecting to an iFolder server")));
buttonVBox.PackStart(buttonMessage, false, false, 0);
buttonMessage.UseMarkup = true;
buttonMessage.UseUnderline = false;
buttonMessage.LineWrap = true;
buttonMessage.Justify = Justification.Left;
buttonMessage.Xalign = 0;
buttonMessage.Yalign = 0;
ConnectToServerButton.Clicked +=
new EventHandler(OnConnectToServerButton);
return vbox;
}