Open mdtauk opened 6 years ago
Native support for Compact mode wasn't included in the October 18 release. When the ability to do this is built in, we can add a feature to make it easy to do. Doing anything now would require us to provide a complete set of custom margins and paddings. If we did include something there's no guarantee it would match whatever gets released.
Ah @mrlacey so eventually it will be more than just including a ResourceDictionary to achieve the Compact controls?
This should be coming in WinUI library, we need to validate how this actually to do this. Good to have here but will be in a few months
The XAML Controls Gallery app updated with a "Compact Sizing" preview. It uses the following sample XAML but has no documentation right now...
<Application.Resources>
<ResourceDictionary/>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="CompactSize.xaml">
<ResourceDictionary.MergedDictionaries/>
</ResourceDictionary>
</Application.Resources>
when it ships in WinUI, we'll adopt it. I want to be sure what we ship is correct and can be updated. I also want to be sure we can appropriately link to documentation.
@crutkas Oh yea it will come when it comes, I was just bringing attention to it.
For new Features:
So, why not include an option to apply these on project creation, or project upgrade. If Microsoft has made these compact resources available, allow them to be included either in the App.xaml file, or as a merged ResourceDictionary.
By offering them through Template Studio, it should help keep these compact values more consistent from app to app, rather than expecting every dev to seek them out, or trying to wing it.