Where can I find the default template for the Expander control?

Viewed 296

I need to modify the template of the Expander control (move the chevron icon to the left), but I could not find it.

Per https://docs.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.controls.expander?view=winui-3.0#control-style-and-template

The default style, template, and resources that define the look of the control are included in the generic.xaml file. For design purposes, generic.xaml is available in the (Program Files)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\ \Generic folder from a Windows Software Development Kit (SDK) installation. Styles and resources from different versions of the SDK might have different values.

The generic.xaml in that location does not have the default template of the Expander control.

I also looked in the generic.xaml from %Users%\myuser\.nuget\packages\microsoft.windowsappsdk\1.0.0\lib\net5.0-windows10.0.18362.0\Microsoft.WinUI\Themes\generic.xaml

So confusing. Back in the old WPF\UWP days I could just do Edit Template in Visual Studio, but with WinUI, that's not available...

1 Answers
Related