Browse Source

Remove WPF templates from Corsavy.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1517 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
f212108c77
  1. 36
      data/templates/file/CSharp/CSharp.WPFFlowDocument.xft
  2. 66
      data/templates/file/CSharp/CSharp.WPFPage.xft
  3. 91
      data/templates/file/CSharp/CSharp.WPFPageFunction.xft
  4. 34
      data/templates/file/CSharp/CSharp.WPFResourceDictionary.xft
  5. 64
      data/templates/file/CSharp/CSharp.WPFUserControl.xft
  6. 67
      data/templates/file/CSharp/CSharp.WPFWindow.xft
  7. 175
      data/templates/project/CSharp/WPFApplication.xpt
  8. 174
      data/templates/project/CSharp/WPFNavigationApplication.xpt

36
data/templates/file/CSharp/CSharp.WPFFlowDocument.xft

@ -1,36 +0,0 @@ @@ -1,36 +0,0 @@
<?xml version="1.0"?>
<Template author="Mathias Simmack" version="1.0">
<Config
name = "${res:Templates.File.WinFXFlowDocument.Name}"
icon = "Icons.32x32.XMLFileIcon"
category = "C#"
subcategory = "WinFX"
defaultname = "FlowDocument${Number}.xaml"
language = "XML"/>
<Description>${res:Templates.File.WinFXFlowDocument.Name}</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="XML" buildAction="Page"><![CDATA[<FlowDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
ColumnWidth="400" FontSize="14" FontFamily="Georgia"
>
<Paragraph>
</Paragraph>
</FlowDocument>]]></File>
</Files>
<AdditionalOptions/>
</Template>

66
data/templates/file/CSharp/CSharp.WPFPage.xft

@ -1,66 +0,0 @@ @@ -1,66 +0,0 @@
<?xml version="1.0"?>
<Template author="Mathias Simmack" version="1.0">
<Config
name = "${res:Templates.File.WinFXPage.Name}"
icon = "Icons.32x32.XMLFileIcon"
category = "C#"
subcategory = "WinFX"
defaultname = "Page${Number}.xaml"
language = "C#"/>
<Description>${res:Templates.File.WinFXPage.Name}</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="XML" buildAction="Page"><![CDATA[<Page x:Class="${StandardNamespace}.${FileNameWithoutExtension}"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="${FileNameWithoutExtension}"
>
<Grid>
</Grid>
</Page>]]></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 ${FullName}
/// </summary>
public partial class ${FileNameWithoutExtension} : Page
{
public ${FileNameWithoutExtension}()
{
InitializeComponent();
}
}
}]]></File>
</Files>
<AdditionalOptions/>
</Template>

91
data/templates/file/CSharp/CSharp.WPFPageFunction.xft

@ -1,91 +0,0 @@ @@ -1,91 +0,0 @@
<?xml version="1.0"?>
<Template author="Mathias Simmack" version="1.0">
<Config
name = "${res:Templates.File.WinFXPageFunction.Name}"
icon = "Icons.32x32.XMLFileIcon"
category = "C#"
subcategory = "WinFX"
defaultname = "PageFunction${Number}.xaml"
language = "XML"/>
<Description>${res:Templates.File.WinFXPageFunction.Name}</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="XML" buildAction="Page"><![CDATA[<PageFunction
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
x:Class="${StandardNamespace}.${FileNameWithoutExtension}"
x:TypeArguments="sys:String"
Title="${FileNameWithoutExtension}">
<Grid>
</Grid>
</PageFunction>]]></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} : PageFunction<String>
{
public ${FileNameWithoutExtension}()
{
InitializeComponent();
}
// The OnLoaded handler can be run automatically when the class is loaded. To use it, add Loaded="OnLoaded" to the attributes of the root element of the .xaml file and uncomment the following line.
// private void OnLoaded(object sender, RoutedEventArgs e) {}
//
// Sample Finish Handler
// private void OnClickDone(object sender, RoutedEventArgs e)
// {
// OnFinish(new ReturnEventArgs<String>("The return value"));
// }
// To launch this page function, put this code in the launching page.
// ${FileNameWithoutExtension} pageFunction = new ${FileNameWithoutExtension}();
// pageFunction.Return += new ReturnEventHandler<String>(On${FileNameWithoutExtension}Returned);
// _NavWin.Navigate(pageFunction);
//
// This handler goes in the launching page.
// public void On${FileNameWithoutExtension}Returned(object sender, ReturnEventArgs<String> e)
// {
// Console.WriteLine("${FileNameWithoutExtension} returned: " + e.Result);
// }
}
}]]></File>
</Files>
<AdditionalOptions/>
</Template>

34
data/templates/file/CSharp/CSharp.WPFResourceDictionary.xft

@ -1,34 +0,0 @@ @@ -1,34 +0,0 @@
<?xml version="1.0"?>
<Template author="Mathias Simmack" version="1.0">
<Config
name = "${res:Templates.File.WinFXResourceDictionary.Name}"
icon = "Icons.32x32.XMLFileIcon"
subcategory = "WinFX"
category = "C#"
defaultname = "Dictionary${Number}.xaml"
language = "XML"/>
<Description>${res:Templates.File.WinFXResourceDictionary.Name}</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="XML" buildAction="Page"><![CDATA[<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
</ResourceDictionary>]]></File>
</Files>
<AdditionalOptions/>
</Template>

64
data/templates/file/CSharp/CSharp.WPFUserControl.xft

@ -1,64 +0,0 @@ @@ -1,64 +0,0 @@
<?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>

67
data/templates/file/CSharp/CSharp.WPFWindow.xft

@ -1,67 +0,0 @@ @@ -1,67 +0,0 @@
<?xml version="1.0"?>
<Template author="Mathias Simmack" version="1.0">
<Config
name = "${res:Templates.File.WinFXWindow.Name}"
icon = "Icons.32x32.XMLFileIcon"
category = "C#"
subcategory = "WinFX"
defaultname = "Window${Number}.xaml"
language = "C#"/>
<Description>${res:Templates.File.WinFXWindow.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="XML" buildAction="Page"><![CDATA[<Window x:Class="${StandardNamespace}.${FileNameWithoutExtension}"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="${StandardNamespace}" Height="300" Width="300"
>
<Grid>
</Grid>
</Window>]]></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.Shapes;
namespace ${StandardNamespace}
{
/// <summary>
/// Interaction logic for ${FileName}
/// </summary>
public partial class ${FileNameWithoutExtension} : Window
{
public ${FileNameWithoutExtension}()
{
InitializeComponent();
}
}
}]]></File>
</Files>
<AdditionalOptions/>
</Template>

175
data/templates/project/CSharp/WPFApplication.xpt

@ -1,175 +0,0 @@ @@ -1,175 +0,0 @@
<?xml version="1.0"?>
<Template originator = "Mathias Simmack"
created = "26/10/2005"
lastModified = "02/06/2006">
<!-- Template Header -->
<TemplateConfiguration>
<Name>${res:Templates.Project.WinFXApplication.Name}</Name>
<Category>C#</Category>
<Subcategory>WinFX</Subcategory>
<Icon>C#.Project.Form</Icon>
<LanguageName>C#</LanguageName>
<Description>${res:Templates.Project.WinFXApplication.Description}</Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
</Actions>
<Combine name = "${ProjectName}" directory = ".">
<Options>
<StartupProject>${ProjectName}</StartupProject>
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options OutputType = "WinExe" />
<ProjectItems>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="UIAutomationProvider" />
<Reference Include="UIAutomationTypes" />
<Reference Include="ReachFramework" />
<Reference Include="System.Printing" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.IdentityModel" />
</ProjectItems>
<Imports>
<Import Project="$(MSBuildBinPath)\Microsoft.WinFX.targets" />
</Imports>
<Files>
<File name="App.xaml" buildAction="ApplicationDefinition" language="XML"><![CDATA[<Application x:Class="${StandardNamespace}.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Window1.xaml"
>
<Application.Resources>
</Application.Resources>
</Application>]]></File>
<File name="App.xaml.cs" subType="Code" dependentUpon="App.xaml"><![CDATA[using System;
using System.Windows;
using System.Data;
using System.Xml;
using System.Configuration;
namespace ${StandardNamespace}
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
public App()
{
InitializeComponent();
}
}
}]]></File>
<File name="Window1.xaml" buildAction="Page" language="XML"><![CDATA[<Window x:Class="${StandardNamespace}.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="${StandardNamespace}" Height="300" Width="300"
>
<Grid>
</Grid>
</Window>]]></File>
<File name="Window1.xaml.cs" subType="Code" dependentUpon="Window1.xaml"><![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.Shapes;
namespace ${StandardNamespace}
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
}
}]]></File>
<File name="AssemblyInfo.cs"><![CDATA[#region Using directives
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Resources;
using System.Globalization;
using System.Windows;
using System.Runtime.InteropServices;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("${StandardNamespace}")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("${StandardNamespace}")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]]]></File>
</Files>
</Project>
</Combine>
</Template>

174
data/templates/project/CSharp/WPFNavigationApplication.xpt

@ -1,174 +0,0 @@ @@ -1,174 +0,0 @@
<?xml version="1.0"?>
<Template originator = "Mathias Simmack"
created = "26/10/2005"
lastModified = "02/06/2006">
<!-- Template Header -->
<TemplateConfiguration>
<Name>${res:Templates.Project.WinFXNavigationApplication.Name}</Name>
<Category>C#</Category>
<Subcategory>WinFX</Subcategory>
<Icon>C#.Project.Form</Icon>
<LanguageName>C#</LanguageName>
<Description>${res:Templates.Project.WinFXNavigationApplication.Description}</Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
</Actions>
<Combine name = "${ProjectName}" directory = ".">
<Options>
<StartupProject>${ProjectName}</StartupProject>
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options OutputType = "WinExe" />
<ProjectItems>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="UIAutomationProvider" />
<Reference Include="UIAutomationTypes" />
<Reference Include="ReachFramework" />
<Reference Include="System.Printing" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.IdentityModel" />
</ProjectItems>
<Imports>
<Import Project="$(MSBuildBinPath)\Microsoft.WinFX.targets" />
</Imports>
<Files>
<File name="App.xaml" buildAction="ApplicationDefinition" language="XML"><![CDATA[<Application x:Class="${StandardNamespace}.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Page1.xaml"
>
<Application.Resources>
</Application.Resources>
</Application>]]></File>
<File name="App.xaml.cs" subType="Code" dependentUpon="App.xaml"><![CDATA[using System;
using System.Windows;
using System.Data;
using System.Xml;
using System.Configuration;
namespace ${StandardNamespace}
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
public App()
{
InitializeComponent();
}
}
}]]></File>
<File name="Page1.xaml" language="XML" buildAction="Page"><![CDATA[<Page x:Class="${StandardNamespace}.Page1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Page1"
>
<StackPanel>
</StackPanel>
</Page>]]></File>
<File name="Page1.xaml.cs" language="C#" dependentUpon="Page1.xaml" 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 Page1.xaml
/// </summary>
public partial class Page1 : Page
{
public Page1()
{
InitializeComponent();
}
}
}]]></File>
<File name="AssemblyInfo.cs"><![CDATA[#region Using directives
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Resources;
using System.Globalization;
using System.Windows;
using System.Runtime.InteropServices;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("${StandardNamespace}")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("${StandardNamespace}")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]]]></File>
</Files>
</Project>
</Combine>
</Template>
Loading…
Cancel
Save