Replies: 2 comments 2 replies
-
这是我在我的应用中使用 taskbarmanager api固定应用到任务栏的一个示例,这个api需要访问受限功能。注意,如果在桌面应用使用这个api,通过访问受限功能只能固定当前应用 This is an example of my application using the taskbarmanager api to fix to the taskbar, which requires access restriction functionality. Note that if you use this api in a desktop application, you can only fix the current application with restricted access 请注意,这是一个受限访问功能。如果需要提交应用到 Microsoft store,您可能需要解释为什么需要访问这个受限功能😂 Please note that this is a restricted access feature. If you need to submit your app to the Microsoft store, you might need to explain why you need to access this limited feature 😂 https://github.com/Gaoyifei1011/GetStoreApp/blob/main/GetStoreApp/Views/Pages/AboutPage.xaml.cs#L202 |
Beta Was this translation helpful? Give feedback.
-
A way is with IPinnedList3 interface, like in Chromium |
Beta Was this translation helpful? Give feedback.
-
Hello, guys!
I want to create an application that works as a hub to access and pin third-party applications installed on the operating system to the taskbar.
Currently, I can meet my requirements using UWP.
await TaskbarManager.GetDefault().RequestPinAppListEntryAsync((AppListEntry)appToPin);
I followed the steps in the tutorial below, including requesting the token to create the LafData file, as the API is part of a series with a Limited Access Feature (LAF).
However, I continue to have permission problems pinning applications to the taskbar. If anyone can give me an idea of how I could use this functionality in a WinUI3 application?
https://learn.microsoft.com/en-us/windows/apps/design/shell/pin-to-taskbar
Beta Was this translation helpful? Give feedback.
All reactions