Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FindName function (Read 1632 times)
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
FindName function
Apr 3rd, 2009 at 4:48pm
Print Post  
The FindName function indicates that it will find an object based upon "provider identifier name".  I was hoping to use that like the FindNode function, but i want to search for a name or a UID of the object...  How can i do that (without looping through entire collection)?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FindName function
Reply #1 - Apr 6th, 2009 at 9:16am
Print Post  
FindName is defined by FrameworkElement and I have no idea what's it use. You could use FindNode is you assign your name/UIDs to the Tag property of nodes. You might as well create a Hashtable and map UIDs or names to nodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Re: FindName function
Reply #2 - Apr 6th, 2009 at 12:51pm
Print Post  
We are using the tag property already for another purpose and it doesn't really work for how we need to find the nodes.  We wrote a function that does the find that meets our need now.  Thanks for the reply.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint