Merged
Conversation
The source file is now renamed to its filename without extension before being set as the suggested save file, ensuring consistent naming in the file picker dialog.
Enable the app to receive images via the Windows Share UI by declaring share target support in the manifest and handling share activation. Shared images are copied to a temp folder and loaded automatically on launch. CLI argument loading is now secondary to share activation.
Introduced "Remove Background (AI)" feature leveraging Windows on-device AI (ImageObjectExtractor) to extract the main object from images. Added BackgroundRemoverHelper for model availability checks and background removal logic. Implemented RemoveBackgroundDialog for before/after previews and user interaction. Updated MainViewModel and MainPage to integrate the new command and menu item. Increased Windows SDK/TargetPlatformVersion to 10.0.26100.0 and added systemAIModels capability in the manifest. Registered new dialog and updated project files for compatibility and consistency.
- Use the entire image as the region of interest for background removal instead of a central crop. - Invert the mask before applying it as alpha to correct background/foreground handling. - Store the result image path in RemoveBackgroundDialog only after user confirmation. - Add explicit PrimaryButtonClick handling for result commitment. - Refactor dialog loading logic for clearer error handling and UI state management.
…avoid wapproj issues Co-authored-by: TheJoeFin <7809853+TheJoeFin@users.noreply.github.com>
Fix CI build failures for WinAppSDK project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.