Skip to content

Commit 8da046a

Browse files
authored
Add fields to filter out templates appearing in the add new item dialog for non UAP projects (#1227)
1 parent fb9ef7b commit 8da046a

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

vsix/ItemTemplates/BlankPage/cppwinrt_BlankPage.vstemplate

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
<Name ID="1013" Package="FIXME-PACKAGEGUID" />
55
<Description ID="1014" Package="FIXME-PACKAGEGUID" />
66
<ProjectType>VC</ProjectType>
7-
<SortOrder>10</SortOrder>
7+
<SortOrder>40</SortOrder>
88
<TemplateID>microsoft.Windows.CppWinRT.BlankPage</TemplateID>
9+
<TemplateGroupID>WinRT-Native-UAP</TemplateGroupID>
10+
<AppliesTo>VisualC + WindowsXaml</AppliesTo>
11+
<NumberOfParentCategoriesToRollUp>0</NumberOfParentCategoriesToRollUp>
12+
<ShowByDefault>false</ShowByDefault>
913
<Icon>cppwinrt.ico</Icon>
1014
<PreviewImage>cppwinrt.png</PreviewImage>
1115
</TemplateData>

vsix/ItemTemplates/BlankUserControl/cppwinrt_BlankUserControl.vstemplate

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
<Name ID="1015" Package="FIXME-PACKAGEGUID" />
55
<Description ID="1016" Package="FIXME-PACKAGEGUID" />
66
<ProjectType>VC</ProjectType>
7-
<SortOrder>10</SortOrder>
7+
<SortOrder>41</SortOrder>
88
<TemplateID>microsoft.Windows.CppWinRT.BlankUserControl</TemplateID>
9+
<TemplateGroupID>WinRT-Native-UAP</TemplateGroupID>
10+
<AppliesTo>VisualC + WindowsXaml</AppliesTo>
11+
<NumberOfParentCategoriesToRollUp>0</NumberOfParentCategoriesToRollUp>
12+
<ShowByDefault>false</ShowByDefault>
913
<Icon>cppwinrt.ico</Icon>
1014
<PreviewImage>cppwinrt.png</PreviewImage>
1115
</TemplateData>

vsix/ItemTemplates/ViewModel/cppwinrt_ViewModel.vstemplate

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
<Name ID="1017" Package="FIXME-PACKAGEGUID" />
55
<Description ID="1018" Package="FIXME-PACKAGEGUID" />
66
<ProjectType>VC</ProjectType>
7-
<SortOrder>10</SortOrder>
7+
<SortOrder>42</SortOrder>
88
<TemplateID>microsoft.Windows.CppWinRT.ViewModel</TemplateID>
9+
<TemplateGroupID>WinRT-Native-UAP</TemplateGroupID>
10+
<AppliesTo>VisualC + WindowsXaml</AppliesTo>
11+
<NumberOfParentCategoriesToRollUp>0</NumberOfParentCategoriesToRollUp>
12+
<ShowByDefault>false</ShowByDefault>
913
<Icon>cppwinrt.ico</Icon>
1014
<PreviewImage>cppwinrt.png</PreviewImage>
1115
</TemplateData>

0 commit comments

Comments
 (0)