iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I have just downloaded and installed the WebAqua controls and so far have been very impressed by the features and functionality of the tool. However, I am not finding a good source of information on binding to collections. The project that I am working on needs to display a list of images from a web site and the image list changes dynamically based on a category picked by the user. I have working code that pulls a list of image URIs from a web service based on the category that the user has selected. I put each item into an observable collection and bind the itemssource of the coverflow control to the collection. However, I'm not seeing any images displayed. It's obvious that I'm missing a configuration item or a step but I'm not seeing any documentation that can guide me to the correct procedure to use to bind the control to a list of URIs. What I am trying to do is listed below. The cardData class is a class that contains properties about the images. The URI is one of those properties.
Dim imgInfo As ObservableCollection(Of cardData) = New ObservableCollection(Of cardData) For Each listItem In <<results from the web service>> Dim card As New cardData Dim strPicPath as string = "http://<<servername>>" & <<web service image path>> card.cardCat = imgCategory card.cardURI = New Uri(strPicPath, UriKind.Absolute) imgInfo.Add(card) Next ' add images to the coverflow control cardCoverFlow.ItemsSource = imgInfo cardCoverFlow.BindingImageSourceField = "cardURI"
The BindingImageSourceField property will accept a URL / path string of the image.
In your sample, please assign the value of strPicPath to the cardURI in order to resolve the issue. You may need to modify the cardData class so the cardURI will accept string value.
I think I have found the cause of the problem. I was attempting to change the appearance of the coverflow control and I decided to use Expression Blend to change the control. When I made those changes and ran the project from within Blend the images appeared. It turns out that when I am running the project locally from Visual Studio I am not loading a web server like Blend does. It seems like the control needs to be running from the localhost server in order to hit the server to download the images. Thanks for your assistance in helping me get this running. The coverflow control is beautiful and full featured.
Glen,
Thanks so much for the reply. I have changed the strPicPath to a string type and I have verified that the data from the object is getting into the coverflow control because I am able to see the name of the image in the title field. However, I'm still not seeing any images show up in the control. The coverflow control contains the correct number of items based on the data from the collection so I know that the binding is working. Any suggestions as to why I can't see the actual images? I have verified that the URL being passed into the control is correct and points to a valid image file on my server so I know that it's not an issue with the URL itself.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname