本文整理匯總了C#中Xwt.Label.Hide方法的典型用法代碼示例。如果您正苦於以下問題:C# Label.Hide方法的具體用法?C# Label.Hide怎麽用?C# Label.Hide使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Xwt.Label
的用法示例。
在下文中一共展示了Label.Hide方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: RadioButtonSample
public RadioButtonSample ()
{
var b1 = new RadioButton ("Item 1");
var b2 = new RadioButton ("Item 2 (red background)");
b2.BackgroundColor = Xwt.Drawing.Colors.Red;
var b3 = new RadioButton ("Item 3");
b2.Group = b3.Group = b1.Group;
PackStart (b1);
PackStart (b2);
PackStart (b3);
var la = new Label ();
la.Hide ();
b1.Group.ActiveRadioButtonChanged += delegate {
la.Show ();
la.Text = "Active: " + b1.Group.ActiveRadioButton.Label;
};
PackStart (la);
PackStart (new HSeparator ());
var box = new VBox ();
box.PackStart (new Label ("First Option"));
box.PackStart (new Label ("Second line"));
var b4 = new RadioButton (box);
var b5 = new RadioButton ("Second Option");
var b6 = new RadioButton ("Disabled Option") { Sensitive = false };
PackStart (b4);
PackStart (b5);
PackStart (b6);
b4.Group = b5.Group = b6.Group;
}
示例2: RadioButtonSample
public RadioButtonSample()
{
var b1 = new RadioButton ("Item 1");
var b2 = new RadioButton ("Item 2");
var b3 = new RadioButton ("Item 3");
b2.Group = b3.Group = b1.Group;
PackStart (b1);
PackStart (b2);
PackStart (b3);
var la = new Label ();
la.Hide ();
b1.Group.ActiveRadioButtonChanged += delegate {
la.Show ();
la.Text = "Active: " + b1.Group.ActiveRadioButton.Label;
};
PackStart (la);
PackStart (new HSeparator ());
var box = new VBox ();
box.PackStart (new Label ("First Option"));
box.PackStart (new Label ("Second line"));
var b4 = new RadioButton (box);
var b5 = new RadioButton ("Second Option");
PackStart (b4);
PackStart (b5);
b4.Group = b5.Group;
}