上一页 1 ··· 4 5 6 7 8
摘要: 原理。。当itemsSource为null的时候。。触发Trigger 使用新样式逻辑。当itemsource绑定了源的时候。需要的时候。请讲源设置为nulldatagrid 普通样式View Code <Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}"> <Setter Property=&quo 阅读全文
posted @ 2013-03-11 23:43 法的空间 阅读(431) 评论(0) 推荐(0) 编辑
摘要: View Code using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ComponentModel;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.Windo 阅读全文
posted @ 2013-03-08 01:27 法的空间 阅读(806) 评论(0) 推荐(0) 编辑
摘要: 用法如下:CustomDateFormat 只要是符合日期格式的都可以。如果乱写。就会显示有问题<CustomControl:CustomDatePicker Margin="0,100,0,0" CustomDateFormat="MM/dd/yyyy"/>代码如下View Code public class CustomDatePicker : DatePicker { public string CustomDateFormat { get { return (string)GetValue(CustomDateFormatProp.. 阅读全文
posted @ 2013-02-23 01:46 法的空间 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 利用radioButton的groupName分组互斥。。再解决radiobutton的取消选择的问题。给radiobutton加了一个像checkbox的样式2个方式:效果图第一种usecontrol:xaml:View Code <RadioButton x:Class="GEMS.Windows.Controls.UserControls.SingleCheckBox" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:// 阅读全文
posted @ 2013-02-21 13:06 法的空间 阅读(2271) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8