上一页 1 ··· 23 24 25 26 27
该文被密码保护。 阅读全文
posted @ 2012-06-25 22:46 要等闲阿 阅读(2) 评论(0) 推荐(0) 编辑
摘要: this.sView.ScrollToHorizontalOffset(50);this.sView.ScrollToVerticalOffset(50);//内容的垂直偏移量 string vo = sView.VerticalOffset.ToString(); //内容的水平偏移量 string ho = sView.HorizontalOffset.ToString(); //内容的总垂直高度 string eh = sView.ExtentHeight.ToString();... 阅读全文
posted @ 2012-06-25 17:12 要等闲阿 阅读(190) 评论(0) 推荐(0) 编辑
摘要: <sdk:DataGrid.Columns> <sdk:DataGridTemplateColumn Header="故障地点" > <sdk:DataGridTemplateColumn.CellTemplate> <DataTemplate> <Button Content="{Binding 故障地点}" Tag="{Binding NoID}" Foreground="#FF006DFF"... 阅读全文
posted @ 2012-06-25 15:52 要等闲阿 阅读(287) 评论(0) 推荐(0) 编辑
摘要: public static string CaculateWeekDay(int y, int m, int d) //年月日换算成星期几 { if (m == 1) m = 13; if (m == 2) m = 14; int week = (d + 2 * m + 3 * (m + 1) / 5 + y + y / 4 - y / 100 + y / 400) % 7 + 1; string weekstr = ""; switch (week)... 阅读全文
posted @ 2012-06-25 15:37 要等闲阿 阅读(831) 评论(0) 推荐(0) 编辑
摘要: Button button2 = new Button { Width=30,Height=30, Content="HelloWorld", Background=new SolidColorBrush(Colors.Black) }; this.gdAA.Children.Add(button2); 阅读全文
posted @ 2012-06-25 15:23 要等闲阿 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 子窗体的cs文件:public partial class ChildWindow1 : ChildWindow { public ChildWindow1() { InitializeComponent(); } public void UrlMessage(string str) { switch(str) { case "提交": this.DialogResult = true; break; case "取消": this.DialogResult = false; break; } } }使用的时候... 阅读全文
posted @ 2012-06-25 14:20 要等闲阿 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Application.Current.Host.Content.IsFullScreen = !Application.Current.Host.Content.IsFullScreen; 阅读全文
posted @ 2012-06-25 14:12 要等闲阿 阅读(105) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27