Skip to content

Improved SystemBackdrop sample#1698

Merged
marcelwgn merged 23 commits intomicrosoft:mainfrom
MGGSK:BackdropSample
Jan 28, 2025
Merged

Improved SystemBackdrop sample#1698
marcelwgn merged 23 commits intomicrosoft:mainfrom
MGGSK:BackdropSample

Conversation

@MGGSK
Copy link
Contributor

@MGGSK MGGSK commented Dec 12, 2024

Made the sample easier to use.

Description

  1. Changed the sample description
  2. Added inheritance to the sample page
  3. Added a title bar to the sample window
  4. The sample window now has a icon
  5. The theme of the sample window can now be changed.
  6. The sample windows now have a list of backdrops that can be applied. If the user clicks opens the "MicaController" sample and clicks "Change Backdrop" the window won't apply Acrylic.
  7. Fixed the xaml sample code having c# comments.

Motivation and Context

The old sample has no info about how the materials look like.

How Has This Been Tested?

Manual

Screenshots:

image
image
image
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@MGGSK MGGSK marked this pull request as ready for review December 23, 2024 20:32
@niels9001
Copy link
Collaborator

Would it make sense to change this Button into a ComboBox?

image

We can also do this in a seperate PR!

@niels9001
Copy link
Collaborator

See a bunch of UX nits in my comments.

The textblock is redundant if we use a ComboBox right? We can set the selected backdrop there, and increase the spacing between the 2 comboboxes a bit:

image

@MGGSK
Copy link
Contributor Author

MGGSK commented Jan 13, 2025

See a bunch of UX nits in my comments.

The textblock is redundant if we use a ComboBox right? We can set the selected backdrop there, and increase the spacing between the 2 comboboxes a bit:

image

I changed the spacing from 12 to 20 px.

@niels9001
Copy link
Collaborator

/azp run

1 similar comment
@marcelwgn
Copy link
Contributor

/azp run

@karkarl
Copy link
Collaborator

karkarl commented Jan 15, 2025

/azp run

1 similar comment
@karkarl
Copy link
Collaborator

karkarl commented Jan 15, 2025

/azp run

Copy link
Collaborator

@niels9001 niels9001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

Co-authored-by: Marcel W. <marcel.alex.wagner@outlook.com>
@ghost1372
Copy link
Contributor

Hi @MGGSK
It would also be useful to have a sample for TintColor/TintOpacity...

@niels9001
Copy link
Collaborator

/azp run

@niels9001 niels9001 requested a review from marcelwgn January 27, 2025 16:07
@niels9001
Copy link
Collaborator

@MGGSK A few conflicts popped up because of the indention changed caused by #1700. Once those are resolved we can merge this in :)

Copy link
Contributor

@marcelwgn marcelwgn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for updating these samples!

@marcelwgn
Copy link
Contributor

/azp run

@marcelwgn marcelwgn merged commit 65bd5be into microsoft:main Jan 28, 2025
1 check passed
@MGGSK MGGSK deleted the BackdropSample branch January 28, 2025 12:36
@MGGSK MGGSK restored the BackdropSample branch January 28, 2025 12:36
@MGGSK MGGSK deleted the BackdropSample branch January 28, 2025 12:37
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.

5 participants