~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to data/templates/file/CSharp/CSharp.WPFUserControl.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="Mathias Simmack" version="1.0">
 
3
        
 
4
        <Config
 
5
                  name        = "${res:Templates.File.WinFXUserControl.Name}"
 
6
                  icon        = "Icons.32x32.XMLFileIcon"
 
7
                  category    = "C#"
 
8
                  subcategory = "WPF"
 
9
                  defaultname = "UserControl${Number}.xaml"
 
10
                  language    = "C#"/>
 
11
         
 
12
        <Description>${res:Templates.File.WinFXUserControl.Description}</Description>
 
13
        
 
14
        <References>
 
15
                <Reference include="PresentationCore">
 
16
                        <RequiredTargetFramework>3.0</RequiredTargetFramework>
 
17
                </Reference>
 
18
                <Reference include="PresentationFramework">
 
19
                        <RequiredTargetFramework>3.0</RequiredTargetFramework>
 
20
                </Reference>
 
21
                <Reference include="WindowsBase">
 
22
                        <RequiredTargetFramework>3.0</RequiredTargetFramework>
 
23
                </Reference>
 
24
        </References>
 
25
        
 
26
        <!-- 
 
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
 
34
         -->
 
35
        <Files>
 
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">
 
39
        <Grid>
 
40
                
 
41
        </Grid>
 
42
</UserControl>]]></File>
 
43
                <File name="${FullName}.cs" language="C#" DependentUpon="${FileName}" SubType="Code"><![CDATA[${StandardHeader.C#}
 
44
using System;
 
45
using System.Collections.Generic;
 
46
using System.Text;
 
47
using System.Windows;
 
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;
 
53
 
 
54
namespace ${StandardNamespace}
 
55
{
 
56
        /// <summary>
 
57
        /// Interaction logic for ${FileName}
 
58
        /// </summary>
 
59
        public partial class ${ClassName} : UserControl
 
60
        {
 
61
                public ${ClassName}()
 
62
                {
 
63
                        InitializeComponent();
 
64
                }
 
65
        }
 
66
}]]></File>
 
67
        </Files>
 
68
        
 
69
        <AdditionalOptions/>
 
70
</Template>
 
71
 
 
72