Triggers of Image -SourceChanged
-
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;