English 中文(简体)
3. 一套(或强调)在导航后的特定单壳物品
原标题:Set (or highlight) a specific shell tabbar item after navigation

我把通知添加到我的和roid。 当系统一级通知遭到挫折和点击时,该信开启了通知函,以显示从服务器中检索的相关信息。

Using the following code within MainActivity.cs during the OnNewIntent setup, the app navigates back to the AllNotificationsView (which is a tab in the shell) when the user presses the back button from the detail view. Fantastic.

 Shell.Current.GoToAsync($"/{nameof(AllNotificationsPage)}/{nameof(NotificationPage)}", true,
     new Dictionary<string, object>
     {
         ["Notification"] = notification
     }
 );

在这种情形下,当这两种观点都开放时,我像壳牌通知一样,要强调。

我想, docs page将有助于我指出,但 app看看看看看上去有关表格的名称。

Shell.Current.CurrentItem = allNotifications;

Any help or pointers in the right direction would be appreciated.

问题回答




相关问题
Unable to access file in ResourcesSounds folder

I m using .net Maui and attempting to create audioManager players for a couple of sound files located in the ResourcesSounds folder in the project. The code is this: var playerStartSound = ...

.NET MAUI native audio player

I am interested is there a way to play mp3 files from the phone internal memory using the built in native audio player. I am asking this, because I want to implement an equalizer too, so I am guessing ...

Integrating Push Notifications in MAUI .NET 7 Applications

I m developing a cross-platform application using MAUI .NET 7 and I would like to add push notification functionality to my application. I m considering using Firebase Cloud Messaging or Azure ...

Databinding doesnt work in my xaml.cs file

I am trying to load some data from my Model to the xaml.cs file. But it doesn t work. In my Mainpage.xaml i have a binding property inside a label. In the code behind file a BindingContext to my ...

Do some tasks after OnAppearing() in MAUI

I have a maui community toolkit expander control in my page. On Tapping the header the content is shown/hidden .I got a Maui map in the expander s content. It display properly if the expander is in ...

NET MAUI是否有可调整的分辨率特征?

页: 1 NET MAUI用于一个即将到来的项目,但我发现一件失踪的事情是,我需要的是分裂的特征。 我发现,散射器在移动上可能不会产生作用,但Im主要针对Windows......。

How to optimize detail page reset button in C# MAUI?

I ve implemented a Reset button on a Detail page in C# MAUI and it works, but I can t figure out why I need to be so explicit in the way I capture the initial data to perform the reset, when requested....

热门标签