In your samplecode for "UltraNavigationBar" is the class "DirectoryWrapper" used. I don't know the assembly or namespace. Please, can you help me?
=== Infragistics Samplecode ===============================================================
> public class FileSystemSupport
> public void Populate()....
> // Assign an instance of a wrapper class which associates the node,> // location and directory to each object to the Tag property.> node.Tag = new DirectoryWrapper( drive.RootDirectory, location );> location.Tag = new DirectoryWrapper( drive.RootDirectory, node );
==================================================================
Error :
Error 2 The type or namespace name 'DirectoryWrapper' could not be found (are you missing a using directive or an assembly reference?)
Hello,
Did anyone ever answer your question? I am having the same issue right now.
Adrian
Hello adrian,
my question is still not answered (!) Do you have any solution for this?
regards,
Lucas
Unfortunately, I have not received any assistance to solve this issue yet either. From researching this issue myself though, I believe the "DirectoryWrapper" is another dll that needs to be added as an reference to your project/solution, but it is not a Infragistics dll so therein lies the next issue. I haven't had any luck finding the dll and who provides it.
It is a simple class that provides a way to logically associate a System.IO.DirectoryInfo, UltraTreeNode, and UltraNavigationBarLocation. It was used by a demo that some of the UltraNavigationBar code samples borrowed from. We try to make the code samples meaningful while at the same time not so complex that they are impossible to learn from, so for the sake of brevity we will occasionally omit code that is besides the point, as does MS. I don't think there is anything to be gained by including the implementation of that class in the sample (the point was simply to demonstrate that you can assign an opaque piece of data to the Tag property), but I attached it in case you want it:
#region DirectoryWrapperpublic class DirectoryWrapper{ protected DirectoryInfo directoryInfo = null; private KeyedSubObjectBase associatedObject;
public DirectoryWrapper( DirectoryInfo directoryInfo, KeyedSubObjectBase associatedObject ) { this.directoryInfo = directoryInfo; this.associatedObject = associatedObject; }
public virtual DirectoryInfo DirectoryInfo { get{ return this.directoryInfo; } }
public KeyedSubObjectBase AssociatedObject { get { return this.associatedObject; } }
public virtual bool Populate { get { return true; } }
}#endregion DirectoryWrapper