|
|
Comments and Discussions
|
|
 |

|
Hi, nice job! I need to bind to a enumerable collection of classes and display the data with an ItemTemplate (aka: not display pictures), have you done that with this code?
____________________________________________________________
Be brave little warrior, be VERY brave
|
|
|
|

|
i wand to display the image caruser over a windows form, how can i do this???
|
|
|
|
|

|
Hi Cokkiy
First of all, awesome tutorial. I am just learning SL. I downloaded your code and it was converted to VS2010, runs fine.
Now, I am trying to incorporate this into an existing project
1. Added a SL page (where the carousel will be displayed)
2. Added the namespace xmns:display=”clear……Corkkiy.Dsiplay.Carousel” width=”800” Height=”600”
3. Added a reference to cokkiy.Display.carousell.dll (in VS2010)
4. Added the XML code as described in step 2 above
5. Created a Images folder (main solution) and added existing items (the images)
6. Set properties (for each image) as Content & Copy Always
When I ran the program, the carousel is displayed but no images then after few minutes, the application crashes.
I did not copy anything else (e.g. CarouselItems.cs, ItemSource.cs, ItemSOurceCollection.cs..etc) unless I misread your article, I really do not need anything else, correct?
Many thanks in advance
|
|
|
|

|
You should re-download the project zip file (Carousel_src_v3.zip) and try the following.
Right click the soultion and choose to open with VS2010
Change all of the projects to target Silverlight 4.
Next you will probably get an error and the source of the error will be a line in ImageCollection.cs so right click and select exclude from project. (Exclude ImageCollection.cs)
Change the image sources to
<display:ItemSource Title="01" ImageSource="http://somesite.com/someimage.jpg"/> etc
It sounds like the images are not found how you have it setup. If it shows the remote images without crashing it's your image sources.
|
|
|
|

|
Is there a way of getting the URI from the database and loading the photos dynamically?
|
|
|
|

|
The way I do it is use a WCF service to query the database and output to a list collection. From there you can call the service during the loading of the control and set the ImageSource properties from code via the service call results.
I have not done it for this specific control so I don't have source to post but a quick lookup on "wcf databinding silverlight" will give you loads of info.
|
|
|
|

|
Greate control! How would you ratate the carousel control verticaly? Please advise. Thanks.
|
|
|
|

|
Awesome Job! Simple and smooth SL control
|
|
|
|

|
Great article. Thank you !
|
|
|
|

|
Downloaded files do not work! They cannot be converted to VS2010.
|
|
|
|

|
ra3doa wrote: Downloaded files do not work! They cannot be converted to VS2010.
Nowhere in the article the author stated that the solution could be converted to VS2010.
|
|
|
|

|
Yes it does. If you're getting an error in ImageCollection.cs simply exclude it from the project.
You need to go into each project properties and change the silverlight version to 4 as well.
If all else fails, rebuild the control, create a new silverlight website, reference the control then copy relevant code from old Test project to your new site's silverlight project.
|
|
|
|

|
Can i create an image with URL?
When I try to add image in page.xaml like this:
<display:ItemSource Title="01" ImageSource="http://disc.globalshop.ua/image.jpg" />
<display:ItemSource Title="02" ImageSource="Images/02.jpg"/>
<display:ItemSource Title="03" ImageSource="Images/03.jpg"/>
<display:ItemSource Title="04" ImageSource="Images/04.jpg"/>
<display:ItemSource Title="05" ImageSource="Images/05.jpg"/>
<display:ItemSource Title="06" ImageSource="Images/06.jpg"/>
it doesn't create first image, but other is work fine. What is wrong with this code? Or Carousel doesn't support loading image from URL?
And this all about Silverlight version 3 Carousel.
And new interesting thing. When i specify wrong URL application shows me some kind of loading bar, and it never loaded. And when URL is correct a see carousel with blank square instead of picture from URL.
modified on Wednesday, August 4, 2010 5:14 PM
|
|
|
|

|
Are you host the web page which the sl app insides in a web server? You can reference MSDN about ImageSource property of Image control for more info maybe help you
The God created the world.
The programer made the world easy.
|
|
|
|

|
I resolve the problem. I load picture through WebClient and it's work well now.
And thank you for your answer.
|
|
|
|

|
Thank you!
I really like it.
You saved me a great deal of learning and developing work.
Sincerely,
King
|
|
|
|

|
Would you please give me information about how you and your team accept Projects, How you schedule and how you calculate price of a project, Despite a CMS/DMS Projects In Silverlight With WCF (Service Oriented) and using "MS Workflow" in business layer. Is this different for Right To Left Languages? You can touch me at Mehrandhn@gmail.com. Thank you.
|
|
|
|

|
hi
great job,
i want to display the silverlight chart control instead of image, im in need of displaying them in dash board. any suggestions will be thankfull,
regards
hemanth
|
|
|
|

|
Yes you can but you need do some additions work for this.
The God created the world.
The programer made the world easy.
|
|
|
|

|
at Cokkiy.Display.Carousel.items_Collectionchanged(object sender,notifycollectionschangedeventsargs e)
This happens if i move from page where carousel control is placed to another page and come back to carousel page.
|
|
|
|

|
I got the exact same issue but mine crashes on void _carouselCanvas_SizeChanged(object sender, SizeChangedEventArgs e)
|
|
|
|

|
The working example version link doesn't work
|
|
|
|

|
Since MS close the service, so can't give a live example now.
The God created the world.
The programer made the world easy.
|
|
|
|

|
Hi Cokkiy,
It's an amazing post. Thanks for sharing with us... :thumsup:
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets
|
|
|
|

