Hi JNikolov,
Let's say the class that contains the property of type IBindableQuery is MyClass. To get what you want, the MyClass class should derives from the Component type and implement the IListSource interface. When implementing the GetList method of the IListSource interface, return a list that contains the current instance of the MyClass itself. The following is a sample:
public class MyClass: Component, IListSource
{
public MyClass() { }
public MyClass(IContainer container)
{
container.Add(this);
}
privateIBindableQuery bindableQuery;
publicIBindableQueryBindableQuery
{
get { return bindableQuery; }
}
#region IListSource Members
bool IListSource.ContainsListCollection
{
get { return true; }
}
System.Collections.IList IListSource.GetList()
{
List<MyClass> list = new List<MyClass>();
list.Add(this);
return list;
}
#endregion
}
Please try my suggestion and let me know the result.
Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.