protected override void OnParentSet()
        {
            base.OnParentSet();

            BindingContext = Parent;

            icon.SetBinding(Image.SourceProperty, "CurrentIcon");

            text.SetBinding(Label.TextProperty, "Text");
            text.SetBinding(Label.TextColorProperty, "CurrentTextColor");
            text.SetBinding(Label.FontSizeProperty, "CurrentFontSize");
            text.SetBinding(Label.FontAttributesProperty, "CurrentFontAttributes");

            badge.SetBinding(BadgeView.BackgroundColorProperty, "CurrentBadgeBackgroundColor");
            badge.SetBinding(BadgeView.TextProperty, "BadgeText");
            badge.SetBinding(BadgeView.TextColorProperty, "BadgeTextColor");
        }
Ejemplo n.º 2
0
        protected override void OnParentSet()
        {
            base.OnParentSet();

            BindingContext = Parent;

            icon.SetBinding(Image.SourceProperty, "CurrentIcon");

            text.SetBinding(Label.TextProperty, "Text");
            text.SetBinding(Label.TextColorProperty, "CurrentTextColor");
            text.SetBinding(Label.FontSizeProperty, "CurrentFontSize");
            text.SetBinding(Label.FontAttributesProperty, "CurrentFontAttributes");

            badge.SetBinding(TabBadgeView.BackgroundColorProperty, "CurrentBadgeBackgroundColor");
            badge.SetBinding(TabBadgeView.BorderColorProperty, "CurrentBadgeBorderColor");
            badge.SetBinding(TabBadgeView.TextProperty, "BadgeText");
            badge.SetBinding(TabBadgeView.TextColorProperty, "BadgeTextColor");

            VisualFeedbackEffect.SetFeedbackColor(this, Color.White);
        }
Ejemplo n.º 3
0
        protected override void OnParentSet()
        {
            base.OnParentSet();

            BindingContext = Parent;

            icon.SetBinding(Image.SourceProperty, "CurrentIcon");

            text.SetBinding(Label.TextProperty, "Text", BindingMode.OneWay, new TextCaseConverter {
                Type = TextCaseType.Upper
            });
            text.SetBinding(Label.TextColorProperty, "CurrentTextColor");
            text.SetBinding(Label.FontSizeProperty, "CurrentFontSize");
            text.SetBinding(Label.FontAttributesProperty, "CurrentFontAttributes");
            text.SetBinding(Label.FontFamilyProperty, "CurrentFontFamily");

            badge.SetBinding(TabBadgeView.BackgroundColorProperty, "CurrentBadgeBackgroundColor");
            badge.SetBinding(TabBadgeView.TextProperty, "BadgeText");
            badge.SetBinding(TabBadgeView.TextColorProperty, "BadgeTextColor");

            VisualFeedbackEffect.SetFeedbackColor(this, Color.White);
        }