2

i'm trying to realise how to work with WinUI 3.0 acrylic, but i've stuck on create a custom acrylic brush, cos Visual Studio says there is no property for BackgroundSource in AcrylicBrush, but the docs says it must be, maybe i've missed updates, but i'm trying to do it same as it in official documentation and its confusing me(also in official documentation there is media:acrylic, but now its just AcrylicBrush, i'm sure its cos of updates). Thanks in advance for answer.

Th3Suspect
  • 25
  • 4

1 Answers1

1

Sounds like you are looking at the WinUI 2 documentation (which has BackgroundSource) but you are using WinUI 3. AcrylicBrush changed a lot in the new WinUI and BackgroundSource is gone now. https://learn.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.media.acrylicbrush?view=winui-3.0

Plastic Sturgeon
  • 12,527
  • 4
  • 33
  • 47
  • The link posted by Plastic Sturgeon redirects to the docs for API 2.8 which is still WinUI2. Just in case you're confused. The new URL is https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush?view=windows-app-sdk-1.3 – Trevor Davis Jun 21 '23 at 17:55