⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csharp.wpfpagefunction.xft

📁 SharpDevelop2.0.0 c#开发免费工具
💻 XFT
字号:
<?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>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -