07 2019 档案

摘要:public static class BinarySearchHelper { public static int BinarySearch(int[] items, int find) { int start = 0; int end = items.Length - 1; ... 阅读全文
posted @ 2019-07-27 16:24 马肯尼煤牙巴骨 阅读(124) 评论(0) 推荐(0) 编辑
摘要:Products = new ObservableCollection<Product>(products); ProductOptions = new ObservableCollection<ProductOption>(options); ProductsView = CollectionVi 阅读全文
posted @ 2019-07-27 01:10 马肯尼煤牙巴骨 阅读(560) 评论(0) 推荐(0) 编辑
摘要:xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase" xmlns:swd="clr-namespace:System.Windows.Data;assembly=PresentationFramework" <Col 阅读全文
posted @ 2019-07-27 01:03 马肯尼煤牙巴骨 阅读(622) 评论(0) 推荐(0) 编辑
摘要:void window_KeyDown(object sender,KeyEventArgs e) { if(e.Key == Key.F11) { Window.ResizeMode = ResizeMode.NoResize; Window.WindowState = WindowState.N 阅读全文
posted @ 2019-07-26 16:39 马肯尼煤牙巴骨 阅读(191) 评论(0) 推荐(0) 编辑
摘要:1.在scrollview 中的frameworkelement可以使用 FE.BringIntoView(); 滚动到此控件. 2.该 方法能一个重载 Bottom.BringIntoView(new Rect(0, 0, 5, 5)); 当控件比scrollview尺寸大时,可以让scrollv 阅读全文
posted @ 2019-07-25 17:17 马肯尼煤牙巴骨 阅读(384) 评论(0) 推荐(0) 编辑
摘要:private void StackPanel_MouseMove(object sender, MouseEventArgs e) { Debug.WriteLine("Move"); Point spRel = e.GetPosition((IInputElement)e.OriginalSou 阅读全文
posted @ 2019-07-25 16:58 马肯尼煤牙巴骨 阅读(311) 评论(0) 推荐(0) 编辑
摘要:private void Parallel(object sender, RoutedEventArgs e) { Task.Run(() => ChangeColour(Brushes.Red)); } private void Standard(object sender, RoutedEventArgs e) { ChangeColour(Brushes.Green);... 阅读全文
posted @ 2019-07-24 20:58 马肯尼煤牙巴骨 阅读(839) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示