[英]Bring MdiChild To Front (Using WPF.MDI)
我正在嘗試在WPF應用程序上制作MdiForm。 但是,我對如何使選定的表格變得無所適從。 我通常在VB6中使用
FrmName.ZOrder
我可以在WPF上使用任何相似之處嗎?
無論如何,這是我的代碼:
using WPF.MDI;
foreach (MdiChild c in mdiMain.Children)
{
if (c.Title == "Setup Customer")
{
c.BringToFront(); //I'm having trouble here
return;
}
}
嘗試這個:
foreach (MdiChild c in mdiMain.Children)
{
if (c.Title == "Setup Customer")
{
c.Focus(); //TRY THIS
return;
}
}
如果適合您的需求,也不要忘記將其標記為答案
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.