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

            // store reference to row

            // initialize collapsed/expanded image
            _nodeImage                      = new Image();
            _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;
            _nodeImage.Source               = _isCollapsed ? _bmpCollapsed : _bmpExpanded;
            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);
     }
 }