1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / calling the Images&Docs lightbox from a silverlight app

calling the Images&Docs lightbox from a silverlight app

4 posts, 0 answered
  1. Mark
    Mark avatar
    86 posts
    Registered:
    08 Feb 2010
    14 Jun 2010
    Link to this post
    I've integrated a silverlight application which has a button called view gallery

    I'd like when you click on the silverlight button to show a certain library of images but pop up as a light box

    How would i integrate this type of solution?
    could i hard code the link, if so what would i do

    thanks
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    15 Jun 2010
    Link to this post
    Hello Dave,

    could you please elaborate on the scenario - do you want all the images to be loaded in a single lightbox?

    Kind regards,
    Georgi
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Mark
    Mark avatar
    86 posts
    Registered:
    08 Feb 2010
    15 Jun 2010
    Link to this post
    Sorry for the confusion

    I just want the standard lightbox functionality,
    i.e. it shows one image at a time, and you click next/previous to see others

    I only want to show the images in a certain library
    Is there a bit of HTML i can hard code as a link that will do this ?


    Thanks
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    15 Jun 2010
    Link to this post
    Hi Dave,

    I am not sure that this could work - there should be some 

    Here are all the requirements for the LIghtbox to work - http://www.huddletogether.com/projects/lightbox2/#how
    I suggest you the following:

    1. The page that hosts the Silverlight application should also host the images from your library, but they should be hidden via CSS, so the user cannot see them. The lightbox scripts should be added to the page (the above link will tell you more).
    2. Each image should have the 

     rel="lightbox"

    attribute. 

    3. The link should simulate a mouse click to one of the images, or use the new Lightbox() javascript constructor. I actually found a web page, which shows the same functionality done with Flash though - executing a Lightbox from Flash - http://www.aleosoft.com/flashtutorial_lightbox2.html

    I hope this helps. 

    Kind regards,
    Georgi
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
4 posts, 0 answered