WPF中做出一个QQ登陆界面
Xaml:
<Window x:Class="ChatSoftware.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:ChatSoftware"
mc:Ignorable="d"
Title="MainWindow" Height="603.659" Width="994.776">
<Window.Resources>
<local:Number x:Key="Key_Number"/>
<local:Fruits x:Key="Key_Fruits"/>
</Window.Resources>
<Grid HorizontalAlignment="Left" Height="" Margin="10,10,0,0" VerticalAlignment="Top" Width="">
<Grid.Background>
<ImageBrush ImageSource="Resources/timg (3).jpg"/>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height=""/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel HorizontalAlignment="Left" Height="" Margin="192,119,0,0" VerticalAlignment="Top" Width="" Grid.Column="">
<Grid Height="" Background="Transparent" Margin="0,0,-100.2,0">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height=""/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width=""/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Image HorizontalAlignment="Left" Height="" Margin="36,36,0,0" Grid.RowSpan="" VerticalAlignment="Top" Width="" Source="Resources/2.jpg" RenderTransformOrigin="0.513,0.666" Stretch="Fill"/>
<ComboBox Background="White" DataContext="{StaticResource Key_Number}" ItemsSource="{Binding Items, Source={StaticResource Key_Number}}" SelectedIndex="" Grid.Column="" HorizontalAlignment="Left" Margin="34,36,0,0" VerticalAlignment="Top" Width="" Height="" Grid.ColumnSpan="" BorderBrush="#FFC0EBCB" IsEditable="True" FontSize=""/>
<CheckBox Content="记住密码" Grid.Column="" HorizontalAlignment="Left" Margin="34,10,0,0" Grid.Row="" VerticalAlignment="Top" Height="" Width="" FontSize="" FontStyle="Oblique" Foreground="#FFD7C73B"/>
<CheckBox Content="自动登陆" Grid.Column="" HorizontalAlignment="Left" Margin="20.8,9.8,0,0" Grid.Row="" VerticalAlignment="Top" Height="" RenderTransformOrigin="0.438,1.063" FontSize="" Foreground="#FF9174BF"/>
<PasswordBox Grid.Column="" MaxLength="" HorizontalAlignment="Left" Margin="34,28,0,0" Grid.Row="" VerticalAlignment="Top" Height="" Grid.ColumnSpan="" Width="" FontSize=""/>
<TextBlock Grid.Column="" HorizontalAlignment="Right" Margin="0,36,9.8,0" TextWrapping="Wrap" Text="" Width="" Height="" VerticalAlignment="Top" FontSize="">
<Hyperlink NavigateUri="http://www.baidu.com" Click="Hyperlink_Click"
>注册账号</Hyperlink>
</TextBlock> </Grid>
</StackPanel>
<Border BorderBrush="Black" BorderThickness="" HorizontalAlignment="Left" Height="" Margin="360,10,0,0" Grid.Row="" VerticalAlignment="Top" Width="" CornerRadius="" Background="{DynamicResource {x:Static SystemColors.ActiveCaptionBrushKey}}">
<Button Background="Transparent" Content="登 陆" FontSize="" Foreground="#FF264515" RenderTransformOrigin="0.477,0.058" Margin="-0.8,-0.8,-1,0" BorderBrush="Transparent"/>
</Border>
<TextBlock HorizontalAlignment="Left" Margin="764,219,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Height="" Width="" Foreground="#FFB8D60D" FontSize="">
<Hyperlink NavigateUri="http://www.baidu.com" Click="Hyperlink_Click"
>找回密码</Hyperlink>
</TextBlock>
</Grid>
</Window>
后台:
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;
using System.Diagnostics; namespace ChatSoftware
{
/// <summary>
/// MainWindow.xaml 的交互逻辑
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent(); } private void Hyperlink_Click(object sender, RoutedEventArgs e)
{
Hyperlink link = sender as Hyperlink; Process.Start(new ProcessStartInfo(link.NavigateUri.AbsoluteUri));
}
} }
Class(Number):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks; namespace ChatSoftware
{
public class Number
{
public Number()
{
Items = new List<string>
{
"",
"",
"",
"",
};
} public List<string> Items { get; set; }
}
}
效果图:

WPF中做出一个QQ登陆界面的更多相关文章
- WPF和Expression Blend开发实例:模拟QQ登陆界面打开和关闭特效
		
不管在消费者的心中腾讯是一个怎么样的模仿者抄袭者的形象,但是腾讯在软件交互上的设计一直是一流的.正如某位已故的知名产品经理所说的:设计并非外观怎样,感觉如何.设计的是产品的工作原理.我觉得腾讯掌握了其 ...
 - Qt 之 模仿 QQ登陆界面——样式篇
		
