Пример #1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="MWC.iOS.UI.CustomElements.ExhibitorCell"/> class.
		/// </summary>
		public ExhibitorCell (ExhibitorListItemViewModel showExhibitor) 
            : base (new RectangleF (0, 0, 320, 66 ))
		{
			exhibitor = showExhibitor;

			// create the control and add it to the view
			nameLabel = new UILabel ( new RectangleF ( cellTextLeft, 7, 231, 27 ) ); //9->7,23->25
			nameLabel.Font = UIFont.FromName ( "Helvetica-Light", AppDelegate.Font16pt );
			nameLabel.BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f);
			AddSubview (nameLabel);
			
			cityCountryLabel = new UILabel ( new RectangleF ( cellTextLeft, 9+23, 231, 16 ) );  // 15->16
			cityCountryLabel.Font = UIFont.FromName ( "Helvetica-LightOblique",  AppDelegate.Font10pt );
			cityCountryLabel.TextColor = UIColor.DarkGray;
			cityCountryLabel.BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f);
			AddSubview ( cityCountryLabel );
			
			boothLocationLabel = new UILabel ( new RectangleF ( cellTextLeft, 9+23+16+2, 231, 9 ) ); //15->17, 7->9
			boothLocationLabel.Font = UIFont.FromName ( "Helvetica-Light", AppDelegate.Font7_5pt );
			boothLocationLabel.BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f);
			AddSubview ( boothLocationLabel );
			
			logoImageView = new UIImageView ( new RectangleF ( 8, 8, 44, 44 ) );
			AddSubview(logoImageView);
		}
Пример #2
0
		public void UpdateCell (ExhibitorListItemViewModel showExhibitor)
		{
			exhibitor = showExhibitor;
			nameLabel.Text = exhibitor.Name;
			cityCountryLabel.Text = exhibitor.City + ", " + exhibitor.Country;
			boothLocationLabel.Text = exhibitor.Locations;
		
			var u = new Uri(exhibitor.ImageUrl);
			logoImageView.Image = ImageLoader.DefaultRequestImage(u, this);
		}
Пример #3
0
		/// <summary>
		/// for iPhone
		/// </summary>
        public ExhibitorElement(ExhibitorListItemViewModel exhibitor)
            : base("")
		{
			this.exhibitor = exhibitor;
		}