示例#1
0
		public void AddDefaultImage(Bio bio)
		{
			var frame = new RectangleF(10, 10, DimensionSet.BioImageSquareSize, DimensionSet.BioImageSquareSize);
			var defaultProfile = new UIImageView();
			defaultProfile.Frame = frame;
			defaultProfile.Image = GetDefaultBioImage();
			defaultProfile.BackgroundColor = UIColor.Clear;
			AddSubview(defaultProfile);
		}
示例#2
0
		public BioView(Bio bio, RectangleF frame, bool discloseButton) : base (frame)
		{
			_bio = bio;
			BackgroundColor = UIColor.Clear;
			
			AddDefaultImage(_bio);
			AddLoadingSpinner();
			AddOrUpdateBio(_bio);			
			AddSiteUrl(frame);
		}
示例#3
0
        public void AddDefaultImage(Bio bio)
        {
            var frame          = new RectangleF(10, 10, DimensionSet.BioImageSquareSize, DimensionSet.BioImageSquareSize);
            var defaultProfile = new UIImageView();

            defaultProfile.Frame           = frame;
            defaultProfile.Image           = GetDefaultBioImage();
            defaultProfile.BackgroundColor = UIColor.Clear;
            AddSubview(defaultProfile);
        }
示例#4
0
        public BioView(Bio bio, RectangleF frame, bool discloseButton) : base(frame)
        {
            _bio            = bio;
            BackgroundColor = UIColor.Clear;

            AddDefaultImage(_bio);
            AddLoadingSpinner();
            AddOrUpdateBio(_bio);
            AddSiteUrl(frame);
        }
示例#5
0
        public void AddOrUpdateBio(Bio bio)
        {
            var frame = new RectangleF(10, 10, DimensionSet.BioImageSquareSize, DimensionSet.BioImageSquareSize);

            _profile                 = _profile ?? new UIImageView(frame);
            _profile.Image           = bio.Image;
            _profile.BackgroundColor = UIColor.Clear;
            if (_profile.Superview == null)
            {
                AddSubview(_profile);
            }
            this.SetNeedsDisplay();
        }
示例#6
0
		public void AddOrUpdateBio(Bio bio)
		{
			var frame = new RectangleF(10, 10, DimensionSet.BioImageSquareSize, DimensionSet.BioImageSquareSize);
			_profile = _profile ?? new UIImageView(frame);
			_profile.Image = bio.Image;
			_profile.BackgroundColor = UIColor.Clear;
			if(_profile.Superview == null)
			{
				AddSubview(_profile);
			}
			this.SetNeedsDisplay();
		}
示例#7
0
		public BioViewController() : base("Images/backgrounds/wall.jpg", null)
		{
			_bio = new Bio();			
			Root = GetRoot();
		}
示例#8
0
 public BioViewController() : base("Images/backgrounds/wall.jpg", null)
 {
     _bio = new Bio();
     Root = GetRoot();
 }