WpfApp3.rar

上传者: u012046379 | 上传时间: 2021-05-15 13:17:05 | 文件大小: 44KB | 文件类型: RAR
在WPF程序中,正常情况下,调用窗体的ShowDialog方法之后,w1.ShowDialog() 该应用程序的除去w1窗口之外所有窗口都将处于无效状态(disable),直到w1窗口关闭。 在某些情况下我们希望,w1.ShowDialog()方法调用之后,只有w1窗口的父窗口处于无效状态  而程序其他窗口可以继续响应用户操作。百度、google了一番,方法都太复杂,自己想了一个方法也挺简单的 这里我们需要用到W32函数  EnableWindow  我做了简单的封装   直接使用下面的类就可以了  调用ShowDialog之前先设置窗口的owner,就是这么简单

文件下载

资源详情

[{"title":"( 42 个子文件 44KB ) WpfApp3.rar","children":[{"title":"WpfApp3","children":[{"title":"App.xaml <span style='color:#111;'> 368B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"WpfApp3_MarkupCompile.lref <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"WpfApp3.g.resources <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false},{"title":"WpfApp3_MarkupCompile.cache <span style='color:#111;'> 279B </span>","children":null,"spread":false},{"title":"App.g.cs <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"Window1.baml <span style='color:#111;'> 983B </span>","children":null,"spread":false},{"title":"Window2.g.i.cs <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"WpfApp3.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false},{"title":"Window1.g.i.cs <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"WpfApp3.csproj.GenerateResource.cache <span style='color:#111;'> 954B </span>","children":null,"spread":false},{"title":"MainWindow.g.cs <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.92KB </span>","children":null,"spread":false},{"title":"Window2.baml <span style='color:#111;'> 983B </span>","children":null,"spread":false},{"title":"WpfApp3_MarkupCompile.i.cache <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"Window2.g.cs <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"Window1.g.cs <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"App.g.i.cs <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"WpfApp3.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":".NETFramework,Version=v4.0.AssemblyAttributes.cs <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"MainWindow.g.i.cs <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"WpfApp3.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"WpfApp3.csprojAssemblyReference.cache <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"WpfApp3_MarkupCompile.i.lref <span style='color:#111;'> 76B </span>","children":null,"spread":false},{"title":"WpfApp3.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"WpfApp3.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"WpfApp3.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false},{"title":"WpfApp3.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Window1.xaml.cs <span style='color:#111;'> 579B </span>","children":null,"spread":false},{"title":"App.xaml.cs <span style='color:#111;'> 303B </span>","children":null,"spread":false},{"title":"Window2.xaml.cs <span style='color:#111;'> 579B </span>","children":null,"spread":false},{"title":"WindowHelper.cs <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"Window2.xaml <span style='color:#111;'> 495B </span>","children":null,"spread":false},{"title":"MainWindow.xaml <span style='color:#111;'> 665B </span>","children":null,"spread":false},{"title":"Window1.xaml <span style='color:#111;'> 495B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 201B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false}],"spread":true},{"title":"WpfApp3.csproj <span style='color:#111;'> 4.45KB </span>","children":null,"spread":false},{"title":"MainWindow.xaml.cs <span style='color:#111;'> 971B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明