Skip to content

Improved SystemBackdrop sample - #1698

Merged
Marcel W. (marcelwgn) merged 23 commits into
microsoft:mainfrom
MGGSK:BackdropSample
Jan 28, 2025
Merged

Marcel W. (marcelwgn) merged 23 commits into
microsoft:mainfrom
MGGSK:BackdropSample

Conversation

@MGGSK

@MGGSK Mgg Sk (MGGSK) commented Dec 12, 2024 •

Copy link
Copy Markdown
Contributor

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
Mgg Sk (MGGSK) marked this pull request as ready for review December 23, 2024 20:32
Comment thread WinUIGallery/DataModel/ControlInfoData.json Outdated
Comment thread WinUIGallery/DataModel/ControlInfoData.json Outdated
Comment thread WinUIGallery/DataModel/ControlInfoData.json
Comment thread WinUIGallery/SamplePages/SampleBuiltInSystemBackdropsWindow.xaml.cs Outdated
Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml Outdated
Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml
@niels9001

Copy link
Copy Markdown
Collaborator

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

image

We can also do this in a seperate PR!

Comment thread WinUIGallery/SamplePages/SampleBuiltInSystemBackdropsWindow.xaml Outdated
Comment thread WinUIGallery/SamplePages/SampleBuiltInSystemBackdropsWindow.xaml
Comment thread WinUIGallery/SamplePages/SampleSystemBackdropsWindow.xaml Outdated
Comment thread WinUIGallery/SamplePages/SampleSystemBackdropsWindow.xaml
Comment thread WinUIGallery/SamplePages/SampleSystemBackdropsWindow.xaml Outdated
@niels9001

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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.

Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml Outdated
Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml Outdated
Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml Outdated
Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml Outdated
@niels9001

Copy link
Copy Markdown
Collaborator

/azp run

1 similar comment
@marcelwgn

Copy link
Copy Markdown
Contributor

/azp run

Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml Outdated
Comment thread WinUIGallery/ContentIncludes.props Outdated
@karkarl

Copy link
Copy Markdown
Collaborator

/azp run

1 similar comment
@karkarl

Copy link
Copy Markdown
Collaborator

/azp run

@niels9001 Niels Laute (niels9001) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! Thanks!

Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml Outdated
Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml Outdated
Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml Outdated
Comment thread WinUIGallery/ControlPages/SystemBackdropsPage.xaml Outdated
Co-authored-by: Marcel W. <marcel.alex.wagner@outlook.com>
@ghost1372

Copy link
Copy Markdown
Contributor

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

@niels9001

Copy link
Copy Markdown
Collaborator

/azp run

@niels9001

Copy link
Copy Markdown
Collaborator

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

@marcelwgn Marcel W. (marcelwgn) left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

/azp run

@marcelwgn
Marcel W. (marcelwgn) merged commit 65bd5be into microsoft:main Jan 28, 2025
@MGGSK
Mgg Sk (MGGSK) deleted the BackdropSample branch January 28, 2025 12:36
@MGGSK
Mgg Sk (MGGSK) restored the BackdropSample branch January 28, 2025 12:36
@MGGSK
Mgg Sk (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

5 participants