Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2007

Tip: Looking for answers? Try searching our database.

General design of WPF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 24 Jul 2007 19:56 GMT
Hi,

In WPF, I would like to create similar functionality as Windows Explorer has
for renaming folders. (If you press F2 over selected tree view item is
displayed textbox which contains name of folder which can be edited).
In WPF I can do it using TreeView control but I do not know how to position
correctly textbox over selected TreeViewItem after clicking rename. I do not
know how to find out screen position of selected item in TreeView.
But also I am not sure if my approach is correct for WPF based application.

Thanks for any suggestions how to implement similar functionality :-).

John
Radek Cerny - 25 Jul 2007 03:44 GMT
Theres a few ways to do it.. I think.

You could change the content (or header?)  of the treeviewitem from a
TextBlock or whatever to a TextBox (or have one there a toggle its
visibility between Collapsed and visible).

HTH

> Hi,
>
[quoted text clipped - 13 lines]
>
> John
Walter Wang [MSFT] - 27 Jul 2007 04:17 GMT
Hi John,

Sorry for late reply. Here's an working example which uses style to achieve
this:

http://blogs.microsoft.co.il/blogs/tamir/archive/2007/05/20/Create-editable-
TreeViewItem-using-styles.aspx

Please let me know if you have any other questions.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 01 Aug 2007 03:54 GMT
Hi John,

I'm writing to check the status of this post. Please feel free to let me
know if there's anything else I can help. Thanks.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.