本文整理匯總了C#中System.Windows.Controls.TextBox.BringToFront方法的典型用法代碼示例。如果您正苦於以下問題:C# TextBox.BringToFront方法的具體用法?C# TextBox.BringToFront怎麽用?C# TextBox.BringToFront使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Controls.TextBox
的用法示例。
在下文中一共展示了TextBox.BringToFront方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Step3_Compare
//.........這裏部分代碼省略.........
Console.WriteLine(new { v.i, zoom, v.weight }.ToString());
v.Source.ClickEnabled = false;
v.Source.SizeTo(zoom);
var k_x = 500 + Convert.ToInt32(-30 * v.i * zoom) * v.i;
var k_y = 100 + Convert.ToInt32(70 * v.i * zoom);
v.Source.MoveContainerTo(k_x, k_y);
v.Source.AttachContainerTo(this);
var k_Text = new TextBox
{
Background = Brushes.Black,
Width = 60,
Height = 22,
Foreground = Brushes.Yellow,
BorderThickness = new Thickness(0),
Text = "" + v.weight,
IsReadOnly = true
};
bool MouseEnterDisabled = false;
MouseEventHandler MouseEnter =
delegate
{
// cannot remove event from MouseEnter yet
if (MouseEnterDisabled)
return;
k.Source.BringContainerToFront();
k_Text.BringToFront();
};
k.Source.Overlay.MouseEnter += MouseEnter;
k_Text.MoveTo(k_x - 30, k_y - 11).AttachTo(this);
DisposeSorted.Add(
delegate
{
k.Source.OrphanizeContainer();
k_Text.Orphanize();
MouseEnterDisabled = true;
}
);
}
MatrixButton.BringContainerToFront();
MistakeMatrixButton.BringContainerToFront();
return delegate
{
this.Title.Text = "...";
DisposeSorted.ToArray().ForEach(h => h());
MatrixButton.OrphanizeContainer();
MistakeMatrixButton.OrphanizeContainer();
RestartButton.OrphanizeContainer();