public NodeCell(Row row)
            : base(row)
        {
            // create collapsed/expanded images
            if (_bmpExpanded == null)
            {
                _bmpExpanded  = ImageCell.GetImageSource("Expanded.png");
                _bmpCollapsed = ImageCell.GetImageSource("Collapsed.png");
            }

            // store reference to row
            _gr = row as GroupRow;

            // initialize collapsed/expanded image
            _nodeImage                      = new Image();
            _nodeImage.Source               = _gr.IsCollapsed ? _bmpCollapsed : _bmpExpanded;
            _nodeImage.Width                = _nodeImage.Height = 9;
            _nodeImage.VerticalAlignment    = VerticalAlignment.Center;
            _nodeImage.Stretch              = Stretch.None;
            _nodeImage.MouseLeftButtonDown += img_MouseLeftButtonDown;
            _nodeImage.MouseEnter          += img_MouseEnter;
            _nodeImage.MouseLeave          += img_MouseLeave;
            _nodeImage.Opacity              = ALPHA;
            Children.Insert(0, _nodeImage);

            // make text bold
            TextBlock.FontWeight = FontWeights.Bold;
        }
 public RatingCell()
 {
     if (_star == null)
     {
         _star = ImageCell.GetImageSource("star.png");
     }
     Orientation = Orientation.Horizontal;
     for (int i = 0; i < 5; i++)
     {
         var img = GetStarImage();
         img.Opacity              = OFF;
         img.MouseLeftButtonDown += img_MouseLeftButtonDown;
         Children.Add(img);
     }
 }