-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Shell.Title and Window.Title currently doesn't propagate to the catalyst window title #11263
Comments
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
|
Seems the Title is not bubbled up, but thisis also partially by design as some apps do not wish the APP title to match the current page. If you do, you could maybe put something like this in your shell code-behind (AppShell.xaml.cs): protected override void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
base.OnPropertyChanged(propertyName);
if (propertyName == WindowProperty.PropertyName)
Window?.SetBinding(Window.TitleProperty, new Binding("CurrentItem.Title", source: this) { StringFormat = ".NET MAUI {0}" });
} If you want a fixed title for the app, then this is also possible if you put this in your app code-behind (App.xaml.cs): protected override Window CreateWindow(IActivationState activationState)
{
var window = base.CreateWindow(activationState);
window.Title = ".NET MAUI";
return window;
} |
Hi @PureWeen. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@PureWeen is this still a thing? I feel like Window.Title now works and I am not sure if Shell.Title going to Window.Title is 100% desired as most apps don't flip title based on the current page... But maybe I am wrong. I have a workaround that may be a feature? |
You only have one |
Here's the watching of the property change We don't really expose |
They usually do based on context and for accessibility reasons. Ideally your window title will append/include the context of where you are in an app, that way if you have multiple windows, or you have multiple instances of an app, the screen reader + window.title will give your window context. For example, every window of your browser bases the title on the currently visible page. Notepad will prefix the filename. The Window.Title should probably be an attached property like how we do |
Description
The title on the window and shell component don't currently propagate to the
UIScene
title property.Here's an example of a workaround
https://github.com/PureWeen/dotnetConfDemo2022/blob/main/dotnetConfDemo/Windows/ScopedWindow.cs#L35
The text was updated successfully, but these errors were encountered: