How do you add an image logo to the Title header? #11884
-
Right now my title header just consists of a text string on my Content Pages but I would like a logo image there. How can it be done? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
You can use
|
Beta Was this translation helpful? Give feedback.
-
That doesn't work:
The only image that is displayed is the one inside my content. The NavigationPage.TitleView trick doesn't show any image. |
Beta Was this translation helpful? Give feedback.
-
Mohammad,
This is what I currently have:
*namespace CEDDashboard;public partial class App : Application{ public
App() { InitializeComponent(); MainPage = new AppShell(); }}*
Thanks!
Daniel Donnelly, Jr.
…On Sat, Dec 17, 2022 at 4:19 PM Mohammad Hosein Rastegarinia < ***@***.***> wrote:
Did you changed
MainPage = new MainPage();
to
MainPage = new NavigatinPage(new MainPage());
in App.xaml.cs file?
—
Reply to this email directly, view it on GitHub
<#11884 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMIF5ZWSYX3LFTGRZ6AL7LWNZDA3ANCNFSM6AAAAAASUVQIFM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I tried wrapping new AppShell() in a new NavigationPage(), the result is a
crash every interaction with my app, without error shown
On Sat, Dec 17, 2022 at 4:21 PM Luna Tuna ***@***.***>
wrote:
… Mohammad,
This is what I currently have:
*namespace CEDDashboard;public partial class App : Application{ public
App() { InitializeComponent(); MainPage = new AppShell(); }}*
Thanks!
Daniel Donnelly, Jr.
On Sat, Dec 17, 2022 at 4:19 PM Mohammad Hosein Rastegarinia <
***@***.***> wrote:
> Did you changed
>
> MainPage = new MainPage();
>
> to
>
> MainPage = new NavigatinPage(new MainPage());
>
> in App.xaml.cs file?
>
> —
> Reply to this email directly, view it on GitHub
> <#11884 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAMIF5ZWSYX3LFTGRZ6AL7LWNZDA3ANCNFSM6AAAAAASUVQIFM>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
You can use
TitleView
for that.Here's a sample for you :