get rid of default blue in Xamarin forms

cxc

I have a Xamarin forms project, I don't know how to get rid of the default blue in the background. I changed the primary color in the resource dictionary in app.xaml. it works well on the individual pages, but they're still some blue in the background (see screen-shots attached) that I need to change too. thanks heaps in advance

    <Application.Resources>
    <ResourceDictionary>
        <Color x:Key="Primary">BurlyWood</Color>
        <Style TargetType="Button">
            <Setter Property="BorderRadius" Value="15"/>
            <Setter Property="BorderWidth" Value="2"/>
            <Setter Property="BorderColor" Value="{StaticResource Primary}"/>
            <Setter Property="TextColor" Value="{StaticResource Primary}"></Setter>
            <Setter Property="VisualStateManager.VisualStateGroups">
                <VisualStateGroupList>
                    <VisualStateGroup x:Name="CommonStates">
                        <VisualState x:Name="Normal">
                            <VisualState.Setters>
                                <Setter Property="BackgroundColor" Value="White" />
                            </VisualState.Setters>
                        </VisualState>
                        <VisualState x:Name="Disabled">
                            <VisualState.Setters>
                                <Setter Property="BackgroundColor" Value="#332196F3" />
                            </VisualState.Setters>
                        </VisualState>
                    </VisualStateGroup>
                </VisualStateGroupList>
            </Setter>
        </Style>
    </ResourceDictionary>        
</Application.Resources>

enter image description here

enter image description here

Kaushik

There are two bar. Navigation bar and Status bar. For the Navigation Bar add this code inside of ResourceDictionary tag

<Style TargetType="NavigationPage">
      <Setter Property="BarBackgroundColor" Value="White" />
      <Setter Property="BarTextColor" Value="Black" />
</Style>

Or, Add this two line inside the constructor of your MainPage.xaml.cs file

BarBackgroundColor = Color.White;
BarTextColor = Color.Black;

And for the StatusBar follow below link instruction:

Android: Click Here

IoS: Click Here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to get rid of the default blue color on hover over a button?

Xamarin.Forms how to change default blue color on ios

how to change default color when switch is "on"(blue to green) in forms xamarin. In ios default it is GReen but in android it is blue

how to get rid of MasterDetailPage empty space Xamarin Forms

xamarin forms iphone app launches with default blue screen and then jumps to background. No compiler or launch errors

How to get rid of the light blue gap

How to get rid of blue background on div?

How do I get rid of these blue squares

Xamarin Forms TableView Default Padding

Xamarin Forms Default value for Picker

How to get rid of label generated with django forms

How to get rid of the blue highlight when opening a form?

How to get rid of blue borders around transparent objects in XCode

How to get rid of blue highlight box on drag for canvas in fabric

What is this blue rectangle thing for? How do i get rid of it?

Trying to get rid of annoying little blue links below my images

Thymeleaf + Spring: get rid of the default element id

Facebook bot get rid of default message

Xamarin.Forms default control templates

Xamarin Forms checkbox - change default padding

Xamarin Forms: Default Image if Url not found

Xamarin.Forms default DatePicker value?

xamarin forms mvvm Missing default constructor for

Unable to set default value for Picker in Xamarin forms

Set default tab on Xamarin Forms Shell

Change default font of the application Xamarin Forms

Xamarin forms get call duration

Get text of picker in xamarin forms

Get Contact Image Xamarin Forms