Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Triggers of Image -SourceChanged

Triggers of Image -SourceChanged

Scheduled Pinned Locked Moved WCF and WF
helpdatabase
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ezazazel
    wrote on last edited by
    #1

    Hi! Can anyone help me please with this problem:

    <Style.Triggers>
    <Trigger Property="IsMouseOver" Value="True">
    <Trigger.EnterActions>
    <BeginStoryboard Storyboard="{StaticResource expandStoryboard}" />
    </Trigger.EnterActions>
    <Trigger.ExitActions>
    <BeginStoryboard Storyboard="{StaticResource shrinkStoryboard}" />
    </Trigger.ExitActions>
    </Trigger>
    </Style.Triggers>

    Instead of IsMouseOver I would need the Properties for SourceChanged (Bound with a class implementing the Interface INotifyPropertyChanged) The perfect way would be to shrink the old image and expand the new one. I get the pictures this way:

    private IEnumerable<BitmapImage> _images;
    private IEnumerator<BitmapImage> _imageEnumerator;

    _images = from file in Directory.GetFiles(path, "*.jpg", SearchOption.AllDirectories)
    orderby file
    let uri = new Uri(file, UriKind.Absolute)
    select new BitmapImage(uri);

    ....

    _imageEnumerator.MoveNext();
    image = _imageEnumerator.Current;

    _WINDOW.DataContext = image;

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups