Here are some examples:
Example 1:
animation.Completed += delegate
{
// Start the other animation after the end of the previous animation.
index++;
if (lstDefinitions.Count > index)
this.PerformAnimations(index, lstDefinitions);
};
Example 2:
label.MouseDown += (sender, e) =>
{
Console.WriteLine('MouseDown:{0}', e.OriginalSource);
//Not clear why this is needed, but I guess this can effectively bypass
// any attempt from the parent control to capture the mouse inside MouseDown handler.
e.Handled = true;
};
Share with