07 2019 档案
摘要:public static class BinarySearchHelper { public static int BinarySearch(int[] items, int find) { int start = 0; int end = items.Length - 1; ...
阅读全文
摘要:Products = new ObservableCollection<Product>(products); ProductOptions = new ObservableCollection<ProductOption>(options); ProductsView = CollectionVi
阅读全文
摘要:xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase" xmlns:swd="clr-namespace:System.Windows.Data;assembly=PresentationFramework" <Col
阅读全文
摘要:void window_KeyDown(object sender,KeyEventArgs e) { if(e.Key == Key.F11) { Window.ResizeMode = ResizeMode.NoResize; Window.WindowState = WindowState.N
阅读全文
摘要:1.在scrollview 中的frameworkelement可以使用 FE.BringIntoView(); 滚动到此控件. 2.该 方法能一个重载 Bottom.BringIntoView(new Rect(0, 0, 5, 5)); 当控件比scrollview尺寸大时,可以让scrollv
阅读全文
摘要:private void StackPanel_MouseMove(object sender, MouseEventArgs e) { Debug.WriteLine("Move"); Point spRel = e.GetPosition((IInputElement)e.OriginalSou
阅读全文
摘要:private void Parallel(object sender, RoutedEventArgs e) { Task.Run(() => ChangeColour(Brushes.Red)); } private void Standard(object sender, RoutedEventArgs e) { ChangeColour(Brushes.Green);...
阅读全文