-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mica Sample Update #1290
Mica Sample Update #1290
Conversation
@@ -19,14 +19,19 @@ | |||
mc:Ignorable="d"> | |||
|
|||
<StackPanel> | |||
<local:ControlExample HeaderText="Create a window with a built-in Mica system backdrop." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karkarl I'd include a XAML snippet here as well now that's fully supported? It's probably how most devs would (like) to use it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should be in the Xaml snippet? I can't think of anything relevant to mica implementation to put in there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Window.SystemBackdrop>
<MicaBackdrop/>
</Window.SystemBackdrop>
and
<Window.SystemBackdrop>
<DesktopAcrylicBackdrop/>
</Window.SystemBackdrop>
That's the easiest way to add Mica
or Acrylic
to a Window
without any code behind.. there was a bug blocking this but was fixed with 1.3.1 - it now works great :-).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! See minor comment - having a XAML snippet would be a nice addition!
I pushed a commit prettyfing the sample pages a bit :)
Did you also include the sample with one for Mica Alt? <Window.SystemBackdrop>
<MicaBackdrop Kind="BaseAlt"/>
</Window.SystemBackdrop> And you can also use this to achieve the regular Mica <Window.SystemBackdrop>
<MicaBackdrop Kind="Base"/>
</Window.SystemBackdrop> |
Description
Updating the Mica sample now that it is available in WASDK 1.3, and way easier to implement!
Note: This is a port from internal repo PR - 8915253
Motivation and Context
Fixes #1286
Screenshots (if appropriate):
Types of changes