Ejemplo n.º 1
0
        void SetUpCollectionView()
        {
            avatars               = new List <AvatarItem> ();
            source                = new AvatarsCollectionViewSource(avatars);
            source.Selected      += OnAvatarSelected;
            CollectionView.Source = source;
            CollectionView.RegisterClassForCell(typeof(AvatarCollectionViewCell), AvatarCollectionViewCell.CellId);

            // Visual stuff
            CollectionView.BackgroundColor = UIColor.Clear;
        }
Ejemplo n.º 2
0
		void SetUpCollectionView ()
		{
			avatars = new List<AvatarItem> ();
			source = new AvatarsCollectionViewSource (avatars);
			source.Selected += OnAvatarSelected;
			CollectionView.Source = source;
			CollectionView.RegisterClassForCell (typeof(AvatarCollectionViewCell), AvatarCollectionViewCell.CellId);

			// Visual stuff
			CollectionView.BackgroundColor = UIColor.Clear;
		}