-
Notifications
You must be signed in to change notification settings - Fork 802
Description
Proposal: Can we have a shortcut to create a copy of ControlTemplate?
Summary
We understand it might be difficult to implement a working xaml preview/editor. (althought it's already 5 years after #2975) But can we have a shortcut to quickly create a copy of a control's ControlTemplate, that is like the single most important feature of xaml preview?
Rationale
So I am trying to modify a small ui detail of NavigationView, so I go to packages, find generic.xaml, and find the NavigationView's ControlTemplate by searching TargetType="NavigationView, and I found none. Then I tried DefaultNavigationView, still none.
Then after wasting for several minutes of my life to scroll the 36000 lines of xml , I found it under this
<Style TargetType="controls:NavigationView">
<Setter Property="PaneToggleButtonStyle" Value="{StaticResource PaneToggleButtonStyle}" />
<Setter Property="IsTabStop" Value="False" />
<Setter Property="CompactPaneLength" Value="{ThemeResource NavigationViewCompactPaneLength}" />
<Setter Property="CornerRadius" Value="{ThemeResource OverlayCornerRadius}" />
<Setter Property="Template">First of all, why does it still have a useless controls: prefix after like 4 years since winui2?
And why can't we have nice things? Why can't we just have a feature in visual studio that I can quickly edit a controltemplate when I right click on the control's xml?
Scope
| Capability | Priority |
|---|---|
| This proposal will allow developers to quickly edit the ControlTemplate of a built-in control | Must |
