Home Dashboard Directory Help
Search

TreeView XmldataProvider - remove selection attribute by CH Mustapha


Status: 

Closed
 as Won't Fix Help for as Won't Fix


1
0
Sign in
to vote
Type: Bug
ID: 778773
Opened: 2/7/2013 1:08:00 PM
Access Restriction: Public
1
Workaround(s)
view
0
User(s) can reproduce this bug

Description

I have a problem with Treeview connect to XmlDocument via XmlDataProvider When i select XmlElement with two attributes and more deleting selection Attribute works, but when there is a single attribute delete work in the XmlDocument but not in the treeview ( note Refresh )
Details
Sign in to post a comment.
Posted by Microsoft on 2/20/2013 at 12:52 PM
The WPF team has recently reviewed this issue and will not be addressing this issue as at this time the team is focusing on the bugs impacting the highest number of WPF developers. If you believe that this was resolved in error, please reactivate this bug with any necessary supporting details.

We appreciate the feedback. However, this issue will not be addressed in the next version of WPF. Thank you.
–WPF Team.

Posted by Microsoft on 2/12/2013 at 12:12 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by CH Mustapha on 2/9/2013 at 2:03 AM
I sent the file
Posted by Microsoft on 2/7/2013 at 9:49 PM
I am having trouble reproducing your issue. Can you share a sample project on which you are seeing this problem?

Thanks
Posted by Microsoft on 2/7/2013 at 1:50 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by CH Mustapha on 2/22/2013 at 1:15 PM
Thanks to Min Zhu : Personnel temporaire de Microsoft for her Résolution
(Visual Studio Developer Center > .NET Framework Forums > Windows Presentation Foundation (WPF) ) :

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/22fb44f1-10f9-48db-9c94-dc1d996852c0

Résolution :
XMLAttributionCollection does not implement INotifyCollectionChanged interface so its change update is not support by WPF binding system. Usually it is adviced not to real time update such collections. (In my case, the code works good when the attributes count >= 2, but it is not guaranteed.)

update manually the view by adding the following code right after Attributes.Remove
CollectionViewSource.GetDefaultView(xmlElementParent.Attributes).Refresh
File Name Submitted By Submitted On File Size  
Scene Builder.zip (restricted) 2/8/2013 -