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登陆界面的更多相关文章

  1. WPF和Expression Blend开发实例:模拟QQ登陆界面打开和关闭特效

    不管在消费者的心中腾讯是一个怎么样的模仿者抄袭者的形象,但是腾讯在软件交互上的设计一直是一流的.正如某位已故的知名产品经理所说的:设计并非外观怎样,感觉如何.设计的是产品的工作原理.我觉得腾讯掌握了其 ...

  2. Qt 之 模仿 QQ登陆界面——样式篇

    一.简述 今天晚上花了半天时间从QQ登录界面抠了些图,顺便加了点样式基本上实现了QQ的登陆界面全部效果.虽不说100%相似,那也有99.99%相似了哈O(∩_∩)O. QQ好像从去年开始,登录界面有了 ...

  3. WPF开发实例——仿QQ登录界面

    原文:WPF开发实例--仿QQ登录界面 版权声明:本文为博主原创文章,如需转载请标明转载地址 http://blog.csdn.net/u013981858 https://blog.csdn.net ...

  4. [iOS基础控件 - 3.1] QQ登陆界面

      A.storyboard 控件版 1.label 2.textfield      a.Keyboard Type           账号:Number Pad           密码:Num ...

  5. 在 WPF 中获取一个依赖对象的所有依赖项属性

    原文:在 WPF 中获取一个依赖对象的所有依赖项属性 本文介绍如何在 WPF 中获取一个依赖对象的所有依赖项属性. 本文内容 通过 WPF 标记获取 通过设计器专用方法获取 通过 WPF 标记获取 p ...

  6. Unity进阶:用AssetBundle和Json做了一个玩家登陆界面

    版权申明: 本文原创首发于以下网站: 博客园『优梦创客』的空间:https://www.cnblogs.com/raymondking123 优梦创客的官方博客:https://91make.top ...

  7. ios swift模仿qq登陆界面,xml布局

    给大家推荐两个学习的地址: 极客学院的视频:http://www.jikexueyuan.com/path/ios/ 一个博客:http://blog.csdn.net/lizhongfu2013/a ...

  8. 用java写一个用户登陆界面

    一.课堂测试源代码及其结果截图 用java的swing写一个用户登录界面,采用网格布局.源代码如下: /** * */package LiuLijia; import java.awt.CardLay ...

  9. wpf中,一个简单的自定义treeview

    首先创建一个自定义控件,在里面定义好treeview的样式,将本来的三角形的图标变为加号的图标,并且添加节点之间的连线. <UserControl x:Class="TreeViewE ...

随机推荐

  1. 使用Try.NET创建可交互.NET文档

    原文地址:Create Interactive .NET Documentation with Try .NET 原文作者:Maria 译文地址:https://www.cnblogs.com/lwq ...

  2. 洛谷 - P4861 - 按钮 - 扩展大步小步算法

    https://www.luogu.org/problemnew/show/P4861 把好像把一开始b==1的特判去掉就可以AC了. #include<bits/stdc++.h> us ...

  3. Python小爬虫,用Python3.X编写

    import urllib.request # 导入urlib.request模块import re # 导入re模块 # 获得每一页的网址并返回def get_url(pageNumber): ne ...

  4. 如何实现一个无边框Form的移动和改变大小(一)

    很多时候我们不希望使用Windows提供的窗体. 我们希望使用一个无边框的窗体,什么border,caption透明就行了. 下面我们来说下一些实现方法. 这个方法要求窗体自定义的border siz ...

  5. Spring Boot Autowirted注入找不到Bean对象解决方法

    报错:Consider defining a bean of type 'xxxxxxxxxxxxx' in your configuration 1. 你应该在 ApplyApplication 启 ...

  6. [Usaco2011 Dec]Grass Planting

    Description Farmer John has N barren pastures connected by N-1 bidirectional roads, such that there ...

  7. Requests 入门

    首先直接通过管理员运行cmd,然后执行 pip install requests  就可以直接安装Requests库了 有个最基本的语句 r = requests.get(url) 通过request ...

  8. go系列(3)- go框架beego以及redis的使用

    这篇讲讲如何在beego框架使用redis. golang中比较好用的第三方开源redisclient有: go-redis 源码地址:https://github.com/go-redis/redi ...

  9. AOP 应用

    AOP 的核心:解耦 1. 权限认证2. 事务3. 日志4. Lazy loading 懒加载5. Context Process 上下文处理6. Error Handler 错误追踪(异常捕获)7. ...

  10. 新手搭建springmvc+mybits框架的经验分享

    1.搭建过程中遇到的问题: ①由于是第一次使用springmvc框架,对它的认识真的很浅,只知道他属于spring旗下的产品,仅此而已.于是搭建过程中确实遇到不少麻烦,因为之前的项目都是老师带着做的, ...