本文整理汇总了C#中Gtk.Alignment.Hide方法的典型用法代码示例。如果您正苦于以下问题:C# Alignment.Hide方法的具体用法?C# Alignment.Hide怎么用?C# Alignment.Hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.Alignment
的用法示例。
在下文中一共展示了Alignment.Hide方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BuildHeader
private void BuildHeader ()
{
source_actions_align = new Gtk.Alignment (0f, .5f, 1f, 0f) {
RightPadding = 0,
LeftPadding = 0,
NoShowAll = true
};
if (Hyena.PlatformDetection.IsMeeGo) {
source_actions_align.RightPadding = 5;
source_actions_align.TopPadding = 5;
}
footer = new VBox ();
source_actions_box = new EventBox () { Visible = true };
BuildSearchEntry ();
InterfaceActionService uia = ServiceManager.Get<InterfaceActionService> ();
if (uia != null) {
Gtk.Action action = uia.GlobalActions["WikiSearchHelpAction"];
if (action != null) {
MenuItem item = new SeparatorMenuItem ();
item.Show ();
search_entry.Menu.Append (item);
item = new ImageMenuItem (Stock.Help, null);
item.Activated += delegate { action.Activate (); };
item.Show ();
search_entry.Menu.Append (item);
}
}
source_actions_box.ShowAll ();
source_actions_align.Add (source_actions_box);
source_actions_align.Hide ();
search_entry.Show ();
context_pane = new Banshee.ContextPane.ContextPane ();
context_pane.ExpandHandler = b => {
SetChildPacking (content.Widget, !b, true, 0, PackType.Start);
SetChildPacking (context_pane, b, b, 0, PackType.End);
};
// Top to bottom, their order is reverse of this:
PackEnd (footer, false, false, 0);
PackEnd (context_pane, false, false, 0);
PackEnd (source_actions_align, false, false, 0);
PackEnd (new ConnectedMessageBar (), false, true, 0);
}