|
Hi!
I saw this demo and I really like it, but I have a question, what if instead of images I want to display buttons, textbox, usercontrols, etc?
|
|
|
|

|
Thanks for posting this project it will more helpfull. So i rate Excellent.
|
|
|
|

|
This is a great article. One question. Can this be done using Visual Basic 2008? Do you have a Visual Basic 2008 version?
|
|
|
|

|
How can i make the carrousel start in Full screen ?
Thanks for answering
|
|
|
|

|
Hi,
Thank you for the nice work.
when i run your code first time its successfully runs and i see the control working, from the second time onwards the page is blank and sometimes i get out of memory exception even i have 2.5 GB free space on c drive and 10GB space on D drive.
I am new to silverlight and please give me the solution for this.
Thanks/Regards,
Madhan Prabu
|
|
|
|

|
Hi,
Can you describe what you doing more detail or if it appropriate you can send me a copy of your code.
The God created the world.
The programer made the world easy.
|
|
|
|

|
Hello,
First, a big bravo for your control, it's a great great job !
I included it in a silverlight 3 solution. As my images are dispatched in differents hard drives in the server, I dynamically copy them in a directory which is at the same place than the xap file. For that I created a Web Service (dot net) which make the copies. So each carousel item is created with a good uri. I then modified the mouse left button event of the ItemViewerControl (in your code it makes the ItemViewerControl disappear), so that the click on a ItemViewerControl dynamically displays a popup that shows my image in a bigger format. Everything is good except that there is no progress bar when silverlight download in the client cache the images. So when they are a little big, the carousel shows empty rectangles until the first images are downloaded.
To avoid this, I modified the Source property. Instead of an Uri, I tried to put a Memorystream. The bitmap is not created by the Uri, but by the MemoryStream.
The big advantage doing this is that I can download my images by web service (and then display a progress bar if I download them by blocks). After each download, I add the carousel item which displays them very well. My problem is the following : when I click on a carousel item (the little cycling image) the big image (which grows up by a story board) doesn't appear... But the title normally appears when the mouse enters in it. So the ItemViewer is here, but not my image. I put break point at each instruction who speak about ImageSource ( ), but the value is a bitmap each time. More, when I click on the title, the popup I created myself opens, and the biggest image is here !!! I don't understand what's happening, and why my image is not displayed in the ItemViewerControl.
I search in your code (I don't understand the whole, I admit), and I can't find the control which is used to display the image. Is this an image, a bitmap, a rectangle, something else ? Where do you do that ?
If you can help me, it would be very nice.
Sorry if my post is too long !
FLIron
|
|
|
|

|
Hi, the ItemViewerControl contains an Image control to display the larger picture, yan can find this in generic.xaml file. So I thinks if you just change the Uri to Memorystrem and properly created the ItemSource's ImageSource property, the larger picture should appear.
If you still have this problem, maybe you can add a Memorytream property in ItemSource and then in item_MouseLeftButtonDown method recreate a ImageSource using the memorystream and then apply it to SelectedItemViewer.Source.
The God created the world.
The programer made the world easy.
|
|
|
|

|
Hi !
Thanks for your answer ! I will try to create a MemoryStream property, I hope it will work !
I'll tell you if it does.
See you later !
Bye
FLIron
|
|
|
|

|
Hello !
I did what you suggested (adding MemoryStream as a property, and all is fine !
Thanks for your answer and , again, a big applause for your control !
See you
FLIron
|
|
|
|

|
when i redirect from one page to the page which ia having carousel control
then it shows the same problem
Can any one help me on this
|
|
|
|

|
Hi,
What's problem are you encounter? Can you describe it more detail?
The God created the world.
The programer made the world easy.
|
|
|
|

|
Hello,
Can the images be hyperlinked and open webpages in a new window?
By the way, it is a great sample!
|
|
|
|

|
I'd be very interested in how to pass a hyperlink along with the images as well! I'd like the user to get a new tab pop up with the link attached to the current picture when the big currently selected picture is clicked.
Is there anybody that can modify the code for this???
|
|
|
|

|
Hi, It's very simple. You just need rewrite the
void _selectedItemViewer_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
SelectedItemViewer.Source = null;
}function in Carousel.cs file.
You can add a property to ItemSource class represents the url that you want the user navigate to. So you can get this url in the _selectedItemViewer_MouseLeftButtonUp method like this:
string url =SelectedItemViewer.Source.your-property-name
The God created the world.
The programer made the world easy.
|
|
|
|

|
Cokkiy, You have done an excellent job.
Congratulations.
|
|
|
|
|

|
have u ever post any project
|
|
|
|

|
I could not find the assembly cokkiy.display.carousel
please let me know where i can download it.
|
|
|
|

|
You should compile the source code that you have been downloaded to get the assembly cokkiy.display.carousel
The God created the world.
The programer made the world easy.
|
|
|
|
|

|
I am having the same problem with carousel and navigation, I am using silverlight business application template and in one of my navigation links i am using carousel, but when navigation back to this page, i'm getting error.
any idea how to resolve the issue?
|
|
|
|

|
HI cookiy.....
i need the panel of the same type....
will u develop and send it to me....
mail id:maddhy@gmail.com
|
|
|
|

|
Hi cokkiy,
Can you send me a chinese version?
Thanks.
|
|
|
|

|
Hi,
I downloaded the code project and Run in Visual Studio, but after compile, in the page, dont show carousel, why?
Use Silverligth 2.0.
thanks
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
|
This article describes how to create and use the Silverlight Carousel control.
| Type | Article |
| Licence | Ms-PL |
| First Posted | 22 Nov 2008 |
| Views | 359,438 |
| Downloads | 4,758 |
| Bookmarked | 125 times |
|
|