question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Customize "Avalonia Application" title in MacOS

See original GitHub issue

I’ve noticed that when running my project after dotnet publish on MacOS (Catalina), the title “Avalonia Application” appears in the upper bar

titlebar

Also there is an “About” submenu that opens this dialog:

about

How can I change this and maybe replace with custom graphics?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kekekekscommented, Oct 21, 2022

@jeffdoolittle App class can have it’s own DataContext You are supposed to initialize it in OnFrameworkInitializationCompleted

1reaction
kekekekscommented, Feb 9, 2020
  1. Set Name property on the Application in your App.xaml
  2. Add a customized native app menu to your App.xaml:
  <NativeMenu.Menu>
    <NativeMenu>
      <NativeMenuItem Header="About My App" Command="{Binding AboutCommand}" />
    </NativeMenu>
  </NativeMenu.Menu>

it will replace the default one.

We probably need that in our default app template.

Read more comments on GitHub >

github_iconTop Results From Across the Web

macOS Distribution
macOS applications are typically distributed in a .app application bundle. ... MyApp.app/Contents/MacOS/ , and the name should match CFBundleExecutable .
Read more >
Avalonia Custom TitleBar Template
This is based on the Aavalonia MVVM Template, but allows for easy customization of the TitleBar, as well as Content on the whole...
Read more >
How to define a separate set of styles for each platform/OS ...
Initialize using StyleInclude class (See App.xaml from application template). For platform detection you can use AvaloniaLocator.Current.
Read more >
Build amazing cross-platform UI for .NET with Avalonia UI!
Avalonia UI enables developers to build pixel-perfect, high-fidelity cross-platform desktop, web and mobile apps with .NET and C#.
Read more >
Highest scored 'avalonia' questions
I'm working with OpenFileDialog, SaveFileDialog and OpenFolderDialog in an Avalonia application. One requirement is to set the title to a certain string.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found