Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How set a Navigationbar Customization Globally? #9

Open
candidodmv opened this issue Dec 19, 2018 · 1 comment
Open

How set a Navigationbar Customization Globally? #9

candidodmv opened this issue Dec 19, 2018 · 1 comment

Comments

@candidodmv
Copy link

How can i set a customization globally, instead of to do this in every ?

For exemple, i want set gradient background color on navigation on entire app, not just in page A or B on code behind page:

CustomNavigationPage.SetGradientColors(detailPage, Tuple.Create(startColorNavigationBar, endColorNavigationBar));
CustomNavigationPage.SetGradientDirection(detailPage, CustomNavigationPage.GradientDirection.RightToLeft);

@onurhazar
Copy link

Hello, you need to derive your pages from CustomPage and put the related set gradient methods into its constructor before InitializeComponent()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants