This is a migrated thread and some comments may be shown as answers.

Change TabView TabStripOverflowLayout's frame background color

3 Answers 104 Views
TabView
This is a migrated thread and some comments may be shown as answers.
Ahmet
Top achievements
Rank 1
Ahmet asked on 11 Sep 2019, 10:59 AM

Hello,

I am using Tabview with TabStripOverflowLayout (https://docs.telerik.com/devtools/xamarin/nativecontrols/android/tabview/tab-view-overview)

When click More label,Frame opens.But items title color white also frame's background is white so items titles are invisible.I want to change frame's background color.

How can I change it?

Thank you.

3 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 11 Sep 2019, 03:12 PM

Hello Ahmet,

Could you please share which TabView control is used in the project? The Native TabView control for Xamarin.Android or TabView control for Xamarin.FormsI am asking because I have reviewed all forum threads you have opened and all questions are related to our Xamarin.Forms controls. If you are using the TabView for Xamarin.Forms you can customize the Overflow Button through the OverFlowButtonTemplate property. More information about this can be found at the following link: https://docs.telerik.com/devtools/xamarin/controls/tabview/tabview-header-item#customizing-the-overflow-button

I am looking forward to your reply.

Regards,
Didi
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Ahmet
Top achievements
Rank 1
answered on 12 Sep 2019, 11:19 AM

Hello Didi,

Thank you for your post, I am using "TabView control for Xamarin.Forms".I can change OverFlowButtonTemplate but how can ı change frame properties? I didnt find in docs.

My code =

            this.Header.OverflowButtonTemplate = new DataTemplate(() =>
            {
                var grid = new Grid() { Margin = new Thickness(0, 0, 0, 4) };


                var moreLable = new Label { HorizontalTextAlignment = TextAlignment.Center, VerticalTextAlignment = TextAlignment.Center, TextColor = Color.FromHex("#ffffff"), FontSize = 15};

                moreLable.Text = "More +";

                grid.Children.Add(moreLable);

                return grid;
            });

I am not asking customize OverFlowButton.I am asking customize frame that opens when click overflowbutton. 

Thank you.

0
Didi
Telerik team
answered on 13 Sep 2019, 08:46 AM

Hello Ahmet,

Thank you for the provided code.

At this time the frame that is opened when the overflowbutton is clicked could not be customized. With R3 2019 Official release - expected next week, you could set a background color to this frame (overflow popup).

Let me know if I can assist with anything else.

Regards,
Didi
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
TabView
Asked by
Ahmet
Top achievements
Rank 1
Answers by
Didi
Telerik team
Ahmet
Top achievements
Rank 1
Share this question
or