一.简述 今天晚上花了半天时间从QQ登录界面抠了些图,顺便加了点样式基本上实现了QQ的登陆界面全部效果.虽不说100%相似,那也有99.99%相似了哈O(∩_∩)O. QQ好像从去年开始,登录界面有了 ...
 - WPF开发实例——仿QQ登录界面
		
原文:WPF开发实例--仿QQ登录界面 版权声明:本文为博主原创文章,如需转载请标明转载地址 http://blog.csdn.net/u013981858 https://blog.csdn.net ...
 - [iOS基础控件 - 3.1] QQ登陆界面
		
A.storyboard 控件版 1.label 2.textfield a.Keyboard Type 账号:Number Pad 密码:Num ...
 - 在 WPF 中获取一个依赖对象的所有依赖项属性
		
原文:在 WPF 中获取一个依赖对象的所有依赖项属性 本文介绍如何在 WPF 中获取一个依赖对象的所有依赖项属性. 本文内容 通过 WPF 标记获取 通过设计器专用方法获取 通过 WPF 标记获取 p ...
 - Unity进阶:用AssetBundle和Json做了一个玩家登陆界面
		
版权申明: 本文原创首发于以下网站: 博客园『优梦创客』的空间:https://www.cnblogs.com/raymondking123 优梦创客的官方博客:https://91make.top ...
 - ios swift模仿qq登陆界面,xml布局
		
给大家推荐两个学习的地址: 极客学院的视频:http://www.jikexueyuan.com/path/ios/ 一个博客:http://blog.csdn.net/lizhongfu2013/a ...
 - 用java写一个用户登陆界面
		
一.课堂测试源代码及其结果截图 用java的swing写一个用户登录界面,采用网格布局.源代码如下: /** * */package LiuLijia; import java.awt.CardLay ...
 - wpf中,一个简单的自定义treeview
		
首先创建一个自定义控件,在里面定义好treeview的样式,将本来的三角形的图标变为加号的图标,并且添加节点之间的连线. <UserControl x:Class="TreeViewE ...
 
随机推荐
- ASP.NET Core MVC 2.x 全面教程_ASP.NET Core MVC 25. 过滤器
			
在MVC的请求管道 并不是 asp.net core的请求管道.所以说Filter是专用于MVC的 贯穿特性,横穿关注点.比如授权.日志 这里的Authorize其实就是一个Filter,主要用来授 ...
 - Android studio 集成 Genymotion
			
这学期刚学android,q其内置的模拟器一开起来电脑实在卡的不要不要的了.查了一下可以在studio中集成genymotion模拟器.各方面百度最后总结了几点. 要在studio中集成genymot ...
 - jQuery 字母大小写转换
			
"ABC".toLowerCase()//转小写 "abc".toUpperCase()//转大写
 - css 所有选择器 实例与总结
			
目录 什么是选择器? 选择器都有那些呢? 标签选择器 ID选择器 类选择器 后代选择器 子代选择器 组合选择器 交集选择器 相邻兄弟选择器 通用兄弟选择器 属性选择器 伪类选择器 什么是选择器? 在c ...
 - bzoj1339/1163:[Baltic2008]Mafia
			
传送门 最小割,割点,模板... 代码: #include<cstdio> #include<iostream> #include<algorithm> #incl ...
 - iOS开发:创建推送开发证书和生产证书,以及往极光推送官网上传证书的步骤方法
			
在极光官网上面上传应用的极光推送证书的实质其实就是上传导出的p12文件,在极光推送应用管理里面,需要上传两个p12文件,一个是生产证书,一个是开发证书 ,缺一不可,具体如下所示: 在开发者账号里面创建 ...
 - [題解](最小生成樹)luogu_P1265
			
首先考虑最小生成树的模型,唯一不同的是第二种情形. 即“三个或三个以上的城市申请修建的公路成环” 考虑该情形,因为修路的申请是申请离它最近的城市,所以上述条件实质上为 “存在三个或三个以上的城市,他们 ...
 - 从navicat for mysql导出数据库语句时应该加上的两条语句
			
为了不引起编码问题,一般在从navict for mysql导出一个数据库时在文件最前面添加这2句语句: CREATE DATABASE IF NOT EXISTS `` default charac ...
 - Jasper_crosstab_headerPosition_columngroup header position config - (headerPosition="Stretch")
			
i.e <columnGroup name="column11" height="20" totalPosition="Start" ...
 - 通过API获取统计信息时报Access denied错误处理记录
			
通过API获取HDFS统计信息时报Access denied错误信息,错误信息如下: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.s ...