Click here to Skip to main content
15,884,628 members
Articles / Desktop Programming / WPF

WPF Control State Persistency

Rate me:
Please Sign up or sign in to vote.
4.61/5 (11 votes)
9 Jun 20073 min read 124.2K   651   37  
This article describes how to store and restore WPF's elements state, such as position, size, etc.

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElementStateLogic", "ElementStateLogic\ElementStateLogic.csproj", "{C711E992-7BA2-4EA2-9573-67E79A6779C2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElementStateDemo", "ElementStateDemo\ElementStateDemo.csproj", "{177B9422-D534-4D70-80C3-9CB7454F6AE6}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{C711E992-7BA2-4EA2-9573-67E79A6779C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{C711E992-7BA2-4EA2-9573-67E79A6779C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{C711E992-7BA2-4EA2-9573-67E79A6779C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{C711E992-7BA2-4EA2-9573-67E79A6779C2}.Release|Any CPU.Build.0 = Release|Any CPU
		{177B9422-D534-4D70-80C3-9CB7454F6AE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{177B9422-D534-4D70-80C3-9CB7454F6AE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{177B9422-D534-4D70-80C3-9CB7454F6AE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{177B9422-D534-4D70-80C3-9CB7454F6AE6}.Release|Any CPU.Build.0 = Release|Any CPU
	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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Architect CodeValue
Israel Israel
Tomer Shamam is a Software Architect and a UI Expert at CodeValue, the home of software experts, based in Israel (http://codevalue.net). Tomer is a speaker in Microsoft conferences and user groups, and in-house courses. Tomer has years of experience in software development, he holds a B.A degree in computer science, and his writings appear regularly in the Israeli MSDN Pulse, and other popular developer web sites such as CodePlex and The Code Project. About his thoughts and ideas you can read in his blog (http://blogs.microsoft.co.il/blogs/tomershamam).

Comments and Discussions