.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> WPF >> Post New QuestionBookmark and Share Subscribe to Forum

About Tree view Child Expandable

Posted By: Asha.MP     Posted Date: October 04, 2010    Points:2   Category :WPF
HI...

Now i am adding the Child for the Child items but, it is by default in expandaded, how to make that as collapsible?

like
Parent
child1
child2
child3

i want to do this as
+ parent

after click on parent it should expand.

Any one know how to do that?


Responses
Author: Dhiraj Ranka             
Posted Date: October 20, 2010     Points: 5   

Hi,

What you can do is give a name to parent node in XAML, and after adding all the child items use the name given in XAML and set its "IsEnabled" property value to false.

Hope this helps.

Hope this helps.

Thanks & Regards,
Dhiraj Ranka
http://www.twitter.com/dhirajranka | http://www.dhirajranka.com
Author: Asha.MP             
Posted Date: October 22, 2010     Points: 5   

Hi Dhiraj..

Thank for your reply but I need that dynamically. when I execute the program it should show
+MyComputer, if I click on MyComputer it should expand like
MyComputer
+C
+D
+E
+F
if I click on C it should expand which shows all folder in C.
Means dynamically I should disply these things.
Is It clear?

Thanks and Regards,
Asha.mp


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend