Xamarin Forms control the color/title of the header bar

后端 未结 4 759
孤城傲影
孤城傲影 2021-02-02 00:08

I have the following form created with Xamarin Forms. I have drawn in a red rectangle to highlight the problem area. I need the blue color in the header to be a different colo

4条回答
  •  不知归路
    2021-02-02 00:52

    If you want to use one color for all NavigationPage elements you can do it easier. Add global style to app for a NavigationPage

    
    
        
            
            
                   
              #4a148c
              #FFFFFF
                
              
            
        
    
    

    Now you can do:

            void OnTappedProfile(object sender, System.EventArgs e)
            {
                Navigation.PushAsync(new Profile());
            }
    

    Where Profile is ContentPage

提交回复
热议问题