티스토리 뷰
UWP & Windows App/Beginner
Register Desktop Bridge app and UWP app as Startup program
kaki104 2020. 8. 25. 19:23반응형
Register Desktop Bridge app and UWP app as Startup program
Future Of DotNet
https://youtube.com/FutureOfDotNet
UWP앱을 시작프로그램으로 등록/삭제하는 방법입니다.
Youtube : https://youtu.be/5cI6oS0HLOQ
Blog : https://kaki104.tistory.com/664
Git : https://github.com/kaki104/StartupSample
Reference
- Windows 10 Anniversary Update
- Configure your app to start at log-in
- Integrate your desktop app with Windows 10 and UWP
Desktop Bridge vs UWP
- How
- Namespace
- EntryPoint
- Enabled
- Multiple startupTask
- Diabled/Enabled
Constrained in UWP apps
- The default is Disable
- Show a user-prompt dialog for UWP apps
- StartupTask includes a Disable method
- If the user disables, then the prompt is not shown again
- If the feature is disabled by local admin or group policy, then the user prompt is not shown, and startup cannot be enabled
- Platforms other than Desktop that don’t support startup tasks also report DisabledByPolicy
Package.appxmanifest
- xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5"
- IgnorableNamespaces="uap mp uap5"
<Application>
<Extensions>
<uap5:Extension Category="windows.startupTask“ Executable="StartupXXX.exe“ EntryPoint="StartupXXX.App">
<uap5:StartupTask TaskId="StartupXXX“ Enabled="false“ DisplayName="StartupXXX“/>
</uap5:Extension>
</Extensions>
</Application>
MainPage.xaml.cs
var startupTask = await StartupTask.GetAsync("StartupXXX");
StartupTaskState newState = await startupTask.RequestEnableAsync();
App.xaml.cs
protected override void OnActivated(IActivatedEventArgs args)
var staea = args as StartupTaskActivatedEventArgs;
rootFrame.Navigate(typeof(MainPage), staea.TaskId);
Window.Current.Activate();
반응형
'UWP & Windows App > Beginner' 카테고리의 다른 글
MVVM Pattern을 사용하는 개발자를 위한 안내 (업데이트 : 2022/03/21) (30) | 2021.02.18 |
---|---|
[책리뷰] UWP 퀵스타트 (3) | 2021.01.22 |
Microsoft Edge(Chromium) WebView2 Control (0) | 2020.08.17 |
Face detecting in UWP app (0) | 2020.08.06 |
Create a UWP app with File System Access (0) | 2020.07.24 |
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- uno-platform
- dotNETconf
- PRISM
- .net 5.0
- ComboBox
- Microsoft
- MVVM
- Windows 10
- IOT
- #MVVM
- uno platform
- ef core
- .net
- XAML
- Build 2016
- #prism
- Always Encrypted
- LINQ
- Bot Framework
- Cross-platform
- WPF
- kiosk
- C#
- #uwp
- windows 11
- Visual Studio 2022
- UWP
- Behavior
- #Windows Template Studio
- visual studio 2019
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
글 보관함