microsoft / TemplateStudio

Template Studio accelerates the creation of new WinUI 3, WPF, and UWP apps using a wizard-based experience.
Other
2.7k stars 461 forks source link

Allow an app to automatically include Compact sizing ResourceDictionary #2623

Open mdtauk opened 6 years ago

mdtauk commented 6 years ago

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.

image

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.

mrlacey commented 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.

mdtauk commented 6 years ago

Ah @mrlacey so eventually it will be more than just including a ResourceDictionary to achieve the Compact controls?

crutkas commented 6 years ago

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

mdtauk commented 6 years ago

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>
crutkas commented 6 years ago

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.

mdtauk commented 6 years ago

@crutkas Oh yea it will come when it comes, I was just bringing attention to it.