void SetCustomer(AutoLayoutContentView Customer)
        {
            Customer.AddLabel("CustomerLabel", "CUSTOMER", UIColor.LightGray, LabelTextSize);
            var name = Customer.AddLabel("CustomerName", "Alex Eadie", UIColor.Black, DataTextSize);

            Customer.AddConstraint("V:|-18-[CustomerLabel]-7-[CustomerName]|");
            Customer.AddConstraint("H:|-19-[CustomerLabel]-(>=8)-|");
            Customer.AddConstraint("H:|-19-[CustomerName]-(>=8)-|");
        }
 void SetContact(AutoLayoutContentView Contact)
 {
     Contact.AddLabel ("ContactLabel", "CONTACT", UIColor.LightGray, LabelTextSize);
     var name = Contact.AddLabel ("ContactName", "Natasha Eadie", UIColor.Black, DataTextSize);
     var phone = Contact.AddLabel ("ContactPhone", "0412 123 456", UIColor.Black, DataTextSize);
     Contact.AddConstraint ("V:|[ContactLabel]-3-[ContactName]-3-[ContactPhone]-18-|");
     Contact.AddConstraint ("H:|-19-[ContactLabel]-(>=8)-|");
     Contact.AddConstraint ("H:|-19-[ContactName]-(>=8)-|");
     Contact.AddConstraint ("H:|-19-[ContactPhone]-(>=8)-|");
 }
        void SetComponents(MvxFluentBindingDescriptionSet <SimpleExampleView, SimpleExampleViewModel> Set, AutoLayoutContentView ComponentsBorder)
        {
            var button1 = ComponentsBorder.AddButton("Button1", "Scroll Example", UIColor.Green, UIColor.White, 12);

            ComponentsBorder.AddActivityIndicator("ActivityIndicator", UIColor.Blue);
            ComponentsBorder.AddPageControl("PageControl", UIColor.Blue);
            ComponentsBorder.AddProgressView("ProgressView", UIColor.Blue);
            ComponentsBorder.AddSlider("Slider", UIColor.Blue);
            ComponentsBorder.AddSwitch("Switch", UIColor.Blue);
            ComponentsBorder.AddSegmentedControl("SegmentedControl", UIColor.Blue);
            // We can add in other UIViews that don't have their own bespoke Add methods.
            var button2 = (UIButton)ComponentsBorder.AddView("Button2", UIButton.FromType(UIButtonType.RoundedRect));

            button2.SetTitle("List Example", UIControlState.Normal);
            ComponentsBorder.AddConstraint("V:|-[Button1(20)]-[ActivityIndicator(60)]-[PageControl(50)]-[ProgressView(50)]-[Slider]-[Switch]-[SegmentedControl]-|");
            ComponentsBorder.AddConstraint("V:|-[Button2(20)]-(>=8)-|");
            ComponentsBorder.AddConstraint("H:|-[Button1(<=100)]-[Button2(<=100)]-(>=8)-|");

            // TODO: these controls still need some beautification and MVX binding.

            ComponentsBorder.AddConstraint("H:|-[ActivityIndicator(60)]-(>=8)-|");
            ComponentsBorder.AddConstraint("H:|-[PageControl(50)]-(>=8)-|");
            ComponentsBorder.AddConstraint("H:|-[ProgressView(50)]-(>=8)-|");
            ComponentsBorder.AddConstraint("H:|-[Slider(100)]-(>=8)-|");
            ComponentsBorder.AddConstraint("H:|-[Switch]-(>=8)-|");
            ComponentsBorder.AddConstraint("H:|-[SegmentedControl]-(>=8)-|");


            Set.Bind(button1).For("Tap").To(vm => vm.GotoScrollView).WithConversion("CommandParameter", "scrollView");
            Set.Bind(button2).For("Tap").To(vm => vm.GotoListView).WithConversion("CommandParameter", "listView");
        }
        void SetComponents(MvxFluentBindingDescriptionSet<SimpleExampleView, SimpleExampleViewModel> Set, AutoLayoutContentView ComponentsBorder)
        {
            var button1 = ComponentsBorder.AddButton ("Button1", "Scroll Example", UIColor.Green, UIColor.White, 12);
            ComponentsBorder.AddActivityIndicator ("ActivityIndicator", UIColor.Blue);
            ComponentsBorder.AddPageControl ("PageControl", UIColor.Blue);
            ComponentsBorder.AddProgressView ("ProgressView", UIColor.Blue);
            ComponentsBorder.AddSlider ("Slider", UIColor.Blue);
            ComponentsBorder.AddSwitch ("Switch", UIColor.Blue);
            ComponentsBorder.AddSegmentedControl ("SegmentedControl", UIColor.Blue);
            // We can add in other UIViews that don't have their own bespoke Add methods.
            var button2 = (UIButton)ComponentsBorder.AddView ("Button2", UIButton.FromType (UIButtonType.RoundedRect));
            button2.SetTitle ("List Example", UIControlState.Normal);
            ComponentsBorder.AddConstraint ("V:|-[Button1(20)]-[ActivityIndicator(60)]-[PageControl(50)]-[ProgressView(50)]-[Slider]-[Switch]-[SegmentedControl]-|");
            ComponentsBorder.AddConstraint ("V:|-[Button2(20)]-(>=8)-|");
            ComponentsBorder.AddConstraint ("H:|-[Button1(<=100)]-[Button2(<=100)]-(>=8)-|");

            // TODO: these controls still need some beautification and MVX binding.

            ComponentsBorder.AddConstraint ("H:|-[ActivityIndicator(60)]-(>=8)-|");
            ComponentsBorder.AddConstraint ("H:|-[PageControl(50)]-(>=8)-|");
            ComponentsBorder.AddConstraint ("H:|-[ProgressView(50)]-(>=8)-|");
            ComponentsBorder.AddConstraint ("H:|-[Slider(100)]-(>=8)-|");
            ComponentsBorder.AddConstraint ("H:|-[Switch]-(>=8)-|");
            ComponentsBorder.AddConstraint ("H:|-[SegmentedControl]-(>=8)-|");

            Set.Bind (button1).For ("Tap").To (vm => vm.GotoScrollView).WithConversion ("CommandParameter", "scrollView");
            Set.Bind (button2).For ("Tap").To (vm => vm.GotoListView).WithConversion ("CommandParameter", "listView");
        }
