2
<Template author="Mathias Simmack" version="1.0">
5
name = "${res:Templates.File.WinFXUserControl.Name}"
6
icon = "Icons.32x32.XMLFileIcon"
9
defaultname = "UserControl${Number}.xaml"
12
<Description>${res:Templates.File.WinFXUserControl.Description}</Description>
15
<Reference include="PresentationCore">
16
<RequiredTargetFramework>3.0</RequiredTargetFramework>
18
<Reference include="PresentationFramework">
19
<RequiredTargetFramework>3.0</RequiredTargetFramework>
21
<Reference include="WindowsBase">
22
<RequiredTargetFramework>3.0</RequiredTargetFramework>
27
Special new file templates:
28
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension
29
${FullName} -> Full generated path name
30
${FileName} -> File name with extension
31
${FileNameWithoutExtension} -> File name without extension
32
${Extension} -> Extension in the form ".cs"
33
${Path} -> Full path of the file
36
<File name="${FullName}" language="C#"><![CDATA[<UserControl x:Class="${StandardNamespace}.${ClassName}"
37
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
38
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
42
</UserControl>]]></File>
43
<File name="${FullName}.cs" language="C#" DependentUpon="${FileName}" SubType="Code"><![CDATA[${StandardHeader.C#}
45
using System.Collections.Generic;
48
using System.Windows.Controls;
49
using System.Windows.Data;
50
using System.Windows.Documents;
51
using System.Windows.Input;
52
using System.Windows.Media;
54
namespace ${StandardNamespace}
57
/// Interaction logic for ${FileName}
59
public partial class ${ClassName} : UserControl
63
InitializeComponent();