Skip to content

How to change NavigationBar color in landscape mode [Avalonia.Android]? #17001

Closed Answered by J0nathan550
J0nathan550 asked this question in Q&A
Discussion options

You must be logged in to vote

Figure out, here is what I did

MainView.xaml:

<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:vm="using:SoundScapes.ViewModels"
             xmlns:views="using:SoundScapes.Views"
			 Loaded="UserControl_Loaded"
			 mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="700"
             x:Class="SoundScapes.Views.MainView">
             ....

MainView.xaml.cs:

    private void UserControl_Loaded(object? sender, RoutedEventArgs e)
    {
        if (O…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@J0nathan550
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by J0nathan550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants