-
aviFileWrapper_src
一個以c#.NET之媒體播放器碼源,可撥AVI之媒體檔,很實用!(A c#. NET on the media player code source of media that can be allocated to AVI files, very useful!)
- 2009-03-18 14:10:18下载
- 积分:1
-
开源HIS医院管理系统
请勿商用
web.config
?xml version="1.0"?>
- 2022-05-19 02:17:41下载
- 积分:1
-
< ASP.NET 2.0数据库项目案例导航>>CHAP03 搜索功能模块源代码和数据库文件;
< ASP.NET 2.0数据库项目案例导航>>CHAP03 搜索功能模块源代码和数据库文件;-> CHAP03 search function module source code and database files
- 2022-09-05 01:50:03下载
- 积分:1
-
Multifunctional Notepad!! Basic system comes with the same, in particular functi...
多功能记事本!!基本跟系统自带的一样,特别功能“简繁互换”-Multifunctional Notepad!! Basic system comes with the same, in particular functions
- 2022-12-02 01:20:03下载
- 积分:1
-
Beida Jade Bird' s three
北大青鸟的三波书店,用mvc架构,有兴趣可以下载参考-Beida Jade Bird" s three-wave bookstores, with mvc architecture, there is interested can download the reference
- 2023-03-13 16:45:03下载
- 积分:1
-
alarm_dingding
vb.net动画闹钟程序,可以设置任意多个闹钟,带声音提示和动画。适合初学者参考(vb.net alarm clock program, you can set any number of alarm clocks with voice prompts and animation. Reference for beginners)
- 2011-05-13 17:42:53下载
- 积分:1
-
SmartTank
基于.net的智能坦克(Smart tank)游戏程序源码,也可作为游戏编程入门范例(Based. Net intelligent tanks (Smart tank) game program source code, can be used as examples of game programming entry)
- 2013-07-25 10:09:05下载
- 积分:1
-
Conversion
Converter from decimal to binary and from binary to decimal
- 2010-08-09 23:23:58下载
- 积分:1
-
MVVM: 关闭对话框
翻译 maninwest@Codeforge 作者 Cornelius Henning@Codeproject
我学习 MVVM 时遇到一个意外问题,关闭对话框时不如在旧的 WPF 中简单, 尤其是当你想避免背后的代码时。在此示例中,所有代码都在视图的 ViewModel 类中。
使用代码
整个项目是个可下载的 zip 文件。该项目是在Visual Studio 2012 中进行的,针对 .NET 4.5 平台。如要查看演示,请解压缩文件并进行构建。运行时,会显示一个用户,具有一个包含一个按钮的主窗口。单击按钮会打开新的具有两个按钮的对话窗口。单击任何一个按钮会执行有限的代码,然后对话框会关闭。
请注意,为了提高可读性,代码已经少得不能再少了。处理运行时错误的意外手柄也减到最少。如果你要使用此代码,务必要确保最终代码稳健且可处理任何意外或其他错误。
此代码中无使用的约束条件。你可以使用全部或者部分。
实现的说明
对话框的关闭由附加的属性控制。属性设置为 true 时,对话框会关闭。.以下是注册附加事件的代码:
using System; using System.Windows; namespace MvvmDialogDemo.AttachedProperty
{ public static class CloseDialog
{ public static readonly DependencyProperty DialogResultProperty =
DependencyProperty.RegisterAttached("DialogResult", typeof(Boolean?), typeof(CloseDialog),new PropertyMetadata(DialogResultChanged)); private static void DialogResultChanged
(DependencyO
- 2022-08-21 18:18:47下载
- 积分:1
-
有关asp.net的学习资料,有大量的代码及说明,很实用!
有关asp.net的学习资料,有大量的代码及说明,很实用!-Asp.net learning relevant information, have a lot of code and description, it is practical!
- 2022-02-04 22:40:33下载
- 积分:1