
If your vertical panes open on top of content, like in NavigationView's Compact or Minimal modes, we suggest you use in-app acrylic to help maintain the page's context when the user has this pane open. Acrylic is a tool to bring visual harmony to your designs, but when used incorrectly can result in visual noise.Ĭonsider the following usage patterns to decide how best to incorporate acrylic into your app: Vertical Panesįor vertical panes or surfaces that help section off content of your app, we recommend you use an opaque background instead of acrylic. However, to avoid creating a striping effect, try not to place multiple pieces of acrylic edge-to-edge - this can create an unwanted seam between the two blurred surfaces. Using NavigationView will do this for you automatically. If you are using in-app acrylic on navigation surfaces, consider extending content beneath the acrylic pane to improve the flow in your app. Using Acrylic in transient scenarios helps maintain a visual relationship with the content that triggered the transient UI. Use background acrylic for transient UI elements, such as context menus, flyouts, and light-dismissable UI.Use in-app acrylic for supporting UI, such as on surfaces that may overlap content when scrolled or interacted with.In-app acrylic adds a sense of depth within the app frame, providing both focus and hierarchy.Īvoid layering multiple acrylic surfaces: multiple layers of background acrylic can create distracting optical illusions.

Background acrylic reveals the desktop wallpaper and other windows that are behind the currently active app, adding depth between application windows while celebrating the user’s personalization preferences.There are two acrylic blend types that change what’s visible through the material:

Acrylic overlay code#
Get the source code (GitHub) Acrylic blend typesĪcrylic's most noticeable characteristic is its transparency. Get the WinUI 2 Gallery app (Microsoft Store)

If you have the WinUI 2 Gallery app installed, click here to open the app and see acrylic in action.
