Skip to content
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

Update Mica XAML and C# samples #1286

Closed
Jay-o-Way opened this issue May 14, 2023 · 3 comments · Fixed by #1290
Closed

Update Mica XAML and C# samples #1286

Jay-o-Way opened this issue May 14, 2023 · 3 comments · Fixed by #1290

Comments

@Jay-o-Way
Copy link
Contributor

Jay-o-Way commented May 14, 2023

Issue type

enhancement

Which version of the app?

WinUI 3 Gallery

Description

Now that Mica is in W.A.SDK 1.3, we should mention the xaml on the Backdrops page. And/or link to https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.micabackdrop

Screenshots

image

@Jay-o-Way Jay-o-Way changed the title Update Mica XAML samples Update Mica XAML and C# samples May 14, 2023
@niels9001
Copy link
Collaborator

@Jay-o-Way @karkarl Should we remove the existing sample code altogether and just show the one line XAML / C# strings? Not really a point to show complicated/verbose code if 1.3 introduces an easy way to do things 😊? (Might convince devs to adopt it as it's just so easy now!)

@Jay-o-Way
Copy link
Contributor Author

Sounds perfect!

@LoganDark
Copy link

LoganDark commented May 15, 2023

@Jay-o-Way @karkarl Should we remove the existing sample code altogether and just show the one line XAML / C# strings? Not really a point to show complicated/verbose code if 1.3 introduces an easy way to do things 😊? (Might convince devs to adopt it as it's just so easy now!)

Absolutely, it took me a while to discover the easy way. Just need to make it explicit that Visual Studio projects don't use version 1.3 of the SDK by default, and you have to manually upgrade the NuGet package after creating the project (then change the run configuration or else it'll say something about CompileXaml not supporting PrecompiledHeaderFiles which is a false positive)

@karkarl karkarl mentioned this issue May 15, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants