Is it possible to use an IValueConverter with DisplayMemberPath? For instance I have and object hierarcy as follows
class Item
{
public ObservableCollection<ItemImage> Images {get; set;}
}
class ItemImage
{
public ItemMedia MediaUrl {get; set;}
public string Type {get; set;}
}
class ItemMedia
{
public string High {get; set;}
public string Mid {get; set;}
public string Low {get; set;}
}
So I want to assign the coverflow's ItemSource to an ObservableCollection<Item>. As you can see each Item can have more than one image associated with it; I would want the first one with a Type == "Full". Then I would use the Mid proprty (which is basically the URI to the image). The problem comes with trying to grab the correct image from the ObservableCollection. Normally on an ItemsControl I would use a Converter to run a Linq query on that ObservableCollection and return the Mid. I can't quite figure out how to do the equivalent with the coverflow control...perhaps I'm a little brain dead today.
Chandler
class Item
{
public ObservableCollection<ItemImage> Images {get; set;}
}
class ItemImage
{
public ItemMedia MediaUrl {get; set;}
public string Type {get; set;}
}
class ItemMedia
{
public string High {get; set;}
public string Mid {get; set;}
public string Low {get; set;}
}
So I want to assign the coverflow's ItemSource to an ObservableCollection<Item>. As you can see each Item can have more than one image associated with it; I would want the first one with a Type == "Full". Then I would use the Mid proprty (which is basically the URI to the image). The problem comes with trying to grab the correct image from the ObservableCollection. Normally on an ItemsControl I would use a Converter to run a Linq query on that ObservableCollection and return the Mid. I can't quite figure out how to do the equivalent with the coverflow control...perhaps I'm a little brain dead today.
Chandler