![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.Net(C#)
Yours风之恋
一个孜孜不倦的求知者………………………………
展开
-
.net(基本数据类型,枚举类型,枚举字符串的相互转化)
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication3{ /// /// /// class Program { ///原创 2012-07-10 09:06:28 · 2723 阅读 · 0 评论 -
WPF( 数据验证)
<Window x:Class="TestOfValidationRules.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Titl原创 2013-04-09 15:04:38 · 2237 阅读 · 0 评论 -
WPF(Converter 练习[很详细])
<Window x:Class="TestOfDataConverter.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:原创 2013-04-09 17:05:08 · 12525 阅读 · 2 评论 -
WPF(MultiBinding 数据对比验证,启用提交)
<Window x:Class="TestOfMultiBinding.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="原创 2013-04-09 19:17:01 · 1637 阅读 · 0 评论 -
WPF(x:Null 使用)
<Window x:Class="TestOfNull.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="x:Null S原创 2013-03-28 13:43:06 · 3020 阅读 · 0 评论 -
WPF(x:Key 使用)
<Window x:Class="TestOfKey.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-n原创 2013-03-28 10:22:57 · 5595 阅读 · 1 评论 -
WPF(依赖属性)
<Window x:Class="TestOfFirstDependencyObject.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"原创 2013-04-11 10:50:19 · 1127 阅读 · 0 评论 -
WPF(Grid , StackPanel布局等入门)
<Window x:Class="TestOfXamlGrid.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Main原创 2013-03-28 10:27:40 · 4480 阅读 · 0 评论 -
WPF(x:Type的使用)
<Window x:Class="TestOfKey.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-n原创 2013-03-28 11:34:00 · 6067 阅读 · 0 评论 -
WPF(附加属性)
<Window x:Class="TestOfAttachProperty.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title原创 2013-04-11 13:53:19 · 1059 阅读 · 0 评论 -
WPF(附加属性 Slider)
<Window x:Class="TestOfAttachPropertyOfSlider.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"原创 2013-04-11 14:15:01 · 1575 阅读 · 0 评论 -
WPF(命令)
<Window x:Class="TestOfCommand.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainW原创 2013-04-18 09:33:53 · 1120 阅读 · 0 评论 -
WPF(命令参数)
<Window x:Class="TestOfCommandParameter.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Tit原创 2013-04-18 11:30:57 · 2495 阅读 · 0 评论 -
C# 中var的用法说明
使用var定义变量时有以下四个特点:1. 必须在定义时初始化。也就是必须是var s = “abcd”形式,而不能是如下形式:var s;s = “abcd”;2. 一但初始化完成,就不能再给变量赋与初始化值类型不同的值了。3. var要求是局部变量。4. 使用var定义变量和object不同,它在效率上和使用强类型方式定义变量完全一样。转载 2013-05-16 09:08:08 · 931 阅读 · 0 评论 -
WPF 利用BackgroundWorker 动态加载UI
BackgroundWorker bw = new BackgroundWorker(); bw.DoWork += (ee, se) => { //TODO 需要异步请求的操作 }; bw.RunWorkerCo原创 2014-09-12 11:40:32 · 4466 阅读 · 0 评论 -
WPF(Binding of RelativeSource)
<Window x:Class="TestOfRelativeSource.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title原创 2013-04-09 15:02:18 · 1914 阅读 · 0 评论 -
WPF(Binding of ObjectDataProvider)
<Window x:Class="TestOfObjectDataProvider.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" T原创 2013-04-09 15:00:06 · 1197 阅读 · 0 评论 -
.net(枚举和switch结构)
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication5{ class Program { static void Main(string[] args)原创 2012-07-10 08:36:39 · 2457 阅读 · 0 评论 -
.net(三个简单的作业)
1,读入一个小数,将小数部分和整数部分交换:例如 3.14 ---〉14.3using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TestExchange{ class Program { static原创 2012-07-10 08:55:46 · 671 阅读 · 0 评论 -
.net 概述
1,版本说明2,版本和依赖关系 3,.net Framework 体系架构原创 2012-07-09 21:46:33 · 724 阅读 · 0 评论 -
.net(从控制台读入两个数,实现加减乘除)
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TestClaclulate{ class Program { static void Main(string[] args) {原创 2012-07-10 08:42:35 · 2445 阅读 · 0 评论 -
.net(简单的解密小程序和小鸡问题的求解)
1,解密问题/* * 破解密码:tbizljbqlfcivqbh * 已知加密方式 * * */using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TestDecoding{ cla原创 2012-07-10 19:59:08 · 1072 阅读 · 0 评论 -
.net(数组)
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication8{ class Program { static void Main(string[] args)原创 2012-07-10 19:13:13 · 1806 阅读 · 0 评论 -
WPF(ContentControl和ItemsControl)
<Window x:Class="TestOfContentControl.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title原创 2013-04-01 16:25:27 · 4655 阅读 · 0 评论 -
.net(关于字符串的相等问题[比较重要])
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TestString{ class Program { static void Main(string[] args) { stri原创 2012-07-10 08:45:36 · 826 阅读 · 0 评论 -
C# 日期处理[拷自百度文库]
//今天 DateTime.Now.Date.ToShortDateString(); //昨天,就是今天的日期减一 DateTime.Now.AddDays(-1).ToShortDateString(); //明天,同理,加一 DateTime.Now.AddDays(1).ToShortDateString(); //本周(要知道本周的第转载 2013-03-18 16:25:58 · 520 阅读 · 0 评论 -
WPF(Binding集合对象数据源)
<Window x:Class="TestOfBindingItemsControl.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"原创 2013-04-08 18:42:33 · 2046 阅读 · 0 评论 -
Asp.net 全局错误处理
protected void Application_Error(object sender, EventArgs e) { Exception ex = this.Server.GetLastError().GetBaseException(); if (ex is ArgumentErrorException)原创 2013-03-25 11:18:15 · 1387 阅读 · 0 评论 -
WPF(初识DataTemplate)
<Window x:Class="TestOfBindingItemsControl.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"原创 2013-04-08 19:16:59 · 617 阅读 · 0 评论 -
WPF(Binding of ItemsControl)
<Window x:Class="TestOfBindingItemsControl.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"原创 2013-04-09 14:56:00 · 700 阅读 · 0 评论 -
WPF(Binding of LinQ)
<Window x:Class="TestOfLinQBinding.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="M原创 2013-04-09 14:58:00 · 909 阅读 · 0 评论 -
WPF 依赖属性使用
1,在XML中绑定xmlns:toolbox="clr-namespace:EBookApp.Toolbox"<Image x:Name="imageShort" Stretch="Fill" Width="50" d:LayoutOverrides="HorizontalMargin" Source="{Binding RelativeSou原创 2014-09-12 11:31:35 · 1617 阅读 · 0 评论