ソースを参照

整理了一个可编辑panel控件

yuzhengyang 8 年 前
コミット
7cf574cc63

+ 12 - 0
Fork.Net/Fork.Net.sln

@@ -9,6 +9,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Y.Utils", "Y.Utils\Y.Utils.
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Y.Controls", "Y.Controls\Y.Controls.csproj", "{E10EC8D2-22E2-4387-9D9B-36A5429B67C1}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Y.Skin", "Y.Skin\Y.Skin.csproj", "{E9A97673-3E27-4A49-90BC-8806411A2F57}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Y.Test", "Y.Test\Y.Test.csproj", "{E1897235-0E04-420D-B6D5-29BEA14DA1FD}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -27,6 +31,14 @@ Global
 		{E10EC8D2-22E2-4387-9D9B-36A5429B67C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{E10EC8D2-22E2-4387-9D9B-36A5429B67C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{E10EC8D2-22E2-4387-9D9B-36A5429B67C1}.Release|Any CPU.Build.0 = Release|Any CPU
+		{E9A97673-3E27-4A49-90BC-8806411A2F57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{E9A97673-3E27-4A49-90BC-8806411A2F57}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{E9A97673-3E27-4A49-90BC-8806411A2F57}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{E9A97673-3E27-4A49-90BC-8806411A2F57}.Release|Any CPU.Build.0 = Release|Any CPU
+		{E1897235-0E04-420D-B6D5-29BEA14DA1FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{E1897235-0E04-420D-B6D5-29BEA14DA1FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{E1897235-0E04-420D-B6D5-29BEA14DA1FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{E1897235-0E04-420D-B6D5-29BEA14DA1FD}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

+ 36 - 0
Fork.Net/Y.Skin/Properties/AssemblyInfo.cs

@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("Y.Skin")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Y.Skin")]
+[assembly: AssemblyCopyright("Copyright ©  2017")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+//将 ComVisible 设置为 false 将使此程序集中的类型
+//对 COM 组件不可见。  如果需要从 COM 访问此程序集中的类型,
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("e9a97673-3e27-4a49-90bc-8806411a2f57")]
+
+// 程序集的版本信息由下列四个值组成: 
+//
+//      主版本
+//      次版本
+//      生成号
+//      修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
+// 方法是按如下所示使用“*”: :
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 64 - 0
Fork.Net/Y.Skin/Y.Skin.csproj

@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{E9A97673-3E27-4A49-90BC-8806411A2F57}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Y.Skin</RootNamespace>
+    <AssemblyName>Y.Skin</AssemblyName>
+    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml.Linq" />
+    <Reference Include="System.Data.DataSetExtensions" />
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Net.Http" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="YoPanel\FlexiblePanel.cs">
+      <SubType>Component</SubType>
+    </Compile>
+    <Compile Include="YoPanel\FlexiblePanel.Designer.cs">
+      <DependentUpon>FlexiblePanel.cs</DependentUpon>
+    </Compile>
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="YoForm\IrregularForm\" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>

+ 35 - 0
Fork.Net/Y.Skin/YoPanel/FlexiblePanel.Designer.cs

@@ -0,0 +1,35 @@
+namespace Y.Skin.YoPanel
+{
+    partial class FlexiblePanel
+    {
+        /// <summary> 
+        /// 必需的设计器变量。
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+        /// <summary> 
+        /// 清理所有正在使用的资源。
+        /// </summary>
+        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region 组件设计器生成的代码
+
+        /// <summary> 
+        /// 设计器支持所需的方法 - 不要修改
+        /// 使用代码编辑器修改此方法的内容。
+        /// </summary>
+        private void InitializeComponent()
+        {
+            components = new System.ComponentModel.Container();
+        }
+
+        #endregion
+    }
+}

+ 334 - 0
Fork.Net/Y.Skin/YoPanel/FlexiblePanel.cs

@@ -0,0 +1,334 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using System.Xml;
+using System.IO;
+
+namespace Y.Skin.YoPanel
+{
+    public partial class FlexiblePanel : Panel
+    {
+        //Color HighlightColor = ColorTranslator.FromHtml("#78c4ec");
+        Color HighlightColor = Color.Transparent;
+
+        /// <summary>
+        /// 光标状态
+        /// </summary>
+        private enum EnumMousePointPosition
+        {
+            MouseSizeNone = 0, //'无   
+            MouseSizeRight = 1, //'拉伸右边框   
+            MouseSizeLeft = 2, //'拉伸左边框   
+            MouseSizeBottom = 3, //'拉伸下边框   
+            MouseSizeTop = 4, //'拉伸上边框   
+            MouseSizeTopLeft = 5, //'拉伸左上角   
+            MouseSizeTopRight = 6, //'拉伸右上角   
+            MouseSizeBottomLeft = 7, //'拉伸左下角   
+            MouseSizeBottomRight = 8, //'拉伸右下角   
+            MouseDrag = 9   // '鼠标拖动   
+        }
+        #region 属性
+        private static string xmlDocPath = AppDomain.CurrentDomain.BaseDirectory + @"\Layout.xml";
+        private XmlDocument doc;
+        private const int Band = 5;
+        private const int MinWidth = 10;
+        private const int MinHeight = 10;
+        private EnumMousePointPosition m_MousePointPosition;
+        private Point p, p1;
+        #endregion
+        public FlexiblePanel()
+        {
+            SetStyle(ControlStyles.UserPaint, true);
+            SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景.  
+            SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲  
+            InitializeComponent();
+        }
+
+        #region 改变控件大小和移动位置用到的方法
+
+
+
+        private void MyMouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
+        {
+            p.X = e.X;
+            p.Y = e.Y;
+            p1.X = e.X;
+            p1.Y = e.Y;
+        }
+        /// <summary>
+        /// 鼠标离开事件需要改进
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void MyMouseLeave(object sender, EventArgs e)
+        {
+            if (doc == null)
+                doc = new XmlDocument();
+
+            Control s = (Control)sender;
+
+            XmlNodeList nodes = doc.GetElementsByTagName(s.Name);
+            XmlElement xn;
+            if (nodes.Count != 1)
+            {
+                xn = doc.CreateElement(s.Name);
+            }
+            else
+            {
+                xn = (XmlElement)doc.GetElementsByTagName(s.Name)[0];
+            }
+            xn.SetAttribute("Top", s.Top.ToString());
+            xn.SetAttribute("Left", s.Left.ToString());
+            xn.SetAttribute("Width", s.Width.ToString());
+            xn.SetAttribute("Height", s.Height.ToString());
+
+
+            XmlNodeList xnl = doc.GetElementsByTagName(this.Name);
+            XmlElement xnp;
+            if (xnl.Count < 1)
+            {
+                xnp = doc.CreateElement(this.Name);
+            }
+            else
+            {
+                xnp = (XmlElement)xnl[0];
+            }
+            xnp.AppendChild(xn);
+            doc.AppendChild(xnp);
+            doc.Save(xmlDocPath);
+
+            m_MousePointPosition = EnumMousePointPosition.MouseSizeNone;
+            this.Cursor = Cursors.Arrow;
+            //((Control)sender).BackColor = Color.Transparent;
+        }
+
+        private EnumMousePointPosition MousePointPosition(Size size, System.Windows.Forms.MouseEventArgs e)
+        {
+
+            if ((e.X >= -1 * Band) | (e.X <= size.Width) | (e.Y >= -1 * Band) | (e.Y <= size.Height))
+            {
+                if (e.X < Band)
+                {
+                    if (e.Y < Band) { return EnumMousePointPosition.MouseSizeTopLeft; }
+                    else
+                    {
+                        if (e.Y > -1 * Band + size.Height)
+                        { return EnumMousePointPosition.MouseSizeBottomLeft; }
+                        else
+                        { return EnumMousePointPosition.MouseSizeLeft; }
+                    }
+                }
+                else
+                {
+                    if (e.X > -1 * Band + size.Width)
+                    {
+                        if (e.Y < Band)
+                        { return EnumMousePointPosition.MouseSizeTopRight; }
+                        else
+                        {
+                            if (e.Y > -1 * Band + size.Height)
+                            { return EnumMousePointPosition.MouseSizeBottomRight; }
+                            else
+                            { return EnumMousePointPosition.MouseSizeRight; }
+                        }
+                    }
+                    else
+                    {
+                        if (e.Y < Band)
+                        { return EnumMousePointPosition.MouseSizeTop; }
+                        else
+                        {
+                            if (e.Y > -1 * Band + size.Height)
+                            { return EnumMousePointPosition.MouseSizeBottom; }
+                            else
+                            { return EnumMousePointPosition.MouseDrag; }
+                        }
+                    }
+                }
+            }
+            else
+            { return EnumMousePointPosition.MouseSizeNone; }
+        }
+        private void MyMouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
+        {
+            Control lCtrl = (sender as Control);
+
+            if (e.Button == MouseButtons.Left)
+            {
+                switch (m_MousePointPosition)
+                {
+                    case EnumMousePointPosition.MouseDrag:
+                        lCtrl.Left = lCtrl.Left + e.X - p.X;
+                        lCtrl.Top = lCtrl.Top + e.Y - p.Y;
+                        break;
+                    case EnumMousePointPosition.MouseSizeBottom:
+                        lCtrl.Height = lCtrl.Height + e.Y - p1.Y;
+                        p1.X = e.X;
+                        p1.Y = e.Y; //'记录光标拖动的当前点   
+                        break;
+                    case EnumMousePointPosition.MouseSizeBottomRight:
+                        lCtrl.Width = lCtrl.Width + e.X - p1.X;
+                        lCtrl.Height = lCtrl.Height + e.Y - p1.Y;
+                        p1.X = e.X;
+                        p1.Y = e.Y; //'记录光标拖动的当前点   
+                        break;
+                    case EnumMousePointPosition.MouseSizeRight:
+                        lCtrl.Width = lCtrl.Width + e.X - p1.X;
+                        //       lCtrl.Height = lCtrl.Height + e.Y - p1.Y;   
+                        p1.X = e.X;
+                        p1.Y = e.Y; //'记录光标拖动的当前点   
+                        break;
+                    case EnumMousePointPosition.MouseSizeTop:
+                        lCtrl.Top = lCtrl.Top + (e.Y - p.Y);
+                        lCtrl.Height = lCtrl.Height - (e.Y - p.Y);
+                        break;
+                    case EnumMousePointPosition.MouseSizeLeft:
+                        lCtrl.Left = lCtrl.Left + e.X - p.X;
+                        lCtrl.Width = lCtrl.Width - (e.X - p.X);
+                        break;
+                    case EnumMousePointPosition.MouseSizeBottomLeft:
+                        lCtrl.Left = lCtrl.Left + e.X - p.X;
+                        lCtrl.Width = lCtrl.Width - (e.X - p.X);
+                        lCtrl.Height = lCtrl.Height + e.Y - p1.Y;
+                        p1.X = e.X;
+                        p1.Y = e.Y; //'记录光标拖动的当前点   
+                        break;
+                    case EnumMousePointPosition.MouseSizeTopRight:
+                        lCtrl.Top = lCtrl.Top + (e.Y - p.Y);
+                        lCtrl.Width = lCtrl.Width + (e.X - p1.X);
+                        lCtrl.Height = lCtrl.Height - (e.Y - p.Y);
+                        p1.X = e.X;
+                        p1.Y = e.Y; //'记录光标拖动的当前点   
+                        break;
+                    case EnumMousePointPosition.MouseSizeTopLeft:
+                        lCtrl.Left = lCtrl.Left + e.X - p.X;
+                        lCtrl.Top = lCtrl.Top + (e.Y - p.Y);
+                        lCtrl.Width = lCtrl.Width - (e.X - p.X);
+                        lCtrl.Height = lCtrl.Height - (e.Y - p.Y);
+                        break;
+                    default:
+                        break;
+                }
+                if (lCtrl.Width < MinWidth) lCtrl.Width = MinWidth;
+                if (lCtrl.Height < MinHeight) lCtrl.Height = MinHeight;
+
+            }
+            else
+            {
+                m_MousePointPosition = MousePointPosition(lCtrl.Size, e);   //'判断光标的位置状态   
+                switch (m_MousePointPosition)   //'改变光标   
+                {
+                    case EnumMousePointPosition.MouseSizeNone:
+                        this.Cursor = Cursors.Arrow;        //'箭头  
+                        break;
+                    case EnumMousePointPosition.MouseDrag:
+                        this.Cursor = Cursors.SizeAll;      //'四方向   
+                        //((Control)sender).BackColor = HighlightColor;
+                        break;
+                    case EnumMousePointPosition.MouseSizeBottom:
+                        this.Cursor = Cursors.SizeNS;       //'南北   
+                        break;
+                    case EnumMousePointPosition.MouseSizeTop:
+                        this.Cursor = Cursors.SizeNS;       //'南北   
+                        break;
+                    case EnumMousePointPosition.MouseSizeLeft:
+                        this.Cursor = Cursors.SizeWE;       //'东西   
+                        break;
+                    case EnumMousePointPosition.MouseSizeRight:
+                        this.Cursor = Cursors.SizeWE;       //'东西   
+                        break;
+                    case EnumMousePointPosition.MouseSizeBottomLeft:
+                        this.Cursor = Cursors.SizeNESW;     //'东北到南西   
+                        break;
+                    case EnumMousePointPosition.MouseSizeBottomRight:
+                        this.Cursor = Cursors.SizeNWSE;     //'东南到西北   
+                        break;
+                    case EnumMousePointPosition.MouseSizeTopLeft:
+                        this.Cursor = Cursors.SizeNWSE;     //'东南到西北   
+                        break;
+                    case EnumMousePointPosition.MouseSizeTopRight:
+                        this.Cursor = Cursors.SizeNESW;     //'东北到南西   
+                        break;
+                    default:
+                        break;
+                }
+            }
+
+        }
+
+
+        #endregion
+
+        #region 初始化鼠标事件委托和控件大小和移动
+        private void initProperty()
+        {
+            for (int i = 0; i < this.Controls.Count; i++)
+            {
+                this.Controls[i].MouseDown += new System.Windows.Forms.MouseEventHandler(MyMouseDown);
+                this.Controls[i].MouseLeave += new System.EventHandler(MyMouseLeave);
+                this.Controls[i].MouseMove += new System.Windows.Forms.MouseEventHandler(MyMouseMove);
+            }
+
+        }
+        private void initStyle()
+        {
+            Control s;
+            for (int i = 0; i < this.Controls.Count; i++)
+            {
+                s = this.Controls[i];
+                XmlNodeList nodes = doc.GetElementsByTagName(s.Name);
+                if (nodes.Count == 1)
+                {
+                    XmlAttributeCollection xac = nodes[0].Attributes;
+                    foreach (XmlAttribute xa in xac)
+                    {
+                        if (xa.Value == "")
+                            continue;
+                        switch (xa.Name)
+                        {
+                            case "Top":
+                                var Top = Convert.ToInt32(xa.Value);
+                                //if (Top > 0 && Top < this.Height - s.Height)
+                                s.Top = Top;
+                                break;
+                            case "Left":
+                                var Left = Convert.ToInt32(xa.Value);
+                                //if (Left > 0 && Left < this.Width - s.Width)
+                                s.Left = Left;
+                                break;
+                            case "Width":
+                                s.Width = Convert.ToInt32(xa.Value);
+                                break;
+                            case "Height":
+                                s.Height = Convert.ToInt32(xa.Value);
+                                break;
+                            default:
+                                break;
+                        }
+                    }
+                }
+            }
+        }
+        #endregion
+        /// <summary>
+        /// 用于实现容器内控件移动和改变大小的方法
+        /// </summary>
+        /// <param name="XmlDoc">用于保存控件的属性的XML文档</param>
+        public void InitMouseAndContolStyle()
+        {
+            initProperty();
+            if (File.Exists(xmlDocPath))
+            {
+                doc = new XmlDocument();
+                doc.Load(xmlDocPath);
+                initStyle();
+            }
+        }
+    }
+}

+ 6 - 0
Fork.Net/Y.Test/App.config

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
+    </startup>
+</configuration>

+ 98 - 0
Fork.Net/Y.Test/Form1.Designer.cs

@@ -0,0 +1,98 @@
+namespace Y.Test
+{
+    partial class Form1
+    {
+        /// <summary>
+        /// 必需的设计器变量。
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// 清理所有正在使用的资源。
+        /// </summary>
+        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows 窗体设计器生成的代码
+
+        /// <summary>
+        /// 设计器支持所需的方法 - 不要修改
+        /// 使用代码编辑器修改此方法的内容。
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.flexiblePanel1 = new Y.Skin.YoPanel.FlexiblePanel();
+            this.listBox1 = new System.Windows.Forms.ListBox();
+            this.label1 = new System.Windows.Forms.Label();
+            this.button1 = new System.Windows.Forms.Button();
+            this.flexiblePanel1.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // flexiblePanel1
+            // 
+            this.flexiblePanel1.Controls.Add(this.listBox1);
+            this.flexiblePanel1.Controls.Add(this.label1);
+            this.flexiblePanel1.Controls.Add(this.button1);
+            this.flexiblePanel1.Location = new System.Drawing.Point(109, 112);
+            this.flexiblePanel1.Name = "flexiblePanel1";
+            this.flexiblePanel1.Size = new System.Drawing.Size(516, 499);
+            this.flexiblePanel1.TabIndex = 0;
+            // 
+            // listBox1
+            // 
+            this.listBox1.FormattingEnabled = true;
+            this.listBox1.ItemHeight = 12;
+            this.listBox1.Location = new System.Drawing.Point(66, 271);
+            this.listBox1.Name = "listBox1";
+            this.listBox1.Size = new System.Drawing.Size(120, 88);
+            this.listBox1.TabIndex = 2;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Location = new System.Drawing.Point(111, 161);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(41, 12);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "label1";
+            // 
+            // button1
+            // 
+            this.button1.Location = new System.Drawing.Point(111, 69);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(75, 23);
+            this.button1.TabIndex = 0;
+            this.button1.Text = "button1";
+            this.button1.UseVisualStyleBackColor = true;
+            // 
+            // Form1
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1144, 727);
+            this.Controls.Add(this.flexiblePanel1);
+            this.Name = "Form1";
+            this.Text = "Form1";
+            this.Load += new System.EventHandler(this.Form1_Load);
+            this.flexiblePanel1.ResumeLayout(false);
+            this.flexiblePanel1.PerformLayout();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private Skin.YoPanel.FlexiblePanel flexiblePanel1;
+        private System.Windows.Forms.ListBox listBox1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.Button button1;
+    }
+}
+

+ 25 - 0
Fork.Net/Y.Test/Form1.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Y.Test
+{
+    public partial class Form1 : Form
+    {
+        public Form1()
+        {
+            InitializeComponent();
+        }
+
+        private void Form1_Load(object sender, EventArgs e)
+        {
+            flexiblePanel1.InitMouseAndContolStyle();
+        }
+    }
+}

+ 120 - 0
Fork.Net/Y.Test/Form1.resx

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 22 - 0
Fork.Net/Y.Test/Program.cs

@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Y.Test
+{
+    static class Program
+    {
+        /// <summary>
+        /// 应用程序的主入口点。
+        /// </summary>
+        [STAThread]
+        static void Main()
+        {
+            Application.EnableVisualStyles();
+            Application.SetCompatibleTextRenderingDefault(false);
+            Application.Run(new Form1());
+        }
+    }
+}

+ 36 - 0
Fork.Net/Y.Test/Properties/AssemblyInfo.cs

@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("Y.Test")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Y.Test")]
+[assembly: AssemblyCopyright("Copyright ©  2017")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+//将 ComVisible 设置为 false 将使此程序集中的类型
+//对 COM 组件不可见。  如果需要从 COM 访问此程序集中的类型,
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("e1897235-0e04-420d-b6d5-29bea14da1fd")]
+
+// 程序集的版本信息由下列四个值组成: 
+//
+//      主版本
+//      次版本
+//      生成号
+//      修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
+// 方法是按如下所示使用“*”: :
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 71 - 0
Fork.Net/Y.Test/Properties/Resources.Designer.cs

@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     此代码由工具生成。
+//     运行时版本: 4.0.30319.42000
+//
+//     对此文件的更改可能导致不正确的行为,如果
+//     重新生成代码,则所做更改将丢失。
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Y.Test.Properties
+{
+
+
+    /// <summary>
+    ///   强类型资源类,用于查找本地化字符串等。
+    /// </summary>
+    // 此类是由 StronglyTypedResourceBuilder
+    // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+    // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+    // (以 /str 作为命令选项),或重新生成 VS 项目。
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class Resources
+    {
+
+        private static global::System.Resources.ResourceManager resourceMan;
+
+        private static global::System.Globalization.CultureInfo resourceCulture;
+
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal Resources()
+        {
+        }
+
+        /// <summary>
+        ///   返回此类使用的缓存 ResourceManager 实例。
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager
+        {
+            get
+            {
+                if ((resourceMan == null))
+                {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Y.Test.Properties.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+
+        /// <summary>
+        ///   覆盖当前线程的 CurrentUICulture 属性
+        ///   使用此强类型的资源类的资源查找。
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture
+        {
+            get
+            {
+                return resourceCulture;
+            }
+            set
+            {
+                resourceCulture = value;
+            }
+        }
+    }
+}

+ 117 - 0
Fork.Net/Y.Test/Properties/Resources.resx

@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 30 - 0
Fork.Net/Y.Test/Properties/Settings.Designer.cs

@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.42000
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Y.Test.Properties
+{
+
+
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+    {
+
+        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+        public static Settings Default
+        {
+            get
+            {
+                return defaultInstance;
+            }
+        }
+    }
+}

+ 7 - 0
Fork.Net/Y.Test/Properties/Settings.settings

@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+  <Profiles>
+    <Profile Name="(Default)" />
+  </Profiles>
+  <Settings />
+</SettingsFile>

+ 96 - 0
Fork.Net/Y.Test/Y.Test.csproj

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{E1897235-0E04-420D-B6D5-29BEA14DA1FD}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Y.Test</RootNamespace>
+    <AssemblyName>Y.Test</AssemblyName>
+    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Xml.Linq" />
+    <Reference Include="System.Data.DataSetExtensions" />
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Deployment" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Net.Http" />
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Form1.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Form1.Designer.cs">
+      <DependentUpon>Form1.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <EmbeddedResource Include="Form1.resx">
+      <DependentUpon>Form1.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+      <SubType>Designer</SubType>
+    </EmbeddedResource>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\Y.Skin\Y.Skin.csproj">
+      <Project>{E9A97673-3E27-4A49-90BC-8806411A2F57}</Project>
+      <Name>Y.Skin</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>