本文整理匯總了C#中White.Core.UIItems.WindowItems.Window.Focus方法的典型用法代碼示例。如果您正苦於以下問題:C# Window.Focus方法的具體用法?C# Window.Focus怎麽用?C# Window.Focus使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類White.Core.UIItems.WindowItems.Window
的用法示例。
在下文中一共展示了Window.Focus方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: OpenNetworkWindow
public void OpenNetworkWindow()
{
Application = Application.Launch(@"C:\Users\Flotschi\git\handle\Handle.WPF\Handle.WPF\bin\Debug\Handle.WPF.exe");
Assert.IsNotNull(Application);
MainWindow = Application.GetWindow("Handle");
Assert.IsNotNull(MainWindow);
MainWindow.Focus();
Keyboard.LeaveAllKeys();
Keyboard.HoldKey(KeyboardInput.SpecialKeys.CONTROL);
Keyboard.Enter("n");
NetworkWindow = MainWindow.ModalWindow("Networks");
Assert.IsNotNull(NetworkWindow);
Keyboard.LeaveAllKeys();
NetworkWindow.Close();
Application.Kill();
}
示例2: Start
public void Start()
{
Console.WriteLine(CoreAppXmlConfiguration.Instance.UIAutomationZeroWindowBugTimeout);
Application = Application.Launch(@"C:\Users\Flotschi\git\handle\Handle.WPF\Handle.WPF\bin\Debug\Handle.WPF.exe");
Assert.IsNotNull(Application);
MainWindow = Application.GetWindow("Handle");
Assert.IsNotNull(MainWindow);
MainWindow.Focus();
}
示例3: Start
public void Start()
{
Application = Application.Launch(@"C:\Users\Flotschi\git\handle\Handle.WPF\Handle.WPF\bin\Debug\Handle.WPF.exe");
Assert.IsNotNull(Application);
MainWindow = Application.GetWindow("Handle");
Assert.IsNotNull(MainWindow);
MainWindow.Focus();
}