惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - 碧血黄沙-java、c#

nginx反向代理tomcat应用,struts2网站程序redirect时导致请求地址错误的解决方法 开源一个最近写的spring与mongodb结合的demo(spring-mongodb-demo) 基于spring框架的apache shiro简单集成 java的struts2项目实现网站首页只显示域名不显示index.do的做法 用WPF开发仿QQ概念版之--------Loading预加载界面(闪屏窗体) 用WPF开发仿QQ概念版之--------登录界面 纪念一下我在2009年开发的一款网站客户端软件[winform] 参考XNA官方Platformer模版,修改Platformer为横版可以滚动的小游戏 Xna小游戏开发【飞机空间大战】 Airfey Radio网络电台播放器V2.0绿色单文件版本发布(大小仅296KB) 一种开发软件的新思路,给Web页面穿个马甲,用web页面做软件UI,用C#(或者C++等其它语言)代码做功能 Airfey Radio网络电台播放器V2.0版本发布(2010.4.18最新更新) Airfey Radio网络电台播放器V1.0.0.0版本发布(2010.1.29更新)此版本不再更新,转入2.0版本开发 网络电台播放器即将开放下载,敬请期待!!! 在WinForm里面使用多线程修改主线程上的一个Label的值 在几千条记录里,存在着些相同的记录,如何能用SQL语句,删除掉重复的呢? 发布Winform自定义控件snMessageBox,基于系统的MesssageBox实现重绘,需要源码者请留下邮箱 [原创]WinForm中重绘滚动条以及用重绘的滚动条控制ListBox的滚动 高仿QQMusic播放器,浅谈WinForm关于UI的制作
用WPF开发仿QQ概念版之--------MessageWindow开发以及Demo下载
碧血黄沙-java、c# · 2011-09-06 · via 博客园 - 碧血黄沙-java、c#

转眼半年了,期间发生了很多事情,一直无暇整理该代码。不说废话了,抽时间整理了下,今天先把DEMO发出来。

一下是MessageBox窗体的代码:

MessageWindow.xaml

 1 <Window
 2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 5     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 6     mc:Ignorable="d"
 7     x:Class="WpfQQDemo.MessageWindow"
 8     x:Name="UserControl"
 9 
10     d:DesignWidth="340" d:DesignHeight="142"
11     WindowStyle="None"
12     Background="{x:Null}"  AllowsTransparency="True" MouseLeftButtonDown="Window_MouseLeftButtonDown" WindowStartupLocation="CenterScreen" Icon="/WpfQQDemo;component/Images/logo32.ico" Height="142" Width="340">
13 
14     <Grid x:Name="LayoutRoot">
15         <Image Margin="0" Source="/WpfQQDemo;component/Images/messagebg.png" Stretch="Fill"/>
16         <Label x:Name="LabTitle" Content="" Height="25.368" Margin="6,4,82,0" VerticalAlignment="Top" Foreground="#FFFAF9F9" FontWeight="Bold"/>
17         <Label x:Name="LabTips" Content="" Margin="56,47,13,43"/>
18         <Button x:Name="vbutton1" Content="确定" Height="28" Margin="0,0,29,5" VerticalAlignment="Bottom" Click="vbutton1_Click" HorizontalAlignment="Right" Width="78" />
19         <Button x:Name="vbutton2" Content="取消" Height="28" Margin="69,0,0,5" VerticalAlignment="Bottom" Click="vbutton2_Click" HorizontalAlignment="Left" Width="78" />
20         <Button x:Name="vbutton3" Content="忽略" Height="28" Margin="151,0,111,5" VerticalAlignment="Bottom" Click="vbutton3_Click" />
21         <Label x:Name="vPicBox" Content="" HorizontalAlignment="Left" Margin="8,47,0,52" Width="44"/>
22         <Button x:Name="buttonclose" Content="X" Template="{StaticResource temp_b_top_close}"   HorizontalAlignment="Right" Margin="0,6.368,10.16,0" Width="22" RenderTransformOrigin="0.5,0.5" Click="buttonclose_Click" Height="22" VerticalAlignment="Top">
23             <Button.RenderTransform>
24                 <TransformGroup>
25                     <ScaleTransform/>
26                     <SkewTransform/>
27                     <RotateTransform/>
28                     <TranslateTransform/>
29                 </TransformGroup>
30             </Button.RenderTransform>
31         </Button>
32     </Grid>
33 </Window>

 当然还有一个MessageBoxEx类,您自己在DEMO中反编译看看吧,我就不写出来了。

Demo下载地址:Demo