Esempio n. 5
0
        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 SetContact(AutoLayoutContentView Contact)
        {
            Contact.AddLabel("ContactLabel", "CONTACT", UIColor.LightGray, LabelTextSize);
            var name  = Contact.AddLabel("ContactName", "Natasha Eadie", UIColor.Black, DataTextSize);
            var phone = Contact.AddLabel("ContactPhone", "0412 123 456", UIColor.Black, DataTextSize);

            Contact.AddConstraint("V:|[ContactLabel]-3-[ContactName]-3-[ContactPhone]-18-|");
            Contact.AddConstraint("H:|-19-[ContactLabel]-(>=8)-|");
            Contact.AddConstraint("H:|-19-[ContactName]-(>=8)-|");
            Contact.AddConstraint("H:|-19-[ContactPhone]-(>=8)-|");
        }
        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);
        }
Esempio n. 8
0
        void SetCustomer(MvxFluentBindingDescriptionSet <TicketView, TicketViewModel> Set, AutoLayoutContentView Customer)
        {
            Customer.AddLabel("CustomerLabel", "CUSTOMER", UIColor.LightGray /*TelstraGreyL6*/, TowLabelTextSize);
            var name    = Customer.AddLabel("CustomerName", "Alex Eadie", UIColor.Black, TowDataTextSize);
            var telstra = Customer.AddImage("Customer_telstra_img", "ic_telstra_logo.png");

            Customer.AddConstraint("V:|-18-[CustomerLabel]-7-[CustomerName]|");
            Customer.AddConstraint("V:|-20-[Customer_telstra_img(28)]-(>=8)-|");
            Customer.AddConstraint("H:|-19-[CustomerLabel]-(>=8)-|");
            Customer.AddConstraint("H:|-19-[CustomerName]-(>=8)-|");
            Customer.AddConstraint("H:|-(>=8)-[Customer_telstra_img(28)]-27-|");
            Set.Bind(name).To(vm => vm.Hello);
            Set.Bind(telstra).For("Visibility").To(vm => vm.Telstra).WithConversion("Visibility");
        }
Esempio n. 9
0
        void SetContact(MvxFluentBindingDescriptionSet <TicketView, TicketViewModel> Set, AutoLayoutContentView SiteContact)
        {
            SiteContact.AddLabel("SiteContactLabel", "SITE CONTACT", UIColor.LightGray /*TelstraGreyL6*/, TowLabelTextSize);
            var name  = SiteContact.AddLabel("SiteContactName", "Natasha Eadie", UIColor.Black, TowDataTextSize);
            var phone = SiteContact.AddLabel("SiteContactPhone", "0412 123 456", UIColor.Black, TowDataTextSize);

            SiteContact.AddImage("SitePhoneImage", "ic_phone.png");
            SiteContact.AddConstraint("V:|[SiteContactLabel]-3-[SiteContactName]-3-[SiteContactPhone]-18-|");
            SiteContact.AddConstraint("V:|-20-[SitePhoneImage(23)]-(>=8)-|");
            SiteContact.AddConstraint("H:|-19-[SiteContactLabel]-(>=8)-|");
            SiteContact.AddConstraint("H:|-19-[SiteContactName]-(>=10)-[SitePhoneImage(23)]-27-|");
            SiteContact.AddConstraint("H:|-19-[SiteContactPhone]-(>=8)-|");
            Set.Bind(name).To(vm => vm.Hello);
            Set.Bind(phone).To(vm => vm.Hello);
        }
        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 SetPremises(MvxFluentBindingDescriptionSet<TicketView, TicketViewModel> Set, AutoLayoutContentView PremisesBorder)
 {
     var address = PremisesBorder.AddLabel ("PremisesAddress", "UNIT 103, 402 DRAYTON-WELLCAMP RD PARRAMATTA", UIColor.Black, 15);
     Set.Bind (address).To (vm => vm.Hello);
     SetPremisesDirections (Set, PremisesBorder);
     PremisesBorder.AddConstraint ("V:|[PremisesTabBox(55)]-20-[PremisesAddress(60)]-18-|");
     PremisesBorder.AddConstraint ("V:|[ExchangeTabBox(55)]-20-[PremisesAddress(60)]-18-|");
     PremisesBorder.AddConstraint ("V:|[ConnectionPillarTabBox(55)]-20-[PremisesAddress(60)]-18-|");
     PremisesBorder.AddConstraint ("V:|[PremisesTabBox(55)]-28-[PremisesDirectionsBox]-(>=8)-|");
     PremisesBorder.AddConstraint ("H:|[PremisesTabBox]-2-[ConnectionPillarTabBox(==PremisesTabBox)]-2-[ExchangeTabBox(==PremisesTabBox)]|");
     PremisesBorder.AddConstraint ("H:|-19-[PremisesAddress(<=200)]-(>=6)-[PremisesDirectionsBox(66)]-10-|");
 }
Esempio n. 12
0
        static void SetPremises(MvxFluentBindingDescriptionSet <TicketView, TicketViewModel> Set, AutoLayoutContentView PremisesBorder)
        {
            var address = PremisesBorder.AddLabel("PremisesAddress", "UNIT 103, 402 DRAYTON-WELLCAMP RD PARRAMATTA", UIColor.Black, 15);

            Set.Bind(address).To(vm => vm.Hello);
            SetPremisesDirections(Set, PremisesBorder);
            PremisesBorder.AddConstraint("V:|[PremisesTabBox(55)]-20-[PremisesAddress(60)]-18-|");
            PremisesBorder.AddConstraint("V:|[ExchangeTabBox(55)]-20-[PremisesAddress(60)]-18-|");
            PremisesBorder.AddConstraint("V:|[ConnectionPillarTabBox(55)]-20-[PremisesAddress(60)]-18-|");
            PremisesBorder.AddConstraint("V:|[PremisesTabBox(55)]-28-[PremisesDirectionsBox]-(>=8)-|");
            PremisesBorder.AddConstraint("H:|[PremisesTabBox]-2-[ConnectionPillarTabBox(==PremisesTabBox)]-2-[ExchangeTabBox(==PremisesTabBox)]|");
            PremisesBorder.AddConstraint("H:|-19-[PremisesAddress(<=200)]-(>=6)-[PremisesDirectionsBox(66)]-10-|");
        }
 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 SetCustomer(MvxFluentBindingDescriptionSet<TicketView, TicketViewModel> Set, AutoLayoutContentView Customer)
 {
     Customer.AddLabel ("CustomerLabel", "CUSTOMER", UIColor.LightGray/*TelstraGreyL6*/, TowLabelTextSize);
     var name = Customer.AddLabel ("CustomerName", "Alex Eadie", UIColor.Black, TowDataTextSize);
     var telstra = Customer.AddImage ("Customer_telstra_img", "ic_telstra_logo.png");
     Customer.AddConstraint ("V:|-18-[CustomerLabel]-7-[CustomerName]|");
     Customer.AddConstraint ("V:|-20-[Customer_telstra_img(28)]-(>=8)-|");
     Customer.AddConstraint ("H:|-19-[CustomerLabel]-(>=8)-|");
     Customer.AddConstraint ("H:|-19-[CustomerName]-(>=8)-|");
     Customer.AddConstraint ("H:|-(>=8)-[Customer_telstra_img(28)]-27-|");
     Set.Bind (name).To (vm => vm.Hello);
     Set.Bind (telstra).For ("Visibility").To (vm => vm.Telstra).WithConversion ("Visibility");
 }
 void SetContact(MvxFluentBindingDescriptionSet<TicketView, TicketViewModel> Set, AutoLayoutContentView SiteContact)
 {
     SiteContact.AddLabel ("SiteContactLabel", "SITE CONTACT", UIColor.LightGray/*TelstraGreyL6*/, TowLabelTextSize);
     var name = SiteContact.AddLabel ("SiteContactName", "Natasha Eadie", UIColor.Black, TowDataTextSize);
     var phone = SiteContact.AddLabel ("SiteContactPhone", "0412 123 456", UIColor.Black, TowDataTextSize);
     SiteContact.AddImage ("SitePhoneImage", "ic_phone.png");
     SiteContact.AddConstraint ("V:|[SiteContactLabel]-3-[SiteContactName]-3-[SiteContactPhone]-18-|");
     SiteContact.AddConstraint ("V:|-20-[SitePhoneImage(23)]-(>=8)-|");
     SiteContact.AddConstraint ("H:|-19-[SiteContactLabel]-(>=8)-|");
     SiteContact.AddConstraint ("H:|-19-[SiteContactName]-(>=10)-[SitePhoneImage(23)]-27-|");
     SiteContact.AddConstraint ("H:|-19-[SiteContactPhone]-(>=8)-|");
     Set.Bind (name).To (vm => vm.Hello);
     Set.Bind (phone).To (vm => vm.Hello);
 }
 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);
 }
 void SetCustomer(AutoLayoutContentView Customer)
 {
     Customer.AddLabel ("CustomerLabel", "CUSTOMER", UIColor.LightGray, LabelTextSize);
     var name = Customer.AddLabel ("CustomerName", "Alex Eadie", UIColor.Black, DataTextSize);
     Customer.AddConstraint ("V:|-18-[CustomerLabel]-7-[CustomerName]|");
     Customer.AddConstraint ("H:|-19-[CustomerLabel]-(>=8)-|");
     Customer.AddConstraint ("H:|-19-[CustomerName]-(>=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)-|");
 }