Click here to Skip to main content
15,886,851 members
Articles / Desktop Programming / WPF

Closing Windows and Applications with WPF and MVVM

Rate me:
Please Sign up or sign in to vote.
4.68/5 (13 votes)
10 Aug 2012CPOL12 min read 222.2K   5.8K   66  
This article samples a MVVM conform implementation of startup and shutdown sequences for an application and its dialogs.

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C# Express 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DialogCloser", "DialogCloser.csproj", "{1A5808AC-745D-45A8-A8E5-353C8DF849A2}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|x86 = Debug|x86
		Release|Any CPU = Release|Any CPU
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{1A5808AC-745D-45A8-A8E5-353C8DF849A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{1A5808AC-745D-45A8-A8E5-353C8DF849A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{1A5808AC-745D-45A8-A8E5-353C8DF849A2}.Debug|x86.ActiveCfg = Debug|x86
		{1A5808AC-745D-45A8-A8E5-353C8DF849A2}.Debug|x86.Build.0 = Debug|x86
		{1A5808AC-745D-45A8-A8E5-353C8DF849A2}.Release|Any CPU.ActiveCfg = Release|x86
		{1A5808AC-745D-45A8-A8E5-353C8DF849A2}.Release|Any CPU.Build.0 = Release|x86
		{1A5808AC-745D-45A8-A8E5-353C8DF849A2}.Release|x86.ActiveCfg = Release|x86
		{1A5808AC-745D-45A8-A8E5-353C8DF849A2}.Release|x86.Build.0 = Release|x86
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Germany Germany
The Windows Presentation Foundation (WPF) and C# are among my favorites and so I developed Edi

and a few other projects on GitHub. I am normally an algorithms and structure type but WPF has such interesting UI sides that I cannot help myself but get into it.

https://de.linkedin.com/in/dirkbahle

Comments and Discussions