Wrox Programmer Forums
|
C# 4.0 aka C# 2010 General Discussion Discussions about the C# 4.0, C# 4, Visual C# 2010 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 4.0 aka C# 2010 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 8th, 2011, 10:54 AM
Authorized User
 
Join Date: Nov 2008
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to save TreeView structure in WPF

Hi every body
I'm trying to write a WPF application and it includes a treeview, and my problem is how to save the structure of my treeview so that i can reconstruct it later i know that i should implement recursive Fn but i failed to do it(although i did it in treeview of window form) so if any one have an idea about how to implement this fn in WPF or have any other idea be my guest.
 
Old April 15th, 2011, 03:57 PM
Wrox Author
 
Join Date: Sep 2010
Posts: 175
Thanks: 3
Thanked 53 Times in 53 Posts
Default

You probably want to save the data that the TreeView binds to instead of the TreeView. Then it fully depends on the data that is used. Is the TreeView bound to XML data? Then you already have a storage format. Is it a class with properties? Serialization of the instance?

Christian
__________________
Christian
CN innovation
Visit my blog at: csharp.christiannagel.com
Follow me on twitter: @christiannagel





Similar Threads
Thread Thread Starter Forum Replies Last Post
STA COM with WPF EyeOfThierry BOOK: WPF Programmer's Reference: Windows Presentation Foundation with C# 2010 and .NET 4 2 April 14th, 2010 03:45 PM
WCF/WPF ashish_26 ASP.NET 3.5 Professionals 0 August 6th, 2009 05:41 AM
wpf+c#(kind help) vinothkumar124 Windows Presentation Foundation 0 December 16th, 2008 08:06 AM
Reflecting a table's structure in a TreeView shakeelw Pro VB Databases 0 June 19th, 2004 06:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.