~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to data/templates/file/VB/VB.Forms.UserControl.xft

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<Template author="Mike Krueger" version="1.0">
 
3
        
 
4
        <Config
 
5
                name        = "${res:Templates.File.WindowsUserControl.Name}"
 
6
                icon        = "VBNet.File.Form"
 
7
                category    = "VB"
 
8
                subcategory = "${res:Templates.File.Categories.WindowsApplications}"
 
9
                defaultname = "UserControl${Number}.vb"
 
10
                language    = "VBNET"/>
 
11
        
 
12
        <Description>${res:Templates.File.WindowsUserControl.Description}</Description>
 
13
        
 
14
        <References>
 
15
                <Reference include="System.Drawing" />
 
16
                <Reference include="System.Windows.Forms" />
 
17
        </References>
 
18
        
 
19
        <!-- 
 
20
        Special new file templates:
 
21
                ${StandardNamespace}        -> Standardnamespace of the current project or FileNameWithoutExtension
 
22
                ${FullName}                 -> Full generated path name
 
23
                ${FileName}                 -> File name with extension
 
24
                ${FileNameWithoutExtension} -> File name without extension
 
25
                ${Extension}                -> Extension in the form ".cs"
 
26
                ${Path}                     -> Full path of the file
 
27
         -->
 
28
        <Files>
 
29
<File name="${Path}/${FileNameWithoutExtension}.Designer.vb" DependentUpon="${FileName}" language="VBNET"><![CDATA[${StandardHeader.VBNET}
 
30
Partial Class ${ClassName}
 
31
        ''' <summary>
 
32
        ''' Designer variable used to keep track of non-visual components.
 
33
        ''' </summary>
 
34
        Private components As System.ComponentModel.IContainer
 
35
        
 
36
        ''' <summary>
 
37
        ''' Disposes resources used by the control.
 
38
        ''' </summary>
 
39
        ''' <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 
40
        Protected Overrides Sub Dispose(ByVal disposing As Boolean)
 
41
                If disposing Then
 
42
                        If components IsNot Nothing Then
 
43
                                components.Dispose()
 
44
                        End If
 
45
                End If
 
46
                MyBase.Dispose(disposing)
 
47
        End Sub
 
48
        
 
49
        ''' <summary>
 
50
        ''' This method is required for Windows Forms designer support.
 
51
        ''' Do not change the method contents inside the source code editor. The Forms designer might
 
52
        ''' not be able to load this method if it was changed manually.
 
53
        ''' </summary>
 
54
        Private Sub InitializeComponent()
 
55
                '
 
56
                '${ClassName}
 
57
                '
 
58
                Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
 
59
                Me.Name = "${ClassName}"
 
60
        End Sub
 
61
End Class
 
62
]]></File>
 
63
                <File name="${FullName}" language="VBNET"><![CDATA[${StandardHeader.VBNET}
 
64
Public Partial Class ${ClassName}
 
65
        Inherits System.Windows.Forms.UserControl
 
66
        
 
67
        Public Sub New()
 
68
                ' The Me.InitializeComponent call is required for Windows Forms designer support.
 
69
                Me.InitializeComponent()
 
70
                
 
71
                '
 
72
                ' TODO : Add constructor code after InitializeComponents
 
73
                '
 
74
        End Sub
 
75
End Class
 
76
]]></File>
 
77
        </Files>
 
78
        
 
79
        <AdditionalOptions/>
 
80
</Template>
 
81
 
 
82