<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Styling on DVLUP</title><link>/en/tags/styling/</link><description>Recent content in Styling on DVLUP</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 13 Mar 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/styling/index.xml" rel="self" type="application/rss+xml"/><item><title>Mica or Acrylic with WinUI and .NET MAUI</title><link>/en/blog/2023.03.13-mica-or-acrylic-with-winui-and-net-maui/</link><pubDate>Mon, 13 Mar 2023 00:00:00 +0000</pubDate><guid>/en/blog/2023.03.13-mica-or-acrylic-with-winui-and-net-maui/</guid><description>&lt;p&gt;When using .NET MAUI, we have some great capabilities to affect the way the native platform works. We can take advantage of this part of lifecycle to check if:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Is the runtime platform is Windows?&lt;/li&gt;&#10;&lt;li&gt;First attempt to use Mica, if the user&amp;rsquo;s device supports it (Windows 11).&lt;/li&gt;&#10;&lt;li&gt;If it doesn&amp;rsquo;t support Mica, then we try to use Acrylic.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Here&amp;rsquo;s what the end result looks like in your MauiProgram.cs code, nice and clean thanks to using lifecycle builder extension methods.&lt;/p&gt;</description></item></channel></rss>