using System; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.ComponentModel; using System.Windows.Threading; using System.Windows.Interactivity; // Action that should be attached to the Textblock that displays the last game's score namespace GamePack { public class Lastscore : TriggerAction { // Private Properties private FrameworkElement target; protected override void OnAttached() { base.OnAttached(); target = this.AssociatedObject as FrameworkElement; CollisionTag tag = new CollisionTag(); tag.CollisionType = "Lastscore"; target.Tag = tag; } protected override void Invoke(object o) { } } }