Exemplo n.º 1
0
 public OnInfoClickEventArgs(Info info)
 {
     this.Info = info;
 }
Exemplo n.º 2
0
        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);

        }