private void OnContextRequested(UIElement sender, ContextRequestedEventArgs args) { var animation = List.ItemFromContainer(sender) as Animation; if (animation == null) { return; } ItemContextRequested?.Invoke(sender, new ItemContextRequestedEventArgs <Animation>(animation, args)); }
private void Sticker_ContextRequested(UIElement sender, ContextRequestedEventArgs args) { ItemContextRequested?.Invoke(sender, args); }