长沙做网站seo优化外包,网站开发采购合同模板下载,西安工作室,长沙创建网络平台费用本例为一个WPF应用#xff08;.NET FrameWork#xff09;。
首先创建一个项目 双击xaml文件
双击xaml文件进入如下界面#xff0c;开始编写代码。 效果如下#xff1a; 付代码#xff1a;
Window x:ClassWpfDemoFW.MainWindowxmlnshttp://schema… 本例为一个WPF应用.NET FrameWork。
首先创建一个项目 双击xaml文件
双击xaml文件进入如下界面开始编写代码。 效果如下 付代码
Window x:ClassWpfDemoFW.MainWindowxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:dhttp://schemas.microsoft.com/expression/blend/2008xmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006xmlns:localclr-namespace:WpfDemoFW mc:IgnorabledTitle这是一个WPF的演示 Height550 Width600Grid ShowGridLinesTrue Grid.RowDefinitions RowDefinition Height 30/RowDefinition Height 30/RowDefinition/RowDefinition Height 30/RowDefinition Height 30//Grid.RowDefinitionsStackPanel Grid.Row 0 Grid.Column 0 OrientationHorizontalButton Width 40 Height 20 Content 文件 /Button Width 40 Height 20 Content 编辑 /Button Width 40 Height 20 Content 视图 /Button Width 40 Height 20 Content Git(G) /Button Width 40 Height 20 Content项目 /Button Width 40 Height 20 Content生成 /Button Width 40 Height 20 Content调试 /Button Width 40 Height 20 Content测试 //StackPanelStackPanel Grid.Row 1 Grid.Column 0 OrientationHorizontalButton Width 130 Height 20 ContentMainWindow.xaml HorizontalAlignmentLeft /Button Width 140 Height 20 Content MainWindow.xaml.cs HorizontalAlignmentRight //StackPanelGrid Grid.Row 2 Grid.Column 0 BackgroundCadetBlue Grid.ColumnDefinitions ColumnDefinition Width 70/ColumnDefinition //Grid.ColumnDefinitionsStackPanel Grid.Column 0 Grid.Row 0Button Height 20 Content1/Button Height 20 Content2/Button Height 20 Content3/Button Height 20 Content4//StackPanelRichTextBox Grid.Row 0 Grid.Column 1//GridGrid Grid.Row 3 Grid.Column 0 Grid.ColumnDefinitions ColumnDefinition /ColumnDefinition /ColumnDefinition /ColumnDefinition /ColumnDefinition //Grid.ColumnDefinitionsButton Grid.Column 0 Width 120 Height 20 Content程序包管理器控制台 HorizontalAlignmentLeft /Button Grid.Column 1 Width 120 Height 20 Content输出 HorizontalAlignmentLeft /Button Grid.Column 2 Width 120 Height 20 Content错误列表 HorizontalAlignmentLeft //GridStackPanel Grid.Row 4 Grid.Column 0 OrientationHorizontalButton Width 130 Height 20 Content就绪 HorizontalAlignmentLeft //StackPanel/Grid
/Window