void SetCustomerAndContact(MvxFluentBindingDescriptionSet <TicketView, TicketViewModel> Set, AutoLayoutContentView ContactBorder) { var Customer = ContactBorder.AddContainer("Customer", UIColor.White); var SiteContact = ContactBorder.AddContainer("SiteContact", UIColor.White); ContactBorder.AddConstraint("V:|-[Customer]-25-[SiteContact]|"); ContactBorder.AddConstraint("H:|-[Customer]-(>=8)-|"); ContactBorder.AddConstraint("H:|-[SiteContact]-(>=8)-|"); SetCustomer(Set, Customer); SetContact(Set, SiteContact); }
void SetCustomerAndContact(AutoLayoutContentView ContactBorder) { var Customer = ContactBorder.AddContainer("Customer", UIColor.White); var Contact = ContactBorder.AddContainer("Contact", UIColor.White); ContactBorder.AddConstraint("V:|-[Customer]-25-[Contact]|"); ContactBorder.AddConstraint("H:|-[Customer]-(>=8)-|"); ContactBorder.AddConstraint("H:|-[Contact]-(>=8)-|"); SetCustomer(Customer); SetContact(Contact); }
static void SetPremisesTabs(MvxFluentBindingDescriptionSet<TicketView, TicketViewModel> Set, AutoLayoutContentView PremisesBorder) { var PremisesTabBox = PremisesBorder.AddContainer ("PremisesTabBox", UIColor.White); var ConnectionPillarTabBox = PremisesBorder.AddContainer ("ConnectionPillarTabBox", UIColor.LightGray); var ExchangeTabBox = PremisesBorder.AddContainer ("ExchangeTabBox", UIColor.LightGray); var PremisesLabel = PremisesTabBox.AddLabelCenteredXY ("PremisesTab", "PREMISES", UIColor.Black, 15); ConnectionPillarTabBox.AddLabelCenteredXY ("ConnectionPillarTab", "P74", UIColor.Blue, 15); ExchangeTabBox.AddLabelCenteredXY ("ExchangeTab", "PARR", UIColor.Blue, 15); Set.Bind (PremisesTabBox).For ("Tap").To (vm => vm.TestCommand).WithConversion ("CommandParameter", "alex"); // https://github.com/MvvmCross/MvvmCross/wiki/Value-Converters Set.Bind (PremisesTabBox).For (field => field.BackgroundColor).To (vm => vm.PremisesTabBackgroundColor).WithConversion ("RGBA"); Set.Bind (PremisesLabel).For (field => field.TextColor).To (vm => vm.PremisesTabTextColor).WithConversion ("RGBA"); SetPremises (Set, PremisesBorder); }
void SetProfile(MvxFluentBindingDescriptionSet<SimpleExampleView, SimpleExampleViewModel> Set, AutoLayoutContentView ProfileBorder) { var Details = ProfileBorder.AddContainer ("Details", UIColor.White); var Photo = ProfileBorder.AddContainer ("Photo", UIColor.White); ProfileBorder.AddConstraint ("V:|-[Details]-|"); ProfileBorder.AddConstraint ("V:|-[Photo]-(>=8)-|"); ProfileBorder.AddConstraint ("H:|-[Details]-(>=8)-[Photo]-|"); Photo.AddImageCenteredX ("Picture", "Alex.jpg"); Photo.AddConstraint ("H:|[Picture(48)]|"); Photo.AddConstraint ("V:|[Picture(64)]|"); Details.AddLabelLeft ("Name", "Alex Eadie", UIColor.Black, 12); Details.AddLabelLeft ("Phone", "0456 234 154", UIColor.Blue, 12); Details.AddLabelLeft ("Email", "*****@*****.**", UIColor.Blue, 12); Details.AddConstraint ("V:|[Name]-[Phone]-[Email]-(>=8)-|"); }
void SetProfile(MvxFluentBindingDescriptionSet <SimpleExampleView, SimpleExampleViewModel> Set, AutoLayoutContentView ProfileBorder) { var Details = ProfileBorder.AddContainer("Details", UIColor.White); var Photo = ProfileBorder.AddContainer("Photo", UIColor.White); ProfileBorder.AddConstraint("V:|-[Details]-|"); ProfileBorder.AddConstraint("V:|-[Photo]-(>=8)-|"); ProfileBorder.AddConstraint("H:|-[Details]-(>=8)-[Photo]-|"); Photo.AddImageCenteredX("Picture", "Alex.jpg"); Photo.AddConstraint("H:|[Picture(48)]|"); Photo.AddConstraint("V:|[Picture(64)]|"); Details.AddLabelLeft("Name", "Alex Eadie", UIColor.Black, 12); Details.AddLabelLeft("Phone", "0456 234 154", UIColor.Blue, 12); Details.AddLabelLeft("Email", "*****@*****.**", UIColor.Blue, 12); Details.AddConstraint("V:|[Name]-[Phone]-[Email]-(>=8)-|"); }
static void SetPremisesTabs(MvxFluentBindingDescriptionSet <TicketView, TicketViewModel> Set, AutoLayoutContentView PremisesBorder) { var PremisesTabBox = PremisesBorder.AddContainer("PremisesTabBox", UIColor.White); var ConnectionPillarTabBox = PremisesBorder.AddContainer("ConnectionPillarTabBox", UIColor.LightGray); var ExchangeTabBox = PremisesBorder.AddContainer("ExchangeTabBox", UIColor.LightGray); var PremisesLabel = PremisesTabBox.AddLabelCenteredXY("PremisesTab", "PREMISES", UIColor.Black, 15); ConnectionPillarTabBox.AddLabelCenteredXY("ConnectionPillarTab", "P74", UIColor.Blue, 15); ExchangeTabBox.AddLabelCenteredXY("ExchangeTab", "PARR", UIColor.Blue, 15); Set.Bind(PremisesTabBox).For("Tap").To(vm => vm.TestCommand).WithConversion("CommandParameter", "alex"); // https://github.com/MvvmCross/MvvmCross/wiki/Value-Converters Set.Bind(PremisesTabBox).For(field => field.BackgroundColor).To(vm => vm.PremisesTabBackgroundColor).WithConversion("RGBA"); Set.Bind(PremisesLabel).For(field => field.TextColor).To(vm => vm.PremisesTabTextColor).WithConversion("RGBA"); SetPremises(Set, PremisesBorder); }
static void SetPremisesDirections(MvxFluentBindingDescriptionSet<TicketView, TicketViewModel> Set, AutoLayoutContentView PremisesBorder) { var PremisesDirectionsBox = PremisesBorder.AddContainer ("PremisesDirectionsBox", UIColor.White); PremisesDirectionsBox.AddLabelCenteredX ("PremisesDirections", "Directions", UIColor.Blue, 12); PremisesDirectionsBox.AddImageCenteredX ("PremisesDirectionsImage", "ic_directions.png"); PremisesDirectionsBox.AddConstraint ("V:|[PremisesDirectionsImage(36)]-3-[PremisesDirections]|"); PremisesDirectionsBox.AddConstraint ("H:|-(>=1)-[PremisesDirectionsImage(36)]-(>=1)-|"); PremisesDirectionsBox.AddConstraint ("H:|-(>=1)-[PremisesDirections]-(>=1)-|"); }
static void SetPremisesDirections(MvxFluentBindingDescriptionSet <TicketView, TicketViewModel> Set, AutoLayoutContentView PremisesBorder) { var PremisesDirectionsBox = PremisesBorder.AddContainer("PremisesDirectionsBox", UIColor.White); PremisesDirectionsBox.AddLabelCenteredX("PremisesDirections", "Directions", UIColor.Blue, 12); PremisesDirectionsBox.AddImageCenteredX("PremisesDirectionsImage", "ic_directions.png"); PremisesDirectionsBox.AddConstraint("V:|[PremisesDirectionsImage(36)]-3-[PremisesDirections]|"); PremisesDirectionsBox.AddConstraint("H:|-(>=1)-[PremisesDirectionsImage(36)]-(>=1)-|"); PremisesDirectionsBox.AddConstraint("H:|-(>=1)-[PremisesDirections]-(>=1)-|"); }
void SetCustomerAndContact(MvxFluentBindingDescriptionSet<TicketView, TicketViewModel> Set, AutoLayoutContentView ContactBorder) { var Customer = ContactBorder.AddContainer ("Customer", UIColor.White); var SiteContact = ContactBorder.AddContainer ("SiteContact", UIColor.White); ContactBorder.AddConstraint ("V:|-[Customer]-25-[SiteContact]|"); ContactBorder.AddConstraint ("H:|-[Customer]-(>=8)-|"); ContactBorder.AddConstraint ("H:|-[SiteContact]-(>=8)-|"); SetCustomer (Set, Customer); SetContact (Set, SiteContact); }
void SetCustomerAndContact(AutoLayoutContentView ContactBorder) { var Customer = ContactBorder.AddContainer ("Customer", UIColor.White); var Contact = ContactBorder.AddContainer ("Contact", UIColor.White); ContactBorder.AddConstraint ("V:|-[Customer]-25-[Contact]|"); ContactBorder.AddConstraint ("H:|-[Customer]-(>=8)-|"); ContactBorder.AddConstraint ("H:|-[Contact]-(>=8)-|"); SetCustomer (Customer); SetContact (Contact); }