예제 #1
0
        public UIResultView(object parentView, RectangleF frame, DoneClickDelegate onClick)
        {
            View = PlatformView.Create( );
            View.AddAsSubview(parentView);
            View.UserInteractionEnabled = false;

            StatusLabel = PlatformLabel.Create( );
            //StatusBackground = PlatformView.Create( );

            ResultSymbol = PlatformLabel.Create( );
            ResultLabel  = PlatformLabel.Create( );
            //ResultBackground = PlatformView.Create( );


            ResultCircle = PlatformCircleView.Create( );
            ResultCircle.AddAsSubview(parentView);


            // setup our UI hierarchy
            //StatusBackground.AddAsSubview( parentView );
            //StatusBackground.UserInteractionEnabled = false;
            //StatusBackground.BorderWidth = .5f;

            StatusLabel.AddAsSubview(parentView);
            StatusLabel.UserInteractionEnabled = false;


            //ResultBackground.AddAsSubview( parentView );
            //ResultBackground.UserInteractionEnabled = false;
            //ResultBackground.BorderWidth = .5f;

            ResultSymbol.AddAsSubview(parentView);
            ResultSymbol.UserInteractionEnabled = false;

            ResultLabel.AddAsSubview(parentView);
            ResultLabel.UserInteractionEnabled = false;

            DoneButton = PlatformButton.Create( );
            DoneButton.AddAsSubview(parentView);
            DoneButton.ClickEvent = ( PlatformButton button ) =>
            {
                if (onClick != null)
                {
                    onClick( );
                }
            };


            // default the view size and opacity
            SetOpacity(0.00f);

            SetBounds(frame);

            // give it a default style
            SetStyle( );
        }
예제 #2
0
        public UIResultView( object parentView, RectangleF frame, DoneClickDelegate onClick )
        {
            View = PlatformView.Create( );
            View.AddAsSubview( parentView );
            View.UserInteractionEnabled = false;

            StatusLabel = PlatformLabel.Create( );
            //StatusBackground = PlatformView.Create( );

            ResultSymbol = PlatformLabel.Create( );
            ResultLabel = PlatformLabel.Create( );
            //ResultBackground = PlatformView.Create( );


            ResultCircle = PlatformCircleView.Create( );
            ResultCircle.AddAsSubview( parentView );


            // setup our UI hierarchy
            //StatusBackground.AddAsSubview( parentView );
            //StatusBackground.UserInteractionEnabled = false;
            //StatusBackground.BorderWidth = .5f;

            StatusLabel.AddAsSubview( parentView );
            StatusLabel.UserInteractionEnabled = false;


            //ResultBackground.AddAsSubview( parentView );
            //ResultBackground.UserInteractionEnabled = false;
            //ResultBackground.BorderWidth = .5f;

            ResultSymbol.AddAsSubview( parentView );
            ResultSymbol.UserInteractionEnabled = false;

            ResultLabel.AddAsSubview( parentView );
            ResultLabel.UserInteractionEnabled = false;

            DoneButton = PlatformButton.Create( );
            DoneButton.AddAsSubview( parentView );
            DoneButton.ClickEvent = ( PlatformButton button ) =>
            {
                if( onClick != null )
                {
                    onClick( );
                }
            };


            // default the view size and opacity
            SetOpacity( 0.00f );

            SetBounds( frame );

            // give it a default style
            SetStyle( );
        }
예제 #3
0
        public UINoteDiscGuideView(object parentView, RectangleF frame, DoneClickDelegate onClick)
        {
            View = PlatformView.Create( );
            View.AddAsSubview(parentView);
            View.BackgroundColor        = ControlStylingConfig.BackgroundColor;
            View.UserInteractionEnabled = false;

            // Guide Desc Header
            GuideDescHeader = PlatformLabel.Create( );
            GuideDescHeader.AddAsSubview(parentView);
            GuideDescHeader.TextAlignment = TextAlignment.Center;
            GuideDescHeader.SetFont(ControlStylingConfig.Font_Bold, ControlStylingConfig.Large_FontSize);
            GuideDescHeader.TextColor = ControlStylingConfig.TextField_ActiveTextColor;
            GuideDescHeader.Text      = Strings.MessagesStrings.DiscussionGuide_Header;

            // Guide Desc
            GuideDescLayer = PlatformView.Create( );
            GuideDescLayer.AddAsSubview(parentView);
            GuideDescLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
            GuideDescLayer.BorderColor     = ControlStylingConfig.BG_Layer_BorderColor;
            GuideDescLayer.BorderWidth     = ControlStylingConfig.BG_Layer_BorderWidth;

            GuideDesc = PlatformLabel.Create( );
            GuideDesc.AddAsSubview(parentView);
            GuideDesc.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Medium_FontSize);
            GuideDesc.TextColor     = ControlStylingConfig.TextField_ActiveTextColor;
            GuideDesc.TextAlignment = TextAlignment.Center;
            GuideDesc.Text          = Strings.MessagesStrings.DiscussionGuide_Desc;

            // View Guide Button
            ViewGuideButton = PlatformButton.Create( );
            ViewGuideButton.CornerRadius           = 4;
            ViewGuideButton.BackgroundColor        = ControlStylingConfig.Button_BGColor;
            ViewGuideButton.TextColor              = ControlStylingConfig.Button_TextColor;
            ViewGuideButton.UserInteractionEnabled = true;
            ViewGuideButton.AddAsSubview(parentView);
            ViewGuideButton.ClickEvent = ( PlatformButton button ) =>
            {
                if (onClick != null)
                {
                    onClick( );
                }
            };
            ViewGuideButton.Text = "View Guide";

            SetBounds(frame);
        }