C # / WPF: display images as LightBox in jQuery?

Has anyone tried to create jQuery "LightBox" -Like "Popup" (WPF UserControl) to display images? See this page for an example: http://www.huddletogether.com/projects/lightbox2/

Thanks!

+3
source share
2 answers

Here is a site that seems to have done this, but this is only version 0.5 and can change a lot to 1.0:
http://leandrovieira.com/projects/jquery/lightbox/#

This should be what you are looking for, and here is a sample code for implementation:

$(function() {
    $('#gallery a').lightBox({fixedNavigation:true});
});

I hope this helps,

Thanks!


EDIT:

, , . ( /) .

, , . , . :

: http://img682.imageshack.us/img682/8941/firstpictureopen.jpg

: http://img5.imageshack.us/img5/3172/secondpicturefading.jpg

: http://img682.imageshack.us/img682/5404/secondpictureopen.jpg

, Lightbox. , , . , , .

, Google .

zip :
http://stackoverflow-answers-by-scott.googlecode.com/files/1755872.zip

, ,

!

+9

, , WPF. :

  • UserControl ItemList IEnumerable<ImageSource>
  • Popup UserControl
  • Grid Popup, LightBox , , Image, TextBlock Button
  • StoryBoard, Loaded, .
  • EventTrigger, Popup IsOpen false
  • Image.Source {Binding ItemList/}, ItemList
  • Background="Transparent" Grid, ItemList
  • BeginStoryboard
+4

Source: https://habr.com/ru/post/1723223/


All Articles