Hi,
let's take a TextBlock as an example. What's the correct syntax to set the foreground or background color from code behind, using the resources for the Windows 11 palette for instance ?
Also if using it this way, would the color automatically switch to the correct theme variation (light to dark, dark to light) ?
Thank you for your help