You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.9 KiB
64 lines
1.9 KiB
<?xml version="1.0"?> |
|
<Template author="Mathias Simmack" version="1.0"> |
|
|
|
<Config |
|
name = "${res:Templates.File.WinFXUserControl.Name}" |
|
icon = "Icons.32x32.XMLFileIcon" |
|
category = "C#" |
|
subcategory = "WinFX" |
|
defaultname = "UserControl${Number}.xaml" |
|
language = "C#"/> |
|
|
|
<Description>${res:Templates.File.WinFXUserControl.Description}</Description> |
|
|
|
<!-- |
|
Special new file templates: |
|
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension |
|
${FullName} -> Full generated path name |
|
${FileName} -> File name with extension |
|
${FileNameWithoutExtension} -> File name without extension |
|
${Extension} -> Extension in the form ".cs" |
|
${Path} -> Full path of the file |
|
--> |
|
<Files> |
|
<File name="${FullName}" language="C#"><![CDATA[<UserControl x:Class="${StandardNamespace}.${FileNameWithoutExtension}" |
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
|
<Grid> |
|
|
|
</Grid> |
|
</UserControl>]]></File> |
|
<File name="${FullName}.cs" language="C#" dependentUpon="${FileName}" subType="Code"><![CDATA[using System; |
|
using System.Collections.Generic; |
|
using System.Text; |
|
using System.Windows; |
|
using System.Windows.Controls; |
|
using System.Windows.Data; |
|
using System.Windows.Documents; |
|
using System.Windows.Input; |
|
using System.Windows.Media; |
|
using System.Windows.Media.Imaging; |
|
using System.Windows.Navigation; |
|
using System.Windows.Shapes; |
|
|
|
namespace ${StandardNamespace} |
|
{ |
|
/// <summary> |
|
/// Interaction logic for ${FileName} |
|
/// </summary> |
|
|
|
public partial class ${FileNameWithoutExtension} : UserControl |
|
{ |
|
public ${FileNameWithoutExtension}() |
|
{ |
|
InitializeComponent(); |
|
} |
|
|
|
} |
|
}]]></File> |
|
</Files> |
|
|
|
<AdditionalOptions/> |
|
</Template> |
|
|
|
|
|
|