Permalink
Browse files

added VB templates for WPF Applications

  • Loading branch information...
1 parent ff01c46 commit 717006f72b12d2c3ae4e5eea98ae78a31cbc2176 @siegfriedpammer siegfriedpammer committed Oct 27, 2010
@@ -0,0 +1,102 @@
+<?xml version="1.0"?>
+<Template originator = "Siegfried Oleg Pammer" created = "26/10/2010">
+
+ <!-- Template Header -->
+ <TemplateConfiguration>
+ <Name>${res:Templates.Project.WinFXApplication.Name}</Name>
+ <Category>VBNet</Category>
+ <Subcategory>WPF</Subcategory>
+ <Icon>VBNet.Project.Form</Icon>
+ <Description>${res:Templates.Project.WinFXApplication.Description}</Description>
+ <SupportedTargetFrameworks>v3.0;v3.5Client</SupportedTargetFrameworks>
+ </TemplateConfiguration>
+
+ <!-- Actions -->
+ <Actions>
+ <Open filename = "Window1.xaml"/>
+ </Actions>
+
+ <Project language = "VBNet">
+ <ProjectItems>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="PresentationCore">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="PresentationFramework">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="WindowsBase">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ </ProjectItems>
+
+ <PropertyGroup>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <MyType>Custom</MyType>
+ </PropertyGroup>
+
+ <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.vb" SubType="Code" DependentUpon="App.xaml"><![CDATA[${StandardHeader.VBNET}
+Imports System
+Imports System.Windows
+Imports System.Data
+Imports System.Xml
+Imports System.Configuration
+
+Namespace ${StandardNamespace}
+ ''' <summary>
+ ''' Interaction logic for App.xaml
+ ''' </summary>
+ Public Partial Class App
+ Inherits Application
+
+ End Class
+End Namespace]]></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.vb" SubType="Code" DependentUpon="Window1.xaml"><![CDATA[${StandardHeader.VBNET}
+Imports System
+Imports System.Collections.Generic
+Imports System.Text
+Imports System.Windows
+Imports System.Windows.Controls
+Imports System.Windows.Data
+Imports System.Windows.Documents
+Imports System.Windows.Input
+Imports System.Windows.Media
+
+Namespace ${StandardNamespace}
+ ''' <summary>
+ ''' Interaction logic for Window1.xaml
+ ''' </summary>
+ Public Partial Class Window1
+ Inherits Window
+
+ Public Sub New()
+ InitializeComponent()
+ End Sub
+ End Class
+End Namespace]]></File>
+ <File name="Properties\WPFAssemblyInfo.vb" src="WPFAssemblyInfo.vb" />
+ <File name="Properties\AssemblyInfo.vb" src="DefaultAssemblyInfo.vb" />
+ </Files>
+ </Project>
+</Template>
@@ -0,0 +1,25 @@
+#Region "Imports directives"
+
+Imports System.Resources
+Imports System.Windows
+
+#End Region
+
+
+
+' In order to begin building localizable applications, set
+' <UICulture>CultureYouAreCodingWith</UICulture> in your .vbproj 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)>
+
+' themeDictionaryLocation = where theme specific resource dictionaries are located
+' (used if a resource is not found in the page,
+' or application resource dictionaries)
+' genericDictionaryLocation = where the generic resource dictionary is located
+' (used if a resource is not found in the page,
+' app, or any theme specific resource dictionaries)
+<Assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)>
@@ -0,0 +1,106 @@
+<?xml version="1.0"?>
+<Template originator = "Siegfried Oleg Pammer" created = "26/10/2010">
+
+ <!-- Template Header -->
+ <TemplateConfiguration>
+ <Name>${res:Templates.Project.WinFXNavigationApplication.Name}</Name>
+ <Category>VBNet</Category>
+ <Subcategory>WPF</Subcategory>
+ <Icon>VBNet.Project.Form</Icon>
+ <Description>${res:Templates.Project.WinFXNavigationApplication.Description}</Description>
+ <SupportedTargetFrameworks>v3.0;v3.5Client</SupportedTargetFrameworks>
+ </TemplateConfiguration>
+
+ <!-- Actions -->
+ <Actions>
+ <Open filename = "Page1.xaml"/>
+ </Actions>
+
+ <Project language = "VBNet">
+ <ProjectItems>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="PresentationCore">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="PresentationFramework">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="WindowsBase">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ </ProjectItems>
+
+ <PropertyGroup>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <MyType>Custom</MyType>
+ </PropertyGroup>
+
+ <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.vb" SubType="Code" DependentUpon="App.xaml"><![CDATA[${StandardHeader.VBNET}
+Imports System
+Imports System.Windows
+Imports System.Data
+Imports System.Xml
+Imports System.Configuration
+
+Namespace ${StandardNamespace}
+ ''' <summary>
+ ''' Interaction logic for App.xaml
+ ''' </summary>
+ Public Partial Class App
+ Inherits Application
+
+ End Class
+End Namespace]]></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"
+ >
+ <Grid>
+
+ </Grid>
+</Page>]]></File>
+ <File name="Page1.xaml.vb" language="VBNet" DependentUpon="Page1.xaml" SubType="Code"><![CDATA[${StandardHeader.VBNET}
+Imports System
+Imports System.Collections.Generic
+Imports System.Text
+Imports System.Windows
+Imports System.Windows.Controls
+Imports System.Windows.Data
+Imports System.Windows.Documents
+Imports System.Windows.Input
+Imports System.Windows.Media
+Imports System.Windows.Media.Imaging
+Imports System.Windows.Navigation
+Imports System.Windows.Shapes
+
+Namespace ${StandardNamespace}
+ /// <summary>
+ /// Interaction logic for Page1.xaml
+ /// </summary>
+ Public Partial Class Page1
+ Inherits Page
+
+ Public Sub New()
+ InitializeComponent()
+ End Sub
+ End Class
+End Namespace]]></File>
+ <File name="Properties\AssemblyInfo.vb" src="DefaultAssemblyInfo.vb" />
+ <File name="Properties\WPFAssemblyInfo.vb" src="WPFAssemblyInfo.vb" />
+ </Files>
+ </Project>
+</Template>

0 comments on commit 717006f

Please sign in to comment.