03 2013 档案
摘要:注意如果设置了系统dateformat格式。在变化系统culture的时候需要设置dateformat CultureInfo info = new CultureInfo(this.LanguageItems[value].Name); info.DateTimeFormat.ShortDatePattern= "dd/MM/yyyy"; info.DateTimeFormat.LongDatePattern = "dd/MM/yyyy"; Thread.CurrentThread.CurrentCulture = ...
阅读全文
摘要:样式:View Code <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:MCE.Gems.Common.Controls.CustomControls" xmlns:Themes="clr...
阅读全文
摘要:View Code <RadioButton Margin="0,6,0,0" VerticalAlignment="Center" Grid.Row="0" Grid.Column="1" AutomationProperties.AutomationId="MaleRadioButton" Content="{DynamicResource ResourceKey=PM_Male}" IsChecked="{Binding Gender, ...
阅读全文
摘要:View Code System.Timers.Timer t; DateTime lastInputTime = DateTime.MinValue; private void textBox1_PreviewKeyDown(object sender, KeyEventArgs e) { if (t!=null) { t.Stop(); } t = new System.Timers.Timer(); ...
阅读全文
摘要:原理。。当itemsSource为null的时候。。触发Trigger 使用新样式逻辑。当itemsource绑定了源的时候。需要的时候。请讲源设置为nulldatagrid 普通样式View Code <Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}"> <Setter Property=&quo
阅读全文
摘要: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
阅读全文