diff -r 110067a19ec8 -r beebae32b1ed src/FingersDance.Control.Menu/UserControlMenu.xaml.cs --- a/src/FingersDance.Control.Menu/UserControlMenu.xaml.cs Thu Nov 19 15:35:46 2009 +0100 +++ b/src/FingersDance.Control.Menu/UserControlMenu.xaml.cs Thu Nov 19 18:37:26 2009 +0100 @@ -116,17 +116,11 @@ // Generate action // We get the instance of the user panel UserControl userPanel = (UserControl)((Grid)((Grid)this.Parent).Parent).Parent; - // Its content... - Grid o = (Grid)userPanel.Content; - // and the UserControlSyncSource within the grid... - UserControlSyncSource syncSrc = (UserControlSyncSource)((Grid)o.Children[1]).Children[0]; - // and finally the timeline - UserControlTimeLine tl = syncSrc.userControlTimeLine; String actionId = ((CustomSurfaceButton)sender).Action; ActionGenerator ag = new ActionGenerator(); Object[] ar = new Object[2]; - ar[0] = tl; + ar[0] = userPanel; ar[1] = (String)((CustomSurfaceButton)sender).Content; ActionBase ab = ag.GetAction(actionId, ar); if(ab!=null)