public OrderOptions(Context context, IAttributeSet attrs) : base(Resource.Layout.SubView_OrderOptions, context, attrs) { this.DelayBind(() => { _viewPickup = Content.FindViewById <AddressTextBox>(Resource.Id.viewPickup); _viewDestination = Content.FindViewById <AddressTextBox>(Resource.Id.viewDestination); _viewVehicleType = Content.FindViewById <VehicleTypeAndEstimateControl>(Resource.Id.viewEstimate); _viewDestination.IsDestination = true; _viewPickup.IsDestination = false; _viewPickup.SetInvisibleButton(BigInvisibleButton); _viewDestination.SetInvisibleButton(BigInvisibleButton); _etaContainer = (LinearLayout)Content.FindViewById(Resource.Id.EtaContainer); _etaBadge = (LinearLayout)Content.FindViewById(Resource.Id.EtaBadge); _etaLabelInVehicleSelection = (AutoResizeTextView)Content.FindViewById(Resource.Id.EtaLabelInVehicleSelection); _etaBadgeImage = new VehicleTypeControl(base.Context, (VehicleType)null); _etaBadge.AddView(_etaBadgeImage); _etaContainer.SetBackgroundColorWithRoundedCorners(0, 0, 3, 3, Resources.GetColor(Resource.Color.company_color)); _viewVehicleType.Visibility = ViewStates.Gone; InitializeBinding(); }); }