摘要: View Code 阅读全文
posted @ 2013-07-01 22:34 法的空间 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 4.0里面不支持Generic.xaml里面 嵌套style4.5里面可以使用。可以在app.xaml 阅读全文
posted @ 2013-06-29 10:08 法的空间 阅读(395) 评论(0) 推荐(0) 编辑
摘要: this.Template = XamlReader.Load (" "); 阅读全文
posted @ 2013-06-29 00:34 法的空间 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 。(button使用contont写的时候) 当。button使用 依然会覆盖这段代码能消除全局textblock对button的影响 View Code textblock style这样。。b... 阅读全文
posted @ 2013-06-29 00:32 法的空间 阅读(1028) 评论(1) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Controls;using System.Windows;using System.Windows.Input;namespace MyWPFCustomControls{ public class CustomTextBox : TextBox { public CustomTextBox() { } static Cu... 阅读全文
posted @ 2013-06-22 00:28 法的空间 阅读(311) 评论(0) 推荐(0) 编辑
摘要: <Grid Grid.Row="3" Grid.ColumnSpan="3"> <Grid.Resources> <SolidColorBrush x:Key="BackgroundColor" Color="#00000000"/> <SolidColorBrush x:Key="ForegroundColor" C... 阅读全文
posted @ 2013-05-30 15:47 法的空间 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 见文件 阅读全文
posted @ 2013-05-30 10:25 法的空间 阅读(113) 评论(0) 推荐(0) 编辑
摘要: CultureInfo.CurrentCulture获取当前线程的区域信息中,包括DateTimeFormat 日期显示格式(日期分隔符)和 NumberFormat 货币。试例:1、时间中没有使用分割符的情况:string temp = "18991230" ; DateTime dateTemp = DateTime.ParseExact(temp, "yyyyMMdd", CultureInfo.CurrentCulture, DateTimeStyles.None);2、时间中使用分割符的情况:string temp = "1899-1 阅读全文
posted @ 2013-05-29 23:59 法的空间 阅读(636) 评论(0) 推荐(0) 编辑
摘要: csusing 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.Media;namespace MCE.Gems.Common.Controls.CustomControls{ /// <summary> /// change textblock background color 阅读全文
posted @ 2013-05-25 17:42 法的空间 阅读(365) 评论(0) 推荐(0) 编辑
摘要: csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;using System.Collections;using System.Windows.Data;using System.Reflection;using System.Collections.ObjectModel;using System.Windows.Con 阅读全文
posted @ 2013-05-25 17:39 法的空间 阅读(223) 评论(0) 推荐(0) 编辑