Beispiel #1
0
        public FirstSlideType(int pos) : base()
        {
            var frame = Constants.ScreenFrame;

            frame.Y = pos * Constants.DeviceHeight;
            Frame   = frame;


            contentScroll = new UIScrollView(new CGRect(200, 150, 380, 500))
            {
                Bounces         = false,
                BackgroundColor = UIColor.Clear
            };

            title               = Constants.makeLabel(new CGRect(0, 0, 380, 140), UIColor.White, UITextAlignment.Left, Font.Regular, 35);
            title.Lines         = 0;
            title.LineBreakMode = UILineBreakMode.WordWrap;
            contentScroll.Add(title);

            paragraph               = Constants.makeLabel(new CGRect(0, 160, 380, 20), UIColor.White, UITextAlignment.Left, Font.Light, 18);
            paragraph.Lines         = 0;
            paragraph.LineBreakMode = UILineBreakMode.WordWrap;
            contentScroll.Add(paragraph);

            view = new UIManipulableView();
            view.setFrame(new CGRect(635, 245, 260, 320));

            view.Layer.CornerRadius = 4;


            image                  = new UIImageView(new CGRect(5, 5, 250, 310));
            image.ContentMode      = UIViewContentMode.ScaleAspectFill;
            image.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth;
            image.ClipsToBounds    = true;
            view.Add(image);

            Add(view);
            Add(contentScroll);
        }
        public ThirdSlideType(int pos) : base()
        {
            var frame = Constants.ScreenFrame;

            frame.Y = pos * Constants.DeviceHeight;
            Frame   = frame;


            title               = Constants.makeLabel(new CGRect(112, 58, 800, 140), UIColor.White, UITextAlignment.Center, Font.Regular, 42);
            title.Lines         = 0;
            title.LineBreakMode = UILineBreakMode.WordWrap;
            Add(title);

            view1 = new UIManipulableView();
            view1.setFrame(new CGRect(190, 250, 208, 190));
            view1.Layer.CornerRadius     = 4;
            view1.UserInteractionEnabled = false;

            image1                  = new UIImageView(new CGRect(5, 5, 198, 180));
            image1.ContentMode      = UIViewContentMode.ScaleAspectFill;
            image1.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth;
            image1.ClipsToBounds    = true;
            view1.Add(image1);

            view2 = new UIManipulableView();
            view2.setFrame(new CGRect(468, 250, 208, 190));
            view2.Layer.CornerRadius     = 4;
            view2.UserInteractionEnabled = false;

            image2                  = new UIImageView(new CGRect(5, 5, 198, 180));
            image2.ContentMode      = UIViewContentMode.ScaleAspectFill;
            image2.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth;
            image2.ClipsToBounds    = true;
            view2.Add(image2);


            view3 = new UIManipulableView();
            view3.setFrame(new CGRect(746, 250, 208, 190));
            view3.Layer.CornerRadius     = 4;
            view3.UserInteractionEnabled = false;

            image3                  = new UIImageView(new CGRect(5, 5, 198, 180));
            image3.ContentMode      = UIViewContentMode.ScaleAspectFill;
            image3.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth;
            image3.ClipsToBounds    = true;
            view3.Add(image3);


            name1               = Constants.makeLabel(new CGRect(190, 455, 208, 200), UIColor.White, UITextAlignment.Left, Font.Regular, 14);
            name1.Lines         = 0;
            name1.LineBreakMode = UILineBreakMode.WordWrap;
            Add(name1);

            name2               = Constants.makeLabel(new CGRect(468, 455, 208, 200), UIColor.White, UITextAlignment.Left, Font.Regular, 14);
            name2.Lines         = 0;
            name2.LineBreakMode = UILineBreakMode.WordWrap;
            Add(name2);

            name3               = Constants.makeLabel(new CGRect(746, 455, 208, 200), UIColor.White, UITextAlignment.Left, Font.Regular, 14);
            name3.Lines         = 0;
            name3.LineBreakMode = UILineBreakMode.WordWrap;
            Add(name3);

            Add(view1);
            Add(view2);
            Add(view3);
        }