Skip to content

Added sample for WinAppSDK BackgroundTaskBuilder - #392

Merged
Godly T.Alias (godlytalias) merged 8 commits into
release/experimentalfrom
user/godlytalias/backgroundtaskbuilder
Dec 9, 2024
Merged

Added sample for WinAppSDK BackgroundTaskBuilder#392
Godly T.Alias (godlytalias) merged 8 commits into
release/experimentalfrom
user/godlytalias/backgroundtaskbuilder

Conversation

@godlytalias

@godlytalias Godly T.Alias (godlytalias) commented Nov 21, 2024

Copy link
Copy Markdown
Contributor

Description

This sample application demonstrates how a WinAppSDK app can register Background Task using the BackgroundTaskBuilder API in WinAppSDK. In this sample usage of TimeZoneChanged trigger is demonstrated which can be easily changed to any supported triggers.

Target Release

1.7

Checklist

  • Samples build and run using the Visual Studio versions listed in the Windows development docs.
  • Samples build and run on all supported platforms (x64, x86, ARM64) and configurations (Debug, Release).
  • Samples set the minimum supported OS version to Windows 10 version 1809.
  • Samples build clean with no warnings or errors.
  • [For new samples]: Samples have completed the sample guidelines checklist and follow standardization/naming guidelines.
  • If I am onboarding a new feature, then I must have correctly setup a new CI pipeline for my feature with the correct triggers and path filters laid out in the "Onboarding Samples CI Pipeline for new feature" section in samples-guidelines.md.
  • I have commented on my PR /azp run SamplesCI-<FeatureName> to have the CI build run on my branch for each of my FeatureName my PR is modifying. This must be done on the latest commit on the PR before merging to ensure the build is up to date and accurate. Warning: the PR will not block automatically if this is not run due to '/azp run' limitation on triggering more than 10 pipelines.

@godlytalias

Copy link
Copy Markdown
Contributor Author

/azp run SamplesCI-BackgroundTask

@godlytalias

Copy link
Copy Markdown
Contributor Author

/azp run SamplesCI-BackgroundTask

@godlytalias
Godly T.Alias (godlytalias) changed the base branch from main to release/experimental November 22, 2024 06:15
Signed-off-by: Godly Alias <godlyalias@microsoft.com>
Signed-off-by: Godly Alias <godlyalias@microsoft.com>
@godlytalias
Godly T.Alias (godlytalias) force-pushed the user/godlytalias/backgroundtaskbuilder branch from c749567 to 741740f Compare November 22, 2024 06:33
@godlytalias

Copy link
Copy Markdown
Contributor Author

/azp run SamplesCI-BackgroundTask

Comment thread Samples/BackgroundTask/cpp-winui/BackgroundTaskBuilder/App.xaml.cpp Outdated
Signed-off-by: Godly Alias <godlyalias@microsoft.com>
@godlytalias

Copy link
Copy Markdown
Contributor Author

/azp run SamplesCI-BackgroundTask

Signed-off-by: Godly Alias <godlyalias@microsoft.com>
Signed-off-by: Godly Alias <godlyalias@microsoft.com>
Signed-off-by: Godly Alias <godlyalias@microsoft.com>
Comment thread Samples/BackgroundTask/cpp-winui/BackgroundTaskBuilder/RegisterForCOM.cpp Outdated
Comment thread Samples/BackgroundTask/cpp-winui/BackgroundTaskBuilder/App.xaml.cpp Outdated
Comment thread Samples/BackgroundTask/cs-winui/BackgroundTaskBuilder/Package.appxmanifest Outdated
Comment thread Samples/BackgroundTask/cs-winui/BackgroundTaskBuilder/Package.appxmanifest Outdated
Signed-off-by: Godly Alias <godlyalias@microsoft.com>
@godlytalias
Godly T.Alias (godlytalias) merged commit c547dc1 into release/experimental Dec 9, 2024
@godlytalias
Godly T.Alias (godlytalias) deleted the user/godlytalias/backgroundtaskbuilder branch December 9, 2024 15:52
Godly T.Alias (godlytalias) added a commit that referenced this pull request Apr 8, 2025
* Added sample for WinAppSDK BackgroundTaskBuilder

Signed-off-by: Godly Alias <godlyalias@microsoft.com>
Godly T.Alias (godlytalias) added a commit that referenced this pull request Apr 8, 2025
* Added sample for WinAppSDK BackgroundTaskBuilder (#392)

* Added sample for WinAppSDK BackgroundTaskBuilder

Signed-off-by: Godly Alias <godlyalias@microsoft.com>

* Added comments for improved readability of the sample (#400)

Signed-off-by: godlytalias <godlytalias@yahoo.co.in>

* InProc BackgroundTask Samples (#413)

* Added InProc BackgroundTask Samples

Signed-off-by: godlytalias <godlytalias@yahoo.co.in>

* Support for trimming in BackgroundTask Samples (#421)

Signed-off-by: godlytalias <godlytalias@yahoo.co.in>

---------

Signed-off-by: godlytalias <godlytalias@yahoo.co.in>
shisan (qiutongMS) pushed a commit that referenced this pull request Sep 2, 2026
Bring the straightforward release/2.0-stable sample set into main in one reconciliation step: BackgroundTask, CameraCaptureUI, OAuth2Manager, Badge notifications, StoragePickers, Unpackaged WinForms, DrawingIsland, and UXFrameworksOnIslands.

Keep the stable sample behavior while adapting package references, native toolsets, documentation, and CI wiring to the current main infrastructure.

Stable evidence: PRs #367, #392, #395, #398, #400, #402, #403, #405, #413, #421, #422, #427, #455, #512, and #590.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants