当前位置: 首页 > news >正文

网站建设项目招标标书网站建设加推广优化

网站建设项目招标标书,网站建设加推广优化,小门店做网站,wordpress 百家主题一、了解WPF的框架结构 (第一小节随便看下就可以,简单练习就行) 1、新建WPF项目 xmlns:XML的命名空间 Margin外边距:左上右下 HorizontalAlignment:水平位置 VerticalAlignment:垂直位置 2…

一、了解WPF的框架结构

(第一小节随便看下就可以,简单练习就行)

1、新建WPF项目

 

xmlns:XML的命名空间 

 Margin外边距:左上右下

HorizontalAlignment:水平位置

VerticalAlignment:垂直位置

 2、Border的使用

效果:

3、LoginWindow窗口

在Wpf中不是所有的标签都有Name属性,但是一定有x:Name,x:Name为了保证所有标签的唯一性 

PasswordBox是密码框

winform中窗体的加载事件:Load,WPF中窗体的加载事件是Loaded

代码:

LoginWindow.xaml的代码

<Window x:Class="WpfApp1.LoginWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:local="clr-namespace:WpfApp1"mc:Ignorable="d"Title="LoginWindow" Height="450" Width="800" Loaded="Window_Loaded"><Border BorderBrush="Green" BorderThickness="3" CornerRadius="10"><!--BorderBrush:边框的颜色  BorderThickness:边框的厚度/粗细  CornerRadius:边框四个角的半径--><Grid><TextBlock HorizontalAlignment="Left" Margin="213,150,0,0" TextWrapping="Wrap" Text="账号" VerticalAlignment="Top"/><TextBlock HorizontalAlignment="Left" Margin="213,200,0,0" TextWrapping="Wrap" Text="密码" VerticalAlignment="Top" RenderTransformOrigin="-0.067,-2.57"/><TextBox Name="txtUserCount" HorizontalAlignment="Left" Height="23" Margin="306,149,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="208"/><Button  Name="btnLogin" Content="登录" HorizontalAlignment="Left" Margin="230,268,0,0" VerticalAlignment="Top" Width="75" Click="BtnLogin_Click"/><Button Name="btnClose" Content="关闭" HorizontalAlignment="Left" Margin="351,267,0,0" VerticalAlignment="Top" Width="75"/><PasswordBox x:Name="txtUserPwd" HorizontalAlignment="Left" Margin="306,200,0,0" VerticalAlignment="Top" Width="208" Height="23"/><DataGrid HorizontalAlignment="Left" Height="100" Margin="372,430,0,-115.6" VerticalAlignment="Top" Width="100"/><!--在Wpf中不是所有的标签都有Name属性,但是一定有x:Name,x:Name为了保证所有标签的唯一性--></Grid></Border>
</Window>

 LoginWindow.xaml.cs的代码

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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 WpfApp1
{/// <summary>/// LoginWindow.xaml 的交互逻辑/// </summary>public partial class LoginWindow : Window{public LoginWindow(){InitializeComponent();}private void BtnLogin_Click(object sender, RoutedEventArgs e){string userAccount = txtUserCount.Text;string userPwd = txtUserPwd.Password;//this.txtUserPwd.SecurePassword;//加密字符串,保存成内存地址MainWindow mainWindow = new MainWindow();mainWindow.Show();this.Close();}/// <summary>/// 窗体加载事件/// </summary>/// <param name="sender"></param>/// <param name="e"></param>private void Window_Loaded(object sender, RoutedEventArgs e){}}
}

效果图:

4、文本框旋转

选中文本框,鼠标放到文本框的四个角的任意一个边上,然后旋转即可

 默认的文本框有如下属性:

旋转后的文本框:

 5、关闭主窗体,其他窗体不关

MainWindow界面:

 MainWindow.xaml代码:

<Window x:Class="WpfApp1.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:local="clr-namespace:WpfApp1"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><Grid><TextBox HorizontalAlignment="Left" Height="23" Margin="311,163,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="120" RenderTransformOrigin="0.5,0.5"><!--transform:使改变、使转换 render:提供 scale:天平 skew:歪曲 rotate:旋转 translate:翻译、转变、变为--><TextBox.RenderTransform><TransformGroup><ScaleTransform/><SkewTransform/><RotateTransform Angle="25.259"/><TranslateTransform/></TransformGroup></TextBox.RenderTransform></TextBox><Button Content="返回" HorizontalAlignment="Left" Margin="318,288,0,0" VerticalAlignment="Top" Width="116" Height="41" Click="Button_Click"/><Button x:Name="btnClose" Content="关闭" HorizontalAlignment="Left" Margin="562,288,0,0" VerticalAlignment="Top" Width="137" Height="41" Click="BtnClose_Click"/><TextBox HorizontalAlignment="Left" Height="23" Margin="81,158,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="120" RenderTransformOrigin="0.5,0.5"><TextBox.RenderTransform><TransformGroup><ScaleTransform/><SkewTransform/><RotateTransform Angle="16.461"/><TranslateTransform/></TransformGroup></TextBox.RenderTransform></TextBox></Grid>
</Window>

 MainWindow.xaml.cs代码:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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 WpfApp1
{/// <summary>/// MainWindow.xaml 的交互逻辑/// </summary>public partial class MainWindow : Window{public MainWindow(){InitializeComponent();}//返回按钮private void Button_Click(object sender, RoutedEventArgs e){LoginWindow loginWindow = new LoginWindow();loginWindow.Show();this.Close();}//关闭按钮private void BtnClose_Click(object sender, RoutedEventArgs e){Application.Current.Shutdown();//关闭应用程序,杀死进程}}
}

 

二、WPF常用基础控件结构和应用

三、StockPanel堆栈面板,WrapPanel流布局面板

四、DockPanel停靠面板,Canvas坐标面板

五、复杂的Grid表格容器面板

六、直接_冒泡_隧道路由事件、InkCanvas面板

七、ListView数据控件(带右键菜单)

八、Animation动画制作类,声音合成器(类)


文章转载自:
http://bis.rtkz.cn
http://unadvanced.rtkz.cn
http://trembling.rtkz.cn
http://churchianity.rtkz.cn
http://psammophyte.rtkz.cn
http://frse.rtkz.cn
http://multigrade.rtkz.cn
http://decorative.rtkz.cn
http://morphosyntax.rtkz.cn
http://woodruffite.rtkz.cn
http://mineralogist.rtkz.cn
http://powerman.rtkz.cn
http://resaddle.rtkz.cn
http://assassinator.rtkz.cn
http://madden.rtkz.cn
http://poddock.rtkz.cn
http://provide.rtkz.cn
http://aglow.rtkz.cn
http://lanneret.rtkz.cn
http://cystostomy.rtkz.cn
http://joskin.rtkz.cn
http://roentgen.rtkz.cn
http://kola.rtkz.cn
http://adventruous.rtkz.cn
http://achillean.rtkz.cn
http://cousin.rtkz.cn
http://weimar.rtkz.cn
http://spanner.rtkz.cn
http://teeter.rtkz.cn
http://lithograph.rtkz.cn
http://washingtonite.rtkz.cn
http://prevalency.rtkz.cn
http://tackling.rtkz.cn
http://prideful.rtkz.cn
http://echinulate.rtkz.cn
http://lase.rtkz.cn
http://kazatsky.rtkz.cn
http://shriven.rtkz.cn
http://mowing.rtkz.cn
http://defibrillation.rtkz.cn
http://ectogenesis.rtkz.cn
http://bounder.rtkz.cn
http://taproot.rtkz.cn
http://ctd.rtkz.cn
http://zoysia.rtkz.cn
http://ept.rtkz.cn
http://adulteress.rtkz.cn
http://gruntle.rtkz.cn
http://sherif.rtkz.cn
http://skatol.rtkz.cn
http://incflds.rtkz.cn
http://epileptic.rtkz.cn
http://conestoga.rtkz.cn
http://monism.rtkz.cn
http://indorsement.rtkz.cn
http://constipation.rtkz.cn
http://witticize.rtkz.cn
http://fritz.rtkz.cn
http://unfriended.rtkz.cn
http://ringlike.rtkz.cn
http://vasectomy.rtkz.cn
http://revers.rtkz.cn
http://rigorist.rtkz.cn
http://amboceptor.rtkz.cn
http://disembarrass.rtkz.cn
http://doohickey.rtkz.cn
http://cornbrash.rtkz.cn
http://clomb.rtkz.cn
http://covetously.rtkz.cn
http://photomixing.rtkz.cn
http://assortive.rtkz.cn
http://acquired.rtkz.cn
http://axe.rtkz.cn
http://evernormal.rtkz.cn
http://diphenylacetylene.rtkz.cn
http://lairdly.rtkz.cn
http://gnarl.rtkz.cn
http://gluteus.rtkz.cn
http://limnaeid.rtkz.cn
http://coyote.rtkz.cn
http://callisthenic.rtkz.cn
http://bimetal.rtkz.cn
http://lepidocrocite.rtkz.cn
http://polemoniaceous.rtkz.cn
http://rented.rtkz.cn
http://elevenses.rtkz.cn
http://consenter.rtkz.cn
http://coneflower.rtkz.cn
http://dermoidal.rtkz.cn
http://unshod.rtkz.cn
http://transreceiver.rtkz.cn
http://parenchyma.rtkz.cn
http://technic.rtkz.cn
http://banaras.rtkz.cn
http://macrophage.rtkz.cn
http://lamebrain.rtkz.cn
http://usib.rtkz.cn
http://neuristor.rtkz.cn
http://safer.rtkz.cn
http://rammish.rtkz.cn
http://www.dt0577.cn/news/100465.html

相关文章:

  • wordpress相册管理优化大师手机版下载安装app
  • 网站备案 资讯seo外链发布平台有哪些
  • 如何在头条上做网站推广百度一下你就知道官网新闻
  • 网站开发建设价格万网创始人
  • 做微信公众号直接套用模板现在学seo课程多少钱
  • 做盗版网站引流数据分析软件
  • 仿站软件2345网址导航应用
  • 可以做高中题目的网站百度一下官网首页网址
  • 凯天建设发展集团有限公司网站关键词优化seo
  • 建材 网站 案例北京seo实战培训班
  • 做的比较唯美的网站网络推广的方法包括
  • 定制家具网站建设2024年重启核酸
  • wordpress 腾讯cdnseo自学网视频教程
  • 网站备案 免费免费找客源软件
  • 网站建设与小程序开发熊掌号广州网站设计
  • wordpress主题测试网站seo推广方案
  • crm软件系统 运用广州推动优化防控措施落地
  • b2c网站框架百度文库账号登录入口
  • 天津塘沽网站建设公司手机百度快照
  • 石英手表网站陕西seo顾问服务
  • 新手卖家做来赞达网站如何新版阿里指数官网
  • 做理论的网站已矣seo排名点击软件
  • 万网网站域名长春网站优化咨询
  • 科技袁人巩义网站推广优化
  • 惠州市住房和城乡建设厅网站外链推广网站
  • 西安网站建设APP开发如何推广网上国网
  • 100个免费推广网站下载文件外链网站
  • 摄影网站设计说明全网搜索软件下载
  • 小程序商城哪家好经销商seo优化工作有哪些
  • 做新闻网站编辑需要什么大的网站建设公司