private void Item_Click(object sender, RoutedEventArgs e) { Hyperlink obj = (Hyperlink)sender; NotifyObject notifyObject = (NotifyObject)obj.Tag; if (notifyObject.ClickEvent != null) { notifyObject.ClickEvent(notifyObject.Tag); } }