如何使TabTip.exe窗口弹出最大时 [英] How to make TabTip.exe window Maximum when popup it

查看:781
本文介绍了如何使TabTip.exe窗口弹出最大时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用下面的代码,弹出虚拟键盘:

I want to popup the Virtual Keyboard using below code:

var info = new ProcessStartInfo(@"C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe");
info.WindowStyle = ProcessWindowStyle.Maximized;
var p = new Process();
p.StartInfo = info;
p.Start();



但窗口仍然弹窗用最后的状态窗口风格,我希望它永远是最大的,我能做到此?

But the window still popups using last state window style, I want it always be Maximum, can I achieve this?

推荐答案

试试这个

Window wnd = Application.Current.Windows.OfType<WindowType>().Where(w => w.Name.Equals("NameOfYourWindow")).FirstOrDefault();



,然后设置窗口状态,这种

and then set Window state with this

wnd.WindowState = System.Windows.WindowState.Maximized

这篇关于如何使TabTip.exe窗口弹出最大时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