2
<Template author="Siegfried Pammer" version="1.0">
5
name = "${res:Templates.File.WinFXPage.Name}"
6
icon = "Icons.32x32.XMLFileIcon"
9
defaultname = "Page${Number}.xaml"
12
<Description>${res:Templates.File.WinFXPage.Name}</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 ".vb"
33
${Path} -> Full path of the file
36
<File name="${FullName}" language="XML" buildAction="Page"><![CDATA[<Page x:Class="${ClassName}"
37
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
38
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
39
Title="${FileNameWithoutExtension}">
44
<File name="${FullName}.vb" language="VBNET" DependentUpon="${FileName}" SubType="Code"><![CDATA[${StandardHeader.VBNET}
46
Imports System.Collections.Generic
48
Imports System.Windows
49
Imports System.Windows.Controls
50
Imports System.Windows.Data
51
Imports System.Windows.Documents
52
Imports System.Windows.Input
53
Imports System.Windows.Media
56
''' Interaction logic for ${FileName}
58
Public Partial Class ${ClassName}