public OnInfoClickEventArgs(Info info) { this.Info = info; }
private void initIndexImage(Info info, int index) { InfoIndexItem item = new InfoIndexItem(); Image s = new Image(); s.Margin = new Thickness(2.0, 1.0, 2.0, 1.0); s.Height = 45.0; s.Width = 57.0; s.Stretch = Stretch.Fill; s.Source = info.ImageSource; s.Tag = index; s.MouseLeftButtonDown += (objects, arts) => { Image source = objects as Image; int Index = (int)source.Tag; Content.DataContext = InfoList[Index]; _currentIndex = Index; }; s.MouseEnter += new MouseEventHandler(Content_MouseEnter); s.MouseLeave += new MouseEventHandler(Content_MouseLeave